#include<kfbxlayer.h>
Inherited by KFbxLayerElementArrayTemplate, and KFbxLayerElementArrayTemplate<KFbxSurfaceMaterial *>.
Definition at line330of filekfbxlayer.h.
Constructor and Destructor | |
KFbxLayerElementArray(EFbxType pDataType) | |
Constructor. | |
virtual | ~KFbxLayerElementArray() |
Destructor. | |
Status handling | |
void | ClearStatus() |
Clear access state and set it to success. | |
LockAccessStatus::ELockAccessStatus | GetStatus() const |
Retrieve access state. | |
Locks handling | |
bool | IsWriteLocked() const |
Get whether write is locked. | |
int | GetReadLockCount() const |
Retrieve the read lock count. | |
Data array manipulation | |
int | GetCount() const |
void | SetCount(int pCount) |
void | Clear() |
void | Resize(int pItemCount) |
void | AddMultiple(int pItemCount) |
int | Add(void const *pItem, EFbxType pValueType) |
int | InsertAt(int pIndex, void const *pItem, EFbxType pValueType) |
void | SetAt(int pIndex, void const *pItem, EFbxType pValueType) |
void | SetLast(void const *pItem, EFbxType pValueType) |
void | RemoveAt(int pIndex, void **pItem, EFbxType pValueType) |
void | RemoveLast(void **pItem, EFbxType pValueType) |
bool | RemoveIt(void **pItem, EFbxType pValueType) |
bool | GetAt(int pIndex, void **pItem, EFbxType pValueType) const |
bool | GetFirst(void **pItem, EFbxType pValueType) const |
bool | GetLast(void **pItem, EFbxType pValueType) const |
int | Find(void const *pItem, EFbxType pValueType) const |
int | FindAfter(int pAfterIndex, void const *pItem, EFbxType pValueType) const |
int | FindBefore(int pBeforeIndex, void const *pItem, EFbxType pValueType) const |
bool | IsEqual(constKFbxLayerElementArray&pArray) |
template<class T> | |
int | Add(T const&pItem) |
template<class T> | |
int | InsertAt(int pIndex, T const&pItem) |
template<class T> | |
void | SetAt(int pIndex, T const&pItem) |
template<class T> | |
void | SetLast(T const&pItem) |
template<class T> | |
void | RemoveAt(int pIndex, T *pItem) |
template<class T> | |
void | RemoveLast(T *pItem) |
template<class T> | |
bool | RemoveIt(T *pItem) |
template<class T> | |
bool | GetAt(int pIndex, T *pItem) const |
template<class T> | |
bool | GetFirst(T *pItem) const |
template<class T> | |
bool | GetLast(T *pItem) const |
template<class T> | |
int | Find(T const&pItem) const |
template<class T> | |
int | FindAfter(int pAfterIndex, T const&pItem) const |
template<class T> | |
int | FindBefore(int pBeforeIndex, T const&pItem) const |
template<typename T> | |
void | CopyTo(KArrayTemplate<T>&pDst) |
Public Member Functions | |
bool | IsInUse() const |
Returnstrue if this Array is accessed in any way. | |
int | ReadLock() const |
Increments the number of locks on this array. | |
int | ReadUnlock() const |
Release a read lock on this array. | |
bool | WriteLock() const |
Locks this array for writing. | |
void | WriteUnlock() const |
Release the write lock on this array. | |
bool | ReadWriteLock() const |
Locks this array for writing. | |
void | ReadWriteUnlock() const |
Release the write lock on this array. | |
virtual void * | GetLocked(ELockMode pLockMode, EFbxType pDataType) |
Grants a locked access to the data buffer. | |
virtual void | Release(void **pDataPtr, EFbxType pDataType) |
Release the lock on the data buffer. | |
virtual size_t | GetStride() const |
Return the Stride size. |
KFbxLayerElementArray | ( | EFbxType | pDataType | ) |
Constructor.
virtual ~KFbxLayerElementArray | ( | ) | [virtual] |
Destructor.
void ClearStatus | ( | ) | [inline] |
Clear access state and set it to success.
Definition at line349of filekfbxlayer.h.
LockAccessStatus::ELockAccessStatusGetStatus | ( | ) | const[inline] |
Retrieve access state.
Definition at line352of filekfbxlayer.h.
bool IsWriteLocked | ( | ) | const[inline] |
Get whether write is locked.
true
if write is locked,false
otherwise.Definition at line363of filekfbxlayer.h.
int GetReadLockCount | ( | ) | const[inline] |
bool IsInUse | ( | ) | const |
Returnstrue
if this Array is accessed in any way.
int ReadLock | ( | ) | const |
Increments the number of locks on this array.
int ReadUnlock | ( | ) | const |
Release a read lock on this array.
bool WriteLock | ( | ) | const |
Locks this array for writing.
The data in the array is wiped out.
void WriteUnlock | ( | ) | const |
Release the write lock on this array.
bool ReadWriteLock | ( | ) | const |
Locks this array for writing.
The data already existing in the array is kept and is valid.
void ReadWriteUnlock | ( | ) | const |
Release the write lock on this array.
virtual void* GetLocked | ( | ELockMode | pLockMode, | |
EFbxType | pDataType | |||
) | [virtual] |
Grants a locked access to the data buffer.
pLockMode | Access mode to the data buffer. | |
pDataType | If defined, try to return the data as this type. |
virtual void Release | ( | void ** | pDataPtr, | |
EFbxType | pDataType | |||
) | [virtual] |
Release the lock on the data buffer.
pDataPtr | The buffer we want to release. | |
pDataType | data type |
virtual size_t GetStride | ( | ) | const[virtual] |
Return the Stride size.