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

#include <TokenRefCount.hpp>

Public Member Functions

 TokenRef (Token *p)
 ~TokenRef ()
TokenRefincrement ()
bool decrement ()

Static Public Member Functions

static TokenRefgetRef (const Token *p)

Public Attributes

Token *const ptr
unsigned int count

Private Member Functions

 TokenRef (const TokenRef &)
TokenRefoperator= (const TokenRef &)

Detailed Description

Definition at line 19 of file TokenRefCount.hpp.

Constructor & Destructor Documentation

◆ TokenRef() [1/2]

antlr::TokenRef::TokenRef ( Token p)

Definition at line 14 of file TokenRefCount.cpp.

References antlr::Token::ref.

Referenced by getRef().

◆ ~TokenRef()

antlr::TokenRef::~TokenRef ( )

Definition at line 21 of file TokenRefCount.cpp.

References ptr.

◆ TokenRef() [2/2]

antlr::TokenRef::TokenRef ( const TokenRef )

Member Function Documentation

◆ decrement()

bool antlr::TokenRef::decrement ( )

◆ getRef()

TokenRef * antlr::TokenRef::getRef ( const Token p)

Definition at line 26 of file TokenRefCount.cpp.

References increment(), antlr::Token::ref, and TokenRef().

Referenced by antlr::TokenRefCount< Token >::operator=().

◆ increment()

TokenRef* antlr::TokenRef::increment ( )

Definition at line 26 of file TokenRefCount.hpp.

Referenced by getRef().

◆ operator=()

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

Member Data Documentation

◆ count

unsigned int antlr::TokenRef::count

Definition at line 22 of file TokenRefCount.hpp.

◆ ptr

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