RawDataT

Engine/source/core/util/rawData.h

More...

Public Types

Parent 
ThisType 
T
ValueType 

Type of elements in the buffer.

Public Attributes

T *

The data buffer.

bool

If true, the structure own the data buffer and will delete[] it on destruction.

Number of elements in the buffer.

Public Functions

RawDataT(T * data, U32 size, bool ownMemory)
alloc(const U32 newSize)

Public Static Functions

Self *
allocInline(U32 numElements TORQUE_TMM_ARGS_DECL)

Allocate a RawDataT instance inline with its data elements.

Detailed Description

Public Types

typedef void Parent 
typedef RawDataT< T > ThisType 
typedef T ValueType 

Type of elements in the buffer.

Public Attributes

T * data 

The data buffer.

bool ownMemory 

If true, the structure own the data buffer and will delete[] it on destruction.

U32 size 

Number of elements in the buffer.

Public Functions

RawDataT()

RawDataT(const ThisType & rd)

RawDataT(T * data, U32 size, bool ownMemory)

~RawDataT()

alloc(const U32 newSize)

operator=(const ThisType & rd)

reset()

Public Static Functions

allocInline(U32 numElements TORQUE_TMM_ARGS_DECL)

Allocate a RawDataT instance inline with its data elements.

Parameters:

Self

RawDataT instance type; this is a type parameter so this can work with types derived from RawDataT.