H3D API  2.4.1
Public Member Functions | List of all members
H3D::SpiderMonkey::PointerPrivateData< PointerType > Class Template Reference

Class used as the private data in field JSObject classes. More...

#include <H3D/SpiderMonkeyTypes.h>

Public Member Functions

 PointerPrivateData (PointerType *_ptr, bool _internal_pointer, int _array_index=-1)
 Constructor. More...
 
 ~PointerPrivateData ()
 Destructor.
 
PointerType * getPointer ()
 Get the pointer the JSObject encapsulates.
 
bool isDisposed ()
 Returns true if this data object has been disposed.
 
int getArrayIndex ()
 Return the array index (in case we using (MF, index) to represent an SF object Return -1 if it IS an SF object.
 
void dispose ()
 Dispose the object. Sets the dispose flag to true.
 

Detailed Description

template<class PointerType>
class H3D::SpiderMonkey::PointerPrivateData< PointerType >

Class used as the private data in field JSObject classes.

Constructor & Destructor Documentation

◆ PointerPrivateData()

template<class PointerType >
H3D::SpiderMonkey::PointerPrivateData< PointerType >::PointerPrivateData ( PointerType *  _ptr,
bool  _internal_pointer,
int  _array_index = -1 
)
inline

Constructor.

Parameters
_ptrA pointer to the class for which this private data should be created.
_internal_pointerIf true, the field will be deleted when the FieldObjectPrivate object is destructed.
_array_indexIndex into array if MF object.

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