- Main Page
- Classes
- Files
- Directories
- Examples

- Class List
- Class Hierarchy
- Class Members

Public Member Functions

# FbxLayerElementArrayReadLock< T > Struct Template Reference

Search for all occurrences

## Detailed Description

### template<typename T>
struct FbxLayerElementArrayReadLock< T >

This class provides simple RAII-style read locking of a FbxLayerElementArray object.

Definition at line 825 of file fbxlayer.h.

`#include <fbxlayer.h>`

List of all members.

## Public Member Functions
| FbxLayerElementArrayReadLock (FbxLayerElementArray &pArray)
| ~FbxLayerElementArrayReadLock ()
const T * | GetData () const

## Constructor & Destructor Documentation

FbxLayerElementArrayReadLock | ( | FbxLayerElementArray & | pArray | ) | `[inline]`

On construction, this class requires the read lock.

Definition at line 830 of file fbxlayer.h.

                                                                   : mArray(pArray)
        {
            mLockedData = mArray.GetLocked((T*)NULL, FbxLayerElementArray::eReadLock);
        }

~FbxLayerElementArrayReadLock | ( |  | ) | `[inline]`

On destruction, this class releases the read lock.

Definition at line 838 of file fbxlayer.h.

        {
            if( mLockedData )
            {
                mArray.Release((void **) &mLockedData);
            }
        }

## Member Function Documentation

const T* GetData | ( |  | ) | const `[inline]`

Search for all occurrences

Retrieve the locked array data.

Definition at line 849 of file fbxlayer.h.

        {
            return mLockedData;
        }

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

- fbxsdk/scene/geometry/fbxlayer.h