ANTLR Support Libraries 2.7.1+
Classes | Public Member Functions | Private Attributes | List of all members
RefCount< T > Class Template Reference

#include <RefCount.hpp>

Collaboration diagram for RefCount< T >:
Collaboration graph
[legend]

Classes

struct  Ref
 

Public Member Functions

 RefCount (T *p=0)
 
 RefCount (const RefCount< T > &other)
 
 ~RefCount ()
 
RefCount< T > & operator= (const RefCount< T > &other)
 
 operator T* () const
 
T * operator-> () const
 
T * get () const
 
template<class newType >
 operator RefCount< newType > ()
 

Private Attributes

struct RefCount::Refref
 

Constructor & Destructor Documentation

◆ RefCount() [1/2]

template<class T>
RefCount< T >::RefCount ( T *  p = 0)
inlineexplicit

◆ RefCount() [2/2]

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

◆ ~RefCount()

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

Member Function Documentation

◆ get()

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

◆ operator RefCount< newType >()

template<class T>
template<class newType >
RefCount< T >::operator RefCount< newType > ( )
inline

◆ operator T*()

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

◆ operator->()

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

◆ operator=()

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

Member Data Documentation

◆ ref

template<class T>
struct RefCount::Ref* RefCount< T >::ref
private

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