OpenMD  2.5
Molecular Dynamics in the Open
antlr::RefCount< T >::Ref Struct Reference

Public Member Functions

 Ref (T *p)
 
 ~Ref ()
 
Refincrement ()
 
bool decrement ()
 

Public Attributes

T *const ptr
 
unsigned int count
 

Private Member Functions

 Ref (const Ref &)
 
Refoperator= (const Ref &)
 

Detailed Description

template<class T>
struct antlr::RefCount< T >::Ref

Definition at line 19 of file RefCount.hpp.

Constructor & Destructor Documentation

◆ Ref() [1/2]

template<class T>
antlr::RefCount< T >::Ref::Ref ( T *  p)
inline

Definition at line 23 of file RefCount.hpp.

◆ ~Ref()

template<class T>
antlr::RefCount< T >::Ref::~Ref ( )
inline

Definition at line 24 of file RefCount.hpp.

◆ Ref() [2/2]

template<class T>
antlr::RefCount< T >::Ref::Ref ( const Ref )
private

Member Function Documentation

◆ decrement()

template<class T>
bool antlr::RefCount< T >::Ref::decrement ( )
inline

Definition at line 26 of file RefCount.hpp.

◆ increment()

template<class T>
Ref* antlr::RefCount< T >::Ref::increment ( )
inline

Definition at line 25 of file RefCount.hpp.

Referenced by antlr::RefCount< TreeParserInputState >::operator=().

◆ operator=()

template<class T>
Ref& antlr::RefCount< T >::Ref::operator= ( const Ref )
private

Member Data Documentation

◆ count

template<class T>
unsigned int antlr::RefCount< T >::Ref::count

Definition at line 21 of file RefCount.hpp.

◆ ptr

template<class T>
T* const antlr::RefCount< T >::Ref::ptr

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