smart_pointer Class Template Reference

#include <pointer.hpp>

Inheritance diagram for smart_pointer:

Inheritance graph
[legend]
Collaboration diagram for smart_pointer:

Collaboration graph
[legend]

List of all members.


Detailed Description

template<typename T, bool ARRAY_PTR = false>
class gsgl::data::smart_pointer< T, ARRAY_PTR >

Definition at line 48 of file pointer.hpp.


Public Member Functions

 operator const T * () const
 operator T * ()
T & operator* ()
const T & operator* () const
T * operator-> ()
const T * operator-> () const
bool operator== (const smart_pointer &p)
T * ptr ()
const T * ptr () const
 smart_pointer (T *data=0)
T & value ()
const T & value () const
 ~smart_pointer ()

Private Member Functions

smart_pointeroperator= (const smart_pointer &sp)
 smart_pointer (const smart_pointer &sp)

Private Attributes

T * data

Constructor & Destructor Documentation

smart_pointer ( const smart_pointer< T, ARRAY_PTR > &  sp  )  [inline, private]

Definition at line 86 of file pointer.hpp.

smart_pointer ( T *  data = 0  )  [inline, explicit]

Definition at line 79 of file pointer.hpp.

~smart_pointer (  )  [inline]

Definition at line 99 of file pointer.hpp.

References smart_pointer::data.


Member Function Documentation

operator const T * (  )  const [inline]

Definition at line 156 of file pointer.hpp.

References smart_pointer::data.

operator T * (  )  [inline]

Definition at line 162 of file pointer.hpp.

References smart_pointer::data.

T & operator* (  )  [inline]

Definition at line 138 of file pointer.hpp.

References smart_pointer::data.

const T & operator* (  )  const [inline]

Definition at line 132 of file pointer.hpp.

References smart_pointer::data.

T * operator-> (  )  [inline]

Definition at line 150 of file pointer.hpp.

References smart_pointer::data.

const T * operator-> (  )  const [inline]

Definition at line 144 of file pointer.hpp.

References smart_pointer::data.

smart_pointer< T, ARRAY_PTR > & operator= ( const smart_pointer< T, ARRAY_PTR > &  sp  )  [inline, private]

Definition at line 93 of file pointer.hpp.

bool operator== ( const smart_pointer< T, ARRAY_PTR > &  p  ) 

T * ptr (  )  [inline]

Definition at line 114 of file pointer.hpp.

References smart_pointer::data.

const T * ptr (  )  const [inline]

Definition at line 108 of file pointer.hpp.

References smart_pointer::data.

Referenced by string::from_stream().

T & value (  )  [inline]

Definition at line 126 of file pointer.hpp.

References smart_pointer::data.

const T & value (  )  const [inline]

Definition at line 120 of file pointer.hpp.

References smart_pointer::data.


Member Data Documentation

T* data [private]


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

Generated on Sat Mar 1 13:50:06 2008 for Periapsis Project by  doxygen 1.5.5