VisioMove SDK (iOS)  2.1.22
VgEngine::VgReferenced Class Reference
Inheritance diagram for VgEngine::VgReferenced:
Inheritance graph

Public Member Functions

 VgReferenced ()
 
 VgReferenced (const VgReferenced &pThis)
 
virtual ~VgReferenced ()
 
VgReferencedoperator= (const VgReferenced &pThis)
 
void ref () const
 
int unref () const
 
int getNbReferences () const
 

Protected Attributes

int mNbReferences
 

Detailed Description

The VgReferenced class owns the number of references of an object.

It is in charge of deleting the object when there is not more references. To learn more about its usage look at the VgRefPtr documentation.

Constructor & Destructor Documentation

VgEngine::VgReferenced::VgReferenced ( )

Constructor.

VgEngine::VgReferenced::VgReferenced ( const VgReferenced pThis)

Copy constructor.

virtual VgEngine::VgReferenced::~VgReferenced ( )
virtual

Destructor.

Member Function Documentation

int VgEngine::VgReferenced::getNbReferences ( ) const

Retrieves the number of references to this object.

VgReferenced& VgEngine::VgReferenced::operator= ( const VgReferenced pThis)

Assignment operator.

void VgEngine::VgReferenced::ref ( ) const

This method is used to add a reference to this object. Only VgRefPtr should call this method unless the caller exactly know what he is doing.

int VgEngine::VgReferenced::unref ( ) const

This method is used to remove a reference to this object. When the object has no more references VgRefPtr will delete it. Only VgRefPtr should call this method unless the caller exactly know what he is doing.

Returns
the updated number of references left

Member Data Documentation

int VgEngine::VgReferenced::mNbReferences
mutableprotected

The number of references to this object.


The documentation for this class was generated from the following file:
VisioMove 2.1.22, Visioglobe® 2016