This is the documentation for Enlighten.
class Geo GeoArray_Stl
template<typename T>
class Geo::GeoArray_Stl
STL adaptor to make the GeoArray look like a proper STL container.
Typedefs
Name | Description |
|---|---|
const T * const_iterator | The simplest possible const_iterator type (a raw pointer). |
const T * const_pointer | STL style typedefs that mark us as being a random access container. |
const T & const_reference | STL style typedefs that mark us as being a random access container. |
T * iterator | The simplest possible iterator type (a raw pointer). |
std::random_access_iterator_tag iterator_category | STL style typedefs that mark us as being a random access container. |
T * pointer | STL style typedefs that mark us as being a random access container. |
T & reference | STL style typedefs that mark us as being a random access container. |
s32 size_type | STL style typedefs that mark us as being a random access container. |
T value_type | STL style typedefs that mark us as being a random access container. |
T ValueType | Alias for our storage type. |
Functions
Name | Description |
|---|---|
Destructor calls destructor on all elements in the array and frees the memory. | |
Forwarding functions with Stl naming convention. | |
Forwarding functions with Stl naming convention. | |
Non constant access to final entry. | |
Constant access to final entry. | |
Forwarding functions with Stl naming convention. | |
Forwarding functions with Stl naming convention. | |
Return iterator similar to vector::begin() | |
Return iterator similar to vector::begin() | |
Remove all elements from the array. | |
Returns true if the array contains x. | |
Insert an element at the specified index, elements already in the array at that index and above are shuffled up. | |
Add the specified element to the end of the array. | |
Fast version of push that doesn't do any checking in release. | |
Inserts elem at index, and moves whatever is currently at the index to the end of the array, thus not preserving order or existing indices. | |
Forwarding functions with Stl naming convention. | |
Forwarding functions with Stl naming convention. | |
Forwarding functions with Stl naming convention. | |
Return iterator similar to vector::end() | |
Return iterator similar to vector::end() | |
Forwarding functions with Stl naming convention. | |
Forwarding functions with Stl naming convention. | |
Non constant access to final entry. | |
Constant access to final entry. | |
Construct an empty array with the default capacity. | |
Construct a copy of the specified array. | |
Construct with the specified value replicated numCopies times. | |
Move constructor. | |
Construct a copy of the specified array - The compiler must be able to resolve T = CompatT. | |
Construct a copy of the specified array - The compiler must be able to resolve T = CompatT. | |
Give access to the internal array. | |
Remove all elements from the array. | |
Remove all elements from the array. | |
Returns the number of array entries available at the moment. | |
Memory used for array storage. | |
Return the number of array entries currently in use. | |
Common initialisation code called by all constructors. | |
Insert an element at the specified index, elements already in the array at that index and above are shuffled up. | |
Insert an element at the specified index, elements already in the array at that index and above are shuffled up. | |
Inserts elem at index, and moves whatever is currently at the index to the end of the array, thus not preserving order or existing indices. | |
Inserts elem at index, and moves whatever is currently at the index to the end of the array, thus not preserving order or existing indices. | |
Returns true if the array is empty. | |
Returns true if the array is full. | |
Constant array access. | |
Non constant array access. | |
Move assignment operator. | |
Assignment operator - The compiler must be able to resolve T = CompatT. | |
Assignment operator. | |
Remove the element with the highest index (if there is one) | |
Forwarding functions with Stl naming convention. | |
Fast version of pop that doesn't do any checking in release. | |
Add the specified element to the end of the array. | |
Add the specified element to the end of the array. | |
Forwarding functions with Stl naming convention. | |
Fast version of push that doesn't do any checking in release. | |
Fast version of push that doesn't do any checking in release. | |
Remove the element at the specified index, elements at higher indices are shuffled down. | |
Moves the end of the array into the element to be removed, thus not preserving order or existing indices. | |
Resize the array. | |
Resize the array. | |
Ensure sufficient capacity for Resize operations. | |
Change the array's capacity, reallocating memory if the new capacity is different to the current capacity. | |
Swap the contents of two arrays. |
Variables
Geo::GeoArray< T >::~GeoArray
public: ~GeoArray()
Destructor calls destructor on all elements in the array and frees the memory.
reference Geo::GeoArray_Stl< T >::back
public: reference back()
Forwarding functions with Stl naming convention.
const_reference Geo::GeoArray_Stl< T >::back
public: const_reference back() const
Forwarding functions with Stl naming convention.
ValueType& Geo::GeoArray< T >::Back
public: ValueType & Back()
Non constant access to final entry.
const ValueType& Geo::GeoArray< T >::Back
public: const ValueType & Back() const
Constant access to final entry.
pointer Geo::GeoArray_Stl< T >::begin
public: pointer begin()
Forwarding functions with Stl naming convention.
const_pointer Geo::GeoArray_Stl< T >::begin
public: const_pointer begin() const
Forwarding functions with Stl naming convention.
ValueType* Geo::GeoArray< T >::Begin
public: ValueType * Begin()
Return iterator similar to vector::begin()
const ValueType* Geo::GeoArray< T >::Begin
public: const ValueType * Begin() const
Return iterator similar to vector::begin()
void Geo::GeoArray< T >::Clear
public: void Clear()
Remove all elements from the array.
The capacity of the array remains unchanged, which means that no memory is deallocated.
bool Geo::GeoArray< T >::Contains
public: bool Contains
(
const T & x
) const
Returns true if the array contains x.
void Geo::GeoArray< T >::Emplace
public: void Emplace
(
s32 index,
U && elem
)
Insert an element at the specified index, elements already in the array at that index and above are shuffled up.
bool Geo::GeoArray< T >::EmplaceBack
public: bool EmplaceBack
(
U && elem
)
Add the specified element to the end of the array.
void Geo::GeoArray< T >::EmplaceBackFast
protected: void EmplaceBackFast
(
U && elem
)
Fast version of push that doesn't do any checking in release.
void Geo::GeoArray< T >::EmplaceFast
public: void EmplaceFast
(
s32 index,
U && elem
)
Inserts elem at index, and moves whatever is currently at the index to the end of the array, thus not preserving order or existing indices.
bool Geo::GeoArray_Stl< T >::empty
public: bool empty() const
Forwarding functions with Stl naming convention.
pointer Geo::GeoArray_Stl< T >::end
public: pointer end()
Forwarding functions with Stl naming convention.
const_pointer Geo::GeoArray_Stl< T >::end
public: const_pointer end() const
Forwarding functions with Stl naming convention.
const ValueType* Geo::GeoArray< T >::End
public: const ValueType * End() const
Return iterator similar to vector::end()
ValueType* Geo::GeoArray< T >::End
public: ValueType * End()
Return iterator similar to vector::end()
reference Geo::GeoArray_Stl< T >::front
public: reference front()
Forwarding functions with Stl naming convention.
const_reference Geo::GeoArray_Stl< T >::front
public: const_reference front() const
Forwarding functions with Stl naming convention.
ValueType& Geo::GeoArray< T >::Front
public: ValueType & Front()
Non constant access to final entry.
const ValueType& Geo::GeoArray< T >::Front
public: const ValueType & Front() const
Constant access to final entry.
Geo::GeoArray< T >::GeoArray
public: GeoArray
(
s32 initCapacity
)
Construct an empty array with the default capacity.
Geo::GeoArray< T >::GeoArray
public: GeoArray
(
const GeoArray & srcArray
)