OpenMD  2.5
Molecular Dynamics in the Open
antlr::ASTRef Struct Reference

#include <ASTRefCount.hpp>

Public Member Functions

 ASTRef (AST *p)
 ~ASTRef ()
ASTRefincrement ()
bool decrement ()

Static Public Member Functions

static ASTRefgetRef (const AST *p)

Public Attributes

AST *const ptr
unsigned int count

Private Member Functions

 ASTRef (const ASTRef &)
ASTRefoperator= (const ASTRef &)

Detailed Description

Definition at line 19 of file ASTRefCount.hpp.

Constructor & Destructor Documentation

◆ ASTRef() [1/2]

antlr::ASTRef::ASTRef ( AST p)

Definition at line 14 of file ASTRefCount.cpp.

References antlr::AST::ref.

Referenced by getRef().

◆ ~ASTRef()

antlr::ASTRef::~ASTRef ( )

Definition at line 21 of file ASTRefCount.cpp.

References ptr.

◆ ASTRef() [2/2]

antlr::ASTRef::ASTRef ( const ASTRef )

Member Function Documentation

◆ decrement()

bool antlr::ASTRef::decrement ( )

◆ getRef()

ASTRef * antlr::ASTRef::getRef ( const AST p)

Definition at line 26 of file ASTRefCount.cpp.

References ASTRef(), increment(), and antlr::AST::ref.

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

◆ increment()

ASTRef* antlr::ASTRef::increment ( )

Definition at line 26 of file ASTRefCount.hpp.

Referenced by getRef().

◆ operator=()

ASTRef& antlr::ASTRef::operator= ( const ASTRef )

Member Data Documentation

◆ count

unsigned int antlr::ASTRef::count

Definition at line 22 of file ASTRefCount.hpp.

◆ ptr

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