![]() |
Gorgon Game Engine
|
Public Member Functions | |
Array (const Array &arr) | |
Array (const Type &type) | |
Data | GetItemData (unsigned index) |
Data | GetItemData (unsigned index) const |
unsigned | GetSize () const |
const Type & | GetType () const |
Data | PopData () |
void | PushData (Any elm, bool ref=false, bool cnst=false) |
void | PushData (Data elm) |
template<class T_ > | |
void | PushWithoutCheck (const T_ &elm) |
void | Resize (unsigned size) |
void | SetItemData (unsigned index, Data data) |
Public Attributes | |
const std::vector< Data > & | Elements |
Protected Attributes | |
std::vector< Data > | elements |
const Type * | type |
Data GetItemData | ( | unsigned | index | ) |
References Array::elements.
Data GetItemData | ( | unsigned | index | ) | const |
References Array::elements.
unsigned GetSize | ( | ) | const |
References Array::elements.
const Type& GetType | ( | ) | const |
References Array::type.
Data PopData | ( | ) |
References Array::elements.
void PushData | ( | Any | elm, |
bool | ref = false , |
||
bool | cnst = false |
||
) |
References Array::elements, and Array::type.
void PushData | ( | Data | elm | ) |
References Array::elements, Data::GetType(), Type::MorphTo(), and Array::type.
void PushWithoutCheck | ( | const T_ & | elm | ) |
References Array::elements, and Array::type.
void Resize | ( | unsigned | size | ) |
References Array::elements, Type::GetDefaultValue(), and Array::type.
void SetItemData | ( | unsigned | index, |
Data | data | ||
) |
References Array::elements, Data::GetType(), Type::MorphTo(), and Array::type.
const std::vector<Data>& Elements |
|
protected |
|
protected |