ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Private Types | Private Attributes | List of all members
GCPointer< _t > Class Template Reference

Pointer to objects of class ReferenceCount that performs garbage collection. More...

#include <garbagecoll.h>

Collaboration diagram for GCPointer< _t >:
Collaboration graph

Public Member Functions

 GCPointer (_t *newRef=nullptr)
 
 ~GCPointer ()
 
 GCPointer (const GCPointer &gcp)
 
GCPointeroperator= (const GCPointer &gcp)
 
GCPointeroperator= (_t *newRef)
 
_t & operator* () const
 
_t * operator-> () const
 
 operator bool () const
 

Private Types

typedef _t reference_type
 

Private Attributes

_t * ref
 

Detailed Description

template<class _t>
class GCPointer< _t >

Pointer to objects of class ReferenceCount that performs garbage collection.

Does only work in ordered graphs. Cross references are not allowed.

Definition at line 58 of file garbagecoll.h.

Member Typedef Documentation

template<class _t>
typedef _t GCPointer< _t >::reference_type
private

Definition at line 59 of file garbagecoll.h.

Constructor & Destructor Documentation

template<class _t>
GCPointer< _t >::GCPointer ( _t *  newRef = nullptr)

Definition at line 62 of file garbagecoll.h.

template<class _t>
GCPointer< _t >::~GCPointer ( )

Definition at line 66 of file garbagecoll.h.

template<class _t>
GCPointer< _t >::GCPointer ( const GCPointer< _t > &  gcp)

Definition at line 69 of file garbagecoll.h.

Member Function Documentation

template<class _t>
GCPointer< _t >::operator bool ( ) const

Definition at line 93 of file garbagecoll.h.

template<class _t>
_t& GCPointer< _t >::operator* ( ) const

Definition at line 87 of file garbagecoll.h.

template<class _t>
_t* GCPointer< _t >::operator-> ( ) const

Definition at line 90 of file garbagecoll.h.

template<class _t>
GCPointer& GCPointer< _t >::operator= ( const GCPointer< _t > &  gcp)

Definition at line 73 of file garbagecoll.h.

template<class _t>
GCPointer& GCPointer< _t >::operator= ( _t *  newRef)

Definition at line 80 of file garbagecoll.h.

Member Data Documentation

template<class _t>
_t* GCPointer< _t >::ref
private

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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)