This class provides simple RAII-style read locking of a KFbxLayerElementArray object.
Definition at line 848 of file kfbxlayer.h.
#include <kfbxlayer.h>
Public Member Functions |
|
KFbxLayerElementArrayReadLock (KFbxLayerElementArray &pArray) | |
~KFbxLayerElementArrayReadLock () | |
const T * | GetData () const |
KFbxLayerElementArrayReadLock | ( | KFbxLayerElementArray & | pArray | ) | [inline] |
On construction, this class requires the read lock.
Definition at line 853 of file kfbxlayer.h.
: mArray(pArray) { mLockedData = mArray.GetLocked((T*)NULL, KFbxLayerElementArray::eREAD_LOCK); }
~KFbxLayerElementArrayReadLock | ( | ) | [inline] |
On destruction, this class releases the read lock.
Definition at line 861 of file kfbxlayer.h.
{ if( mLockedData ) { mArray.Release((void **) &mLockedData); } }
const T* GetData | ( | ) | const [inline] |