GCpp general purpose C++ library  version 1.0
GPointer Class Reference

#include <GPointer.hh>

Public Member Functions

template<class Q >
bool IsInstanceOf () const
 
template<class Q >
bool IsInstanceOf ()
 
virtual GPointerClone () const
 
virtual const char * ClassName () const
 
 GPointer (void *ptr=NULL)
 
 GPointer (const GPointer &original)
 
virtual ~GPointer ()
 
GPointeroperator= (const GPointer &original)
 
virtual bool operator== (const GPointer &ptr)
 
void * GetPointer () const
 
void SetPointer (void *ptr)
 

Static Public Member Functions

static const char * StaticClassName ()
 

Protected Attributes

void * pointer
 Pointer on user data.
 

Detailed Description

This class defines a pointer on any kind of object. It is used as an interface for collections, that does not accept base type pointers (that does not contain the GObject functions).

Constructor & Destructor Documentation

GPointer::GPointer ( void *  ptr = NULL)
inline

Default constructor.

Parameters
ptrpointer

References pointer.

GPointer::GPointer ( const GPointer original)
inline

Copy constructor.

Parameters
originalobject to copy

References pointer.

GPointer::~GPointer ( )
inlinevirtual

Destructor.

Member Function Documentation

void * GPointer::GetPointer ( ) const
inline

Return the pointer.

References pointer.

Referenced by operator==().

GPointer & GPointer::operator= ( const GPointer original)
inline

Affectation operator.

Parameters
originalobject to copy

References pointer.

bool GPointer::operator== ( const GPointer ptr)
inlinevirtual

Opérateur de comparaison: il porte sur le nom et le pointeur de l'objet.

Parameters
ptrélément à comparer

References GetPointer(), and pointer.

void GPointer::SetPointer ( void *  ptr)
inline

Modify the pointer.

Parameters
ptrnew pointer

References pointer.


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