Public Member Functions | Static Public Member Functions | Friends

VgEngine::VgConstRefPtr< Type > Class Template Reference

The VgRefPtr class is used to automatically reference and unreference reference counted objects (VgReferenced). More...

List of all members.

Public Member Functions

 VgConstRefPtr ()
 Constructor.
 VgConstRefPtr (Type const *pPointer)
 Constructor.
 VgConstRefPtr (const VgConstRefPtr &pConstRefPtr)
 Copy constructor.
template<class OtherType >
 VgConstRefPtr (const VgConstRefPtr< OtherType > &pConstRefPtr)
 Cross-type constructor.
 ~VgConstRefPtr ()
 Destructor.
VgConstRefPtroperator= (const VgConstRefPtr &pConstRefPtr)
 Assignation operator.
template<class OtherType >
VgConstRefPtr< Type > & operator= (const VgConstRefPtr< OtherType > &pConstRefPtr)
 Cross-type assignation operator.
template<typename OtherType >
 operator VgConstRefPtr< OtherType > ()
VgConstRefPtrset (Type const *pPointer)
VgConstRefPtroperator= (Type const *pPointer)
 Assignation operator with a pointer.
bool operator== (const VgConstRefPtr &pConstRefPtr) const
 Equal to operator (VgRefPtr acts like a pointer).
bool operator== (Type const *pPointer) const
 Equal to operator (VgRefPtr acts like a pointer).
bool operator!= (const VgConstRefPtr &pRefPtr) const
 Not equal to operator (VgRefPtr acts like a pointer).
bool operator!= (Type const *pPointer) const
 Not equal to operator (VgRefPtr acts like a pointer).
bool operator< (const VgConstRefPtr &pRefPtr) const
 Greater than operator (VgRefPtr acts like a pointer).
Type const & operator* () const
 Dereference the pointer.
Type const * operator-> () const
 Allow the access to encapsulated pointer's members.
Type const * get () const
 Retrieves the encapsulated pointer.
bool operator! () const
 Logical negation operator (used to test the pointer validity).
bool isValid () const
 Tell if the pointer is valid.
 operator bool ()

Static Public Member Functions

static VgConstRefPtr< Type > getNull ()

Friends

class VgEngine::VgObjectBridge
class VgConstRefPtr
class VgRefPtr
bool operator== (Type const *pPointer, const VgConstRefPtr &pRefPtr)
 Equal to operator (VgRefPtr acts like a pointer).
bool operator!= (Type const *pPointer, const VgConstRefPtr< Type > &pRefPtr)
 Not equal to operator (VgRefPtr acts like a pointer).

Detailed Description

template<typename Type>
class VgEngine::VgConstRefPtr< Type >

The VgRefPtr class is used to automatically reference and unreference reference counted objects (VgReferenced).

A documentation can be found here: http://andesengineering.com/OSG_ProducerArticles/RefPointers/RefPointers.html

Here is the summary of rules defined in this document.


Constructor & Destructor Documentation

template<typename Type>
VgEngine::VgConstRefPtr< Type >::VgConstRefPtr (  ) [inline]

Constructor.

template<typename Type>
VgEngine::VgConstRefPtr< Type >::VgConstRefPtr ( Type const *  pPointer ) [inline]

Constructor.

template<typename Type>
VgEngine::VgConstRefPtr< Type >::VgConstRefPtr ( const VgConstRefPtr< Type > &  pConstRefPtr ) [inline]

Copy constructor.

template<typename Type>
template<class OtherType >
VgEngine::VgConstRefPtr< Type >::VgConstRefPtr ( const VgConstRefPtr< OtherType > &  pConstRefPtr ) [inline]

Cross-type constructor.

template<typename Type>
VgEngine::VgConstRefPtr< Type >::~VgConstRefPtr (  ) [inline]

Destructor.


Member Function Documentation

template<typename Type>
Type const* VgEngine::VgConstRefPtr< Type >::get (  ) const [inline]

Retrieves the encapsulated pointer.

template<typename Type>
static VgConstRefPtr<Type> VgEngine::VgConstRefPtr< Type >::getNull (  ) [inline, static]
template<typename Type>
bool VgEngine::VgConstRefPtr< Type >::isValid (  ) const [inline]

Tell if the pointer is valid.

template<typename Type>
VgEngine::VgConstRefPtr< Type >::operator bool (  ) [inline]
template<typename Type>
template<typename OtherType >
VgEngine::VgConstRefPtr< Type >::operator VgConstRefPtr< OtherType > (  ) [inline]
template<typename Type>
bool VgEngine::VgConstRefPtr< Type >::operator! (  ) const [inline]

Logical negation operator (used to test the pointer validity).

template<typename Type>
bool VgEngine::VgConstRefPtr< Type >::operator!= ( Type const *  pPointer ) const [inline]

Not equal to operator (VgRefPtr acts like a pointer).

template<typename Type>
bool VgEngine::VgConstRefPtr< Type >::operator!= ( const VgConstRefPtr< Type > &  pRefPtr ) const [inline]

Not equal to operator (VgRefPtr acts like a pointer).

template<typename Type>
Type const& VgEngine::VgConstRefPtr< Type >::operator* (  ) const [inline]

Dereference the pointer.

template<typename Type>
Type const* VgEngine::VgConstRefPtr< Type >::operator-> (  ) const [inline]

Allow the access to encapsulated pointer's members.

template<typename Type>
bool VgEngine::VgConstRefPtr< Type >::operator< ( const VgConstRefPtr< Type > &  pRefPtr ) const [inline]

Greater than operator (VgRefPtr acts like a pointer).

template<typename Type>
template<class OtherType >
VgConstRefPtr< Type >& VgEngine::VgConstRefPtr< Type >::operator= ( const VgConstRefPtr< OtherType > &  pConstRefPtr ) [inline]

Cross-type assignation operator.

template<typename Type>
VgConstRefPtr& VgEngine::VgConstRefPtr< Type >::operator= ( Type const *  pPointer ) [inline]

Assignation operator with a pointer.

template<typename Type>
VgConstRefPtr& VgEngine::VgConstRefPtr< Type >::operator= ( const VgConstRefPtr< Type > &  pConstRefPtr ) [inline]

Assignation operator.

template<typename Type>
bool VgEngine::VgConstRefPtr< Type >::operator== ( Type const *  pPointer ) const [inline]

Equal to operator (VgRefPtr acts like a pointer).

template<typename Type>
bool VgEngine::VgConstRefPtr< Type >::operator== ( const VgConstRefPtr< Type > &  pConstRefPtr ) const [inline]

Equal to operator (VgRefPtr acts like a pointer).

template<typename Type>
VgConstRefPtr& VgEngine::VgConstRefPtr< Type >::set ( Type const *  pPointer ) [inline]

Friends And Related Function Documentation

template<typename Type>
bool operator!= ( Type const *  pPointer,
const VgConstRefPtr< Type > &  pRefPtr 
) [friend]

Not equal to operator (VgRefPtr acts like a pointer).

template<typename Type>
bool operator== ( Type const *  pPointer,
const VgConstRefPtr< Type > &  pRefPtr 
) [friend]

Equal to operator (VgRefPtr acts like a pointer).

template<typename Type>
friend class VgConstRefPtr [friend]
template<typename Type>
friend class VgEngine::VgObjectBridge [friend]
template<typename Type>
friend class VgRefPtr [friend]

The documentation for this class was generated from the following file:
VisioDevKit 2.0, Visioglobe® 2013