dune-alugrid  3.0.0
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
ALUGrid::ReferenceCountedObject< ObjectImp > Class Template Reference

#include <dune/alugrid/common/memory.hh>

Public Member Functions

void reset ()
 reset status and reference count More...
 
void operator++ ()
 increase reference count More...
 
void operator-- ()
 decrease reference count More...
 
bool operator! () const
 return true if object has no references anymore More...
 
bool unique () const
 return true if there exists more then on reference More...
 
const ObjectTypeobject () const
 
ObjectTypeobject ()
 

Protected Types

typedef ObjectImp ObjectType
 

Protected Member Functions

unsigned int & refCount ()
 
const unsigned int & refCount () const
 

Protected Attributes

ObjectType object_
 

Member Typedef Documentation

◆ ObjectType

template<class ObjectImp >
typedef ObjectImp ALUGrid::ReferenceCountedObject< ObjectImp >::ObjectType
protected

Member Function Documentation

◆ object() [1/2]

template<class ObjectImp >
ObjectType& ALUGrid::ReferenceCountedObject< ObjectImp >::object ( )
inline

◆ object() [2/2]

template<class ObjectImp >
const ObjectType& ALUGrid::ReferenceCountedObject< ObjectImp >::object ( ) const
inline

◆ operator!()

template<class ObjectImp >
bool ALUGrid::ReferenceCountedObject< ObjectImp >::operator! ( ) const
inline

return true if object has no references anymore

◆ operator++()

template<class ObjectImp >
void ALUGrid::ReferenceCountedObject< ObjectImp >::operator++ ( )
inline

increase reference count

◆ operator--()

template<class ObjectImp >
void ALUGrid::ReferenceCountedObject< ObjectImp >::operator-- ( )
inline

decrease reference count

◆ refCount() [1/2]

template<class ObjectImp >
unsigned int& ALUGrid::ReferenceCountedObject< ObjectImp >::refCount ( )
inlineprotected

◆ refCount() [2/2]

template<class ObjectImp >
const unsigned int& ALUGrid::ReferenceCountedObject< ObjectImp >::refCount ( ) const
inlineprotected

◆ reset()

template<class ObjectImp >
void ALUGrid::ReferenceCountedObject< ObjectImp >::reset ( )
inline

reset status and reference count

◆ unique()

template<class ObjectImp >
bool ALUGrid::ReferenceCountedObject< ObjectImp >::unique ( ) const
inline

return true if there exists more then on reference

Member Data Documentation

◆ object_

template<class ObjectImp >
ObjectType ALUGrid::ReferenceCountedObject< ObjectImp >::object_
protected

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