C4 Engine
C4 Engine API Documentation

DataStructure::GetDataElement

Defined in:  TSOpenDDL.h
Returns a single data element stored in a data structure.
Prototype

const PrimType& GetDataElement(int32 index) const;

Parameters
index The zero-based index of the data element to retrieve.
Description
The GetDataElement function returns a single primitive data element stored in a data structure. The legal values of the index parameter range from zero to n −1, inclusive, where n is the total count of data elements returned by the DataStructure::GetDataElementCount function.

The PrimType type is defined by the class corresponding to the type template parameter associated with the particular specialization of the DataStructure class template.
See Also

DataStructure::GetArrayDataElement

DataStructure::GetDataElementCount

PrimitiveStructure::GetArraySize