The VgRefPtr class is used to automatically reference and unreference reference counted objects (VgReferenced). More...
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. | |
| VgConstRefPtr & | operator= (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 > () | |
| VgConstRefPtr & | set (Type const *pPointer) |
| VgConstRefPtr & | operator= (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). | |
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.
| VgEngine::VgConstRefPtr< Type >::VgConstRefPtr | ( | ) | [inline] |
Constructor.
| VgEngine::VgConstRefPtr< Type >::VgConstRefPtr | ( | Type const * | pPointer ) | [inline] |
Constructor.
| VgEngine::VgConstRefPtr< Type >::VgConstRefPtr | ( | const VgConstRefPtr< Type > & | pConstRefPtr ) | [inline] |
Copy constructor.
| VgEngine::VgConstRefPtr< Type >::VgConstRefPtr | ( | const VgConstRefPtr< OtherType > & | pConstRefPtr ) | [inline] |
Cross-type constructor.
| VgEngine::VgConstRefPtr< Type >::~VgConstRefPtr | ( | ) | [inline] |
Destructor.
| Type const* VgEngine::VgConstRefPtr< Type >::get | ( | ) | const [inline] |
Retrieves the encapsulated pointer.
| static VgConstRefPtr<Type> VgEngine::VgConstRefPtr< Type >::getNull | ( | ) | [inline, static] |
| bool VgEngine::VgConstRefPtr< Type >::isValid | ( | ) | const [inline] |
Tell if the pointer is valid.
| VgEngine::VgConstRefPtr< Type >::operator bool | ( | ) | [inline] |
| VgEngine::VgConstRefPtr< Type >::operator VgConstRefPtr< OtherType > | ( | ) | [inline] |
| bool VgEngine::VgConstRefPtr< Type >::operator! | ( | ) | const [inline] |
Logical negation operator (used to test the pointer validity).
| bool VgEngine::VgConstRefPtr< Type >::operator!= | ( | Type const * | pPointer ) | const [inline] |
Not equal to operator (VgRefPtr acts like a pointer).
| bool VgEngine::VgConstRefPtr< Type >::operator!= | ( | const VgConstRefPtr< Type > & | pRefPtr ) | const [inline] |
Not equal to operator (VgRefPtr acts like a pointer).
| Type const& VgEngine::VgConstRefPtr< Type >::operator* | ( | ) | const [inline] |
Dereference the pointer.
| Type const* VgEngine::VgConstRefPtr< Type >::operator-> | ( | ) | const [inline] |
Allow the access to encapsulated pointer's members.
| bool VgEngine::VgConstRefPtr< Type >::operator< | ( | const VgConstRefPtr< Type > & | pRefPtr ) | const [inline] |
Greater than operator (VgRefPtr acts like a pointer).
| VgConstRefPtr< Type >& VgEngine::VgConstRefPtr< Type >::operator= | ( | const VgConstRefPtr< OtherType > & | pConstRefPtr ) | [inline] |
Cross-type assignation operator.
| VgConstRefPtr& VgEngine::VgConstRefPtr< Type >::operator= | ( | Type const * | pPointer ) | [inline] |
Assignation operator with a pointer.
| VgConstRefPtr& VgEngine::VgConstRefPtr< Type >::operator= | ( | const VgConstRefPtr< Type > & | pConstRefPtr ) | [inline] |
Assignation operator.
| bool VgEngine::VgConstRefPtr< Type >::operator== | ( | Type const * | pPointer ) | const [inline] |
Equal to operator (VgRefPtr acts like a pointer).
| bool VgEngine::VgConstRefPtr< Type >::operator== | ( | const VgConstRefPtr< Type > & | pConstRefPtr ) | const [inline] |
Equal to operator (VgRefPtr acts like a pointer).
| VgConstRefPtr& VgEngine::VgConstRefPtr< Type >::set | ( | Type const * | pPointer ) | [inline] |
| bool operator!= | ( | Type const * | pPointer, |
| const VgConstRefPtr< Type > & | pRefPtr | ||
| ) | [friend] |
Not equal to operator (VgRefPtr acts like a pointer).
| bool operator== | ( | Type const * | pPointer, |
| const VgConstRefPtr< Type > & | pRefPtr | ||
| ) | [friend] |
Equal to operator (VgRefPtr acts like a pointer).
friend class VgConstRefPtr [friend] |
friend class VgEngine::VgObjectBridge [friend] |
friend class VgRefPtr [friend] |