Yate
GenPointer< Obj > Class Template Reference

Templated pointer that can be inserted in a list. More...

#include <yateclass.h>

Inheritance diagram for GenPointer< Obj >:
GenObject

Public Member Functions

 GenPointer ()
 
 GenPointer (const GenPointer< Obj > &value)
 
 GenPointer (Obj *object)
 
GenPointer< Obj > & operator= (const GenPointer< Obj > &value)
 
GenPointer< Obj > & operator= (Obj *object)
 
 operator Obj * () const
 
Obj * operator-> () const
 
Obj & operator* () const
 
- Public Member Functions inherited from GenObject
 GenObject ()
 
virtual ~GenObject ()
 
virtual bool alive () const
 
virtual void destruct ()
 
virtual const StringtoString () const
 
virtual const StringtraceId () const
 
virtual void * getObject (const String &name) const
 
NamedCountergetObjCounter () const
 
NamedCountersetObjCounter (NamedCounter *counter)
 

Additional Inherited Members

- Static Public Member Functions inherited from GenObject
static void * getObject (const String &name, const GenObject *obj)
 
static bool getObjCounting ()
 
static void setObjCounting (bool enable)
 
static NamedCountergetObjCounter (const String &name, bool create=true)
 
static ObjListgetObjCounters ()
 

Detailed Description

template<class Obj = GenObject>
class GenPointer< Obj >

Templated pointer that can be inserted in a list.

Constructor & Destructor Documentation

◆ GenPointer() [1/3]

template<class Obj = GenObject>
GenPointer ( )
inline

Default constructor - creates a null pointer

◆ GenPointer() [2/3]

template<class Obj = GenObject>
GenPointer ( const GenPointer< Obj > & value)
inline

Copy constructor

Parameters
valueOriginal GenPointer

◆ GenPointer() [3/3]

template<class Obj = GenObject>
GenPointer ( Obj * object)
inline

Constructs an initialized pointer

Parameters
objectPointer to object

Member Function Documentation

◆ operator Obj *()

template<class Obj = GenObject>
operator Obj * ( ) const
inline

Conversion to regular pointer operator

Returns
The stored pointer

◆ operator*()

template<class Obj = GenObject>
Obj & operator* ( ) const
inline

Dereferencing operator

◆ operator->()

template<class Obj = GenObject>
Obj * operator-> ( ) const
inline

Member access operator

◆ operator=() [1/2]

template<class Obj = GenObject>
GenPointer< Obj > & operator= ( const GenPointer< Obj > & value)
inline

Assignment from another GenPointer

◆ operator=() [2/2]

template<class Obj = GenObject>
GenPointer< Obj > & operator= ( Obj * object)
inline

Assignment from regular pointer


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