OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Member Functions | Private Attributes | List of all members
Pointer< Object > Class Template Reference

Reference-counted pointer. More...

#include <Pointer.h>

Public Member Functions

 Pointer ()
 Default constructor. More...
 
 Pointer (const Pointer &)
 Copy constructor. More...
 
 Pointer (Object *)
 Constructor. More...
 
 ~Pointer ()
 Destructor. More...
 
Pointeroperator= (const Pointer &)
 Assign. More...
 
Pointeroperator= (Object *)
 Assign. More...
 
Objectoperator-> () const
 Delegation operator. More...
 
Objectoperator* () const
 Dereferencing operator. More...
 
bool operator== (const Pointer &) const
 Pointer equality. More...
 
bool operator!= (const Pointer &) const
 Pointer inequality. More...
 
bool isValid () const
 Test for validity. More...
 
void unique ()
 Force unique. More...
 

Private Attributes

Objectobject
 

Detailed Description

template<class Object>
class Pointer< Object >

Reference-counted pointer.

Definition at line 38 of file Pointer.h.

Constructor & Destructor Documentation

template<class Object >
Pointer< Object >::Pointer ( )
inline

Default constructor.

Definition at line 99 of file Pointer.h.

template<class Object >
Pointer< Object >::Pointer ( const Pointer< Object > &  rhs)
inline

Copy constructor.

Definition at line 105 of file Pointer.h.

template<class Object>
Pointer< Object >::Pointer ( Object obj)
inline

Constructor.

Definition at line 112 of file Pointer.h.

template<class Object >
Pointer< Object >::~Pointer ( )
inline

Destructor.

Definition at line 119 of file Pointer.h.

Member Function Documentation

template<class Object >
bool Pointer< Object >::isValid ( ) const
inline

Test for validity.

Definition at line 170 of file Pointer.h.

Referenced by AttributeHandler::getDefault(), and Line::parseList().

template<class Object >
bool Pointer< Object >::operator!= ( const Pointer< Object > &  rhs) const
inline

Pointer inequality.

Definition at line 164 of file Pointer.h.

References Pointer< Object >::object.

template<class Object >
Object & Pointer< Object >::operator* ( ) const
inline

Dereferencing operator.

Definition at line 152 of file Pointer.h.

template<class Object >
Object * Pointer< Object >::operator-> ( ) const
inline

Delegation operator.

Definition at line 146 of file Pointer.h.

template<class Object >
Pointer< Object > & Pointer< Object >::operator= ( const Pointer< Object > &  rhs)
inline

Assign.

Definition at line 125 of file Pointer.h.

References RCObject::addReference(), and Pointer< Object >::object.

Here is the call graph for this function:

template<class Object>
Pointer< Object > & Pointer< Object >::operator= ( Object obj)
inline

Assign.

Definition at line 137 of file Pointer.h.

References RCObject::addReference().

Here is the call graph for this function:

template<class Object >
bool Pointer< Object >::operator== ( const Pointer< Object > &  rhs) const
inline

Pointer equality.

Definition at line 158 of file Pointer.h.

References Pointer< Object >::object.

template<class Object >
void Pointer< Object >::unique ( )
inline

Force unique.

Definition at line 176 of file Pointer.h.

References RCObject::addReference().

Here is the call graph for this function:

Member Data Documentation

template<class Object>
Object* Pointer< Object >::object
private

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