Template Class Array¶
- Defined in File Array.h
Class Documentation¶
-
template <typename Type, U32 MaxSize>
classArray
¶ Public Functions
-
~Array
()¶
-
void
PushBack
(const Type &data)¶ Appends data to the end of the array.
- Parameters
data
: Data to push
-
Type
Pop
()¶ Removes the last element in the array array.
- Return
- Element that was popped
-
int
FindFirst
(const Type &data)¶ Searches for the data in the Array.
- Return
- Index if Found, else -1
- Parameters
data
: Data to search for
-
void
Remove
(const Type &data)¶ Searches for the given data in the array and removes it.
- Parameters
data
: Data to Search for and Remove
-
bool
IsEmpty
() const¶ Checks if the container is empty.
- Return
- true if empty
-
void
InsertAt
(U32 idx, const Type &data)¶ Inserts the supplied data at the index.
- Parameters
idx
: Target Indexdata
: Data to insert
-
Type &
operator[]
(U32 idx)¶
-
Type &
operator[]
(U32 idx) const¶
-
Type *
Data
()¶
-
U32
GetSize
() const¶
-
U32
GetMaxSize
() const¶
-
class
Iterator
¶ Public Types
-
template<>
usingiterator_category
= std::random_access_iterator_tag¶
-
template<>
usingvalue_type
= Type¶
-
template<>
usingdifference_type
= int¶
-
template<>
usingpointer
= Type *¶
-
template<>
usingreference
= Type&¶
Public Functions
-
template<>
Iterator
()¶
-
template<>
~Iterator
()¶
-
template<>
Iterator &operator=
(const Iterator &other)¶
-
template<>
Iterator
(const Array *ptr, int index)¶
-
template<>
Iterator &operator=
(Iterator &&other)¶
-
template<>
Iterator &operator++
()¶
-
template<>
Iteratoroperator++
(int)¶
-
template<>
Iterator &operator--
()¶
-
template<>
Iteratoroperator--
(int)¶
-
template<>
booloperator==
(const Iterator &rhs)¶
-
template<>
booloperator!=
(const Iterator &rhs)¶
-
template<>
booloperator<
(const Iterator &rhs)¶
-
template<>
booloperator<=
(const Iterator &rhs)¶
-
template<>
booloperator>
(const Iterator &rhs)¶
-
template<>
booloperator>=
(const Iterator &rhs)¶
-
template<>
Iteratoroperator+
(const int &idx)¶
-
template<>
Iterator &operator+=
(const int &idx)¶
-
template<>
Iteratoroperator-
(const int &idx)¶
-
template<>
Iterator &operator-=
(const int &idx)¶
-
template<>
intoperator-
(const Iterator &rhs)¶
-
template<>
Type &operator*
()¶
-
template<>
Type *operator->
()¶
-
template<>
Type &operator[]
(const int &idx)¶
Friends
-
int
operator-
(const Iterator &lhs, const Iterator &rhs)¶
-
template<>
-