Public Member Functions | Protected Attributes

fbxBlob Class Reference

Search for all occurrences

Detailed Description

FBX SDK blob class.

Uninitialized data of a specified size, to be filled by the user.

Examples:

ProceduralTexture/main.cxx.

Definition at line 180 of file kfbxtypes.h.

#include <kfbxtypes.h>

List of all members.

Public Member Functions

void *  Modify ()
  Make a copy if the reference count > 1 (i.e. if the buffer is shared).
void  Clear ()
  Free the memory if this blob is the last one to hold it.

Protected Attributes

int *  mRefCount
void *  mData
int  mSize

Constructors and Destructor

  fbxBlob ()
  Constructor. Set attributes to 0.
  fbxBlob (int pSize)
  Constructor.
  fbxBlob (const fbxBlob &pRHS)
  Copy constructor.
  fbxBlob (const void *pData, int pSize)
  Constructor.
  ~fbxBlob ()
  Destructor.

Assignment.

fbxBlob operator= (fbxBlob const &pValue)
  Share the buffer of the specified blob with this blob.
void  Assign (const void *pData, int pSize)
  Copy the data in the buffer.

Boolean operation

bool  operator== (fbxBlob const &pRHS) const
  Equivalence operator.
bool  operator!= (fbxBlob const &pRHS) const
  Non-equivalence operator.

Access

const void *  Access () const
  Retrieve the buffer pointer.
int  Size () const
  Retrieve the buffer size.

Constructor & Destructor Documentation

fbxBlob ( ) [inline]

Constructor. Set attributes to 0.

Definition at line 188 of file kfbxtypes.h.

{ mData = 0; mSize = 0; mRefCount = 0; }
fbxBlob ( int  pSize )

Constructor.

Construct a buffer with uninitialized data of a specified size, to be filled by the user.

Parameters:
pSize Buffer size.
fbxBlob ( const fbxBlob pRHS ) [inline]

Copy constructor.

Parameters:
pRHS The blob to be copied to this blob.

Definition at line 198 of file kfbxtypes.h.

{ mData = 0; mSize = 0; mRefCount = 0; *this = pRHS; }
fbxBlob ( const void *  pData,
int  pSize 
) [inline]

Constructor.

Parameters:
pData The data to be filled in the buffer.
pSize Buffer size.

Definition at line 204 of file kfbxtypes.h.

{ mData = 0; mSize = 0; mRefCount = 0; Assign(pData,pSize); }
~fbxBlob ( )

Destructor.


Member Function Documentation

fbxBlob& operator= ( fbxBlob const &  pValue )

Share the buffer of the specified blob with this blob.

Parameters:
pValue The blob whose buffer is shared with this blob.
Returns:
This blob.
void Assign ( const void *  pData,
int  pSize 
)

Copy the data in the buffer.

Parameters:
pData The buffer to be copied data from.
pSize Buffer size.
Examples:
ProceduralTexture/main.cxx.
bool operator== ( fbxBlob const &  pRHS ) const

Equivalence operator.

Parameters:
pRHS The blob to be compared with this blob.
Returns:
True, if the two blobs are equal, false otherwise.
bool operator!= ( fbxBlob const &  pRHS ) const [inline]

Non-equivalence operator.

Parameters:
pRHS The blob to be compared with this blob.
Returns:
True, if the two blobs are unequal, otherwise false.

Definition at line 244 of file kfbxtypes.h.

{ return !operator==( pRHS ); }
void* Modify ( )

Make a copy if the reference count > 1 (i.e. if the buffer is shared).

const void* Access ( ) const [inline]

Retrieve the buffer pointer.

Returns:
The buffer pointer.
Examples:
ProceduralTexture/main.cxx.

Definition at line 258 of file kfbxtypes.h.

{ return mData; }
int Size ( ) const [inline]

Retrieve the buffer size.

Returns:
The buffer size.
Examples:
ProceduralTexture/main.cxx.

Definition at line 263 of file kfbxtypes.h.

{ return mSize; }
void Clear ( )

Free the memory if this blob is the last one to hold it.


Member Data Documentation

int* mRefCount [protected]

Definition at line 270 of file kfbxtypes.h.

void* mData [protected]

Definition at line 271 of file kfbxtypes.h.

int mSize [protected]

Definition at line 272 of file kfbxtypes.h.


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

fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob
fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob fbxBlob