OpenMD  2.5
Molecular Dynamics in the Open
antlr::ASTRefCount< T > Class Template Reference

#include <ASTRefCount.hpp>

Public Member Functions

 ASTRefCount (const AST *p=0)
 
 ASTRefCount (const ASTRefCount< T > &other)
 
 ~ASTRefCount ()
 
ASTRefCount< T > & operator= (AST *other)
 
ASTRefCount< T > & operator= (const ASTRefCount< T > &other)
 
 operator T* () const
 
T * operator-> () const
 
T * get () const
 

Private Attributes

ASTRefref
 

Detailed Description

template<class T>
class antlr::ASTRefCount< T >

Definition at line 43 of file ASTRefCount.hpp.

Constructor & Destructor Documentation

◆ ASTRefCount() [1/2]

template<class T>
antlr::ASTRefCount< T >::ASTRefCount ( const AST p = 0)
inline

Definition at line 49 of file ASTRefCount.hpp.

◆ ASTRefCount() [2/2]

template<class T>
antlr::ASTRefCount< T >::ASTRefCount ( const ASTRefCount< T > &  other)
inline

Definition at line 53 of file ASTRefCount.hpp.

◆ ~ASTRefCount()

template<class T>
antlr::ASTRefCount< T >::~ASTRefCount ( )
inline

Definition at line 57 of file ASTRefCount.hpp.

Member Function Documentation

◆ get()

template<class T>
T* antlr::ASTRefCount< T >::get ( ) const
inline

Definition at line 89 of file ASTRefCount.hpp.

◆ operator T*()

template<class T>
antlr::ASTRefCount< T >::operator T* ( ) const
inline

Definition at line 87 of file ASTRefCount.hpp.

References antlr::ASTRef::ptr.

◆ operator->()

template<class T>
T* antlr::ASTRefCount< T >::operator-> ( ) const
inline

Definition at line 88 of file ASTRefCount.hpp.

◆ operator=() [1/2]

template<class T>
ASTRefCount<T>& antlr::ASTRefCount< T >::operator= ( AST other)
inline

Definition at line 62 of file ASTRefCount.hpp.

◆ operator=() [2/2]

template<class T>
ASTRefCount<T>& antlr::ASTRefCount< T >::operator= ( const ASTRefCount< T > &  other)
inline

Definition at line 73 of file ASTRefCount.hpp.

Member Data Documentation

◆ ref

template<class T>
ASTRef* antlr::ASTRefCount< T >::ref
private

Definition at line 46 of file ASTRefCount.hpp.

Referenced by antlr::ASTRefCount< BaseAST >::operator=().


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