![]() |
Simplygon C++ API
8.3.35800.0
|
#include <SimplygonSDK.h>
Public Member Functions | |
CountedPointer (const CountedPointer< T > &p) | |
CountedPointer (T *p=NULL) | |
T * | GetPointer () const |
bool | IsNull () const |
operator T* () const | |
T & | operator* () const |
T * | operator-> () const |
CountedPointer< T > & | operator= (const CountedPointer< T > &p) |
~CountedPointer () | |
CountedPointer is a template class for pointers to API objects. All API interface classes have typedefs for counted pointers that points at the specific class. All such typedefs are prefixed with 'sp'. An example of this is 'spObject', which is a typedef for CountedPointer<IObject>. The CountedPointer can be used for any object that supports reference counting, and exports the AddRef and Release methods. See the IObject class for an example.
Definition at line 44 of file SimplygonSDK.h.
|
inline |
Constructs a CountedPointer from a standard pointer. If the source pointer points at an API object, a reference to the API object is added.
p | is a pointer to an API object, or NULL to make the CountedPointer point at nothing. |
Definition at line 51 of file SimplygonSDK.h.
|
inline |
Constructs a CountedPointer from another CountedPointer. If the source pointer points at an API object, a reference to the API object is added.
p | is a CountedPointer that points at an API object. |
Definition at line 60 of file SimplygonSDK.h.
|
inline |
Destructs the CountedPointer, and releases one reference to the API object, if the CountedPointer does currently point at an object.
Definition at line 68 of file SimplygonSDK.h.
|
inline |
Method that returns a standard pointer to the object the pointer is pointing at.
Definition at line 129 of file SimplygonSDK.h.
|
inline |
Tells whether the CountedPointer points at an object, or nothing.
Definition at line 77 of file SimplygonSDK.h.
|
inline |
Operator that returns a standard pointer to the object the pointer is pointing at.
Definition at line 120 of file SimplygonSDK.h.
|
inline |
Operator that returns the reference of the object the pointer is pointing at. Note! Do not use this operator if the pointer is not pointing at an object.
Definition at line 102 of file SimplygonSDK.h.
|
inline |
Operator that returns a standard pointer to the object the pointer is pointing at.
Definition at line 111 of file SimplygonSDK.h.
|
inline |
Sets the pointer to point at the same object as another CountedPointer
p | is the source CountedPointer object |
Definition at line 87 of file SimplygonSDK.h.