OpenVPN 3 Core Library
Loading...
Searching...
No Matches
openvpn::UseCount Class Reference

#include <usecount.hpp>

Public Member Functions

 UseCount (int &count)
 
 UseCount (const UseCount &)=delete
 
UseCountoperator= (UseCount &)=delete
 
 ~UseCount ()
 

Private Attributes

int & count_
 

Detailed Description

Definition at line 18 of file usecount.hpp.

Constructor & Destructor Documentation

◆ UseCount() [1/2]

openvpn::UseCount::UseCount ( int &  count)
inlineexplicit

Temporarily increments the variable by one for the scope an instance of this class is defined.

Parameters
count

Definition at line 26 of file usecount.hpp.

◆ UseCount() [2/2]

openvpn::UseCount::UseCount ( const UseCount )
delete

◆ ~UseCount()

openvpn::UseCount::~UseCount ( )
inline

Definition at line 36 of file usecount.hpp.

Member Function Documentation

◆ operator=()

UseCount & openvpn::UseCount::operator= ( UseCount )
delete

Member Data Documentation

◆ count_

int& openvpn::UseCount::count_
private

Definition at line 42 of file usecount.hpp.


The documentation for this class was generated from the following file: