1#ifndef INC_RefCount_hpp__
2#define INC_RefCount_hpp__
12#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
34 :
ref(p ? new Ref(p) : 0)
38 :
ref(other.
ref ? other.
ref->increment() : 0)
43 if (
ref &&
ref->decrement())
49 if (
ref &&
ref->decrement())
76#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
struct RefCount::Ref * ref
T * operator->() const
Definition RefCount.hpp:60
~RefCount()
Definition RefCount.hpp:41
RefCount(T *p=0)
Definition RefCount.hpp:33
RefCount(const RefCount< T > &other)
Definition RefCount.hpp:37
RefCount< T > & operator=(const RefCount< T > &other)
Definition RefCount.hpp:46
T * get() const
Definition RefCount.hpp:65
#define ANTLR_API
Definition config.hpp:22
Definition ANTLRException.hpp:15
bool decrement()
Definition RefCount.hpp:26
Ref & operator=(const Ref &)
Ref * increment()
Definition RefCount.hpp:25
Ref(T *p)
Definition RefCount.hpp:23
T *const ptr
Definition RefCount.hpp:20
~Ref()
Definition RefCount.hpp:24
unsigned int count
Definition RefCount.hpp:21