nw::ut::FixedSizeArray Class

Syntax

template <typename TElement, size_t TSize>
class FixedSizeArray : public nw::ut::MoveArray< TElement >

Template Arguments

Name Description
TElement The array element type.
TSize Number of elements in the array.

Description

Fixed size array class. Heap memory is not allocated internally.

typedef Definitions

reference Element reference.(Inherited from MoveArray.
difference_type Element difference.(Inherited from MoveArray.
value_type The type of this class's elements.(Inherited from MoveArray.
iterator Element iterator type.(Inherited from MoveArray.
const_iterator Element const iterator type.(Inherited from MoveArray.
reverse_iterator Element reverse iterator type.(Inherited from MoveArray.
const_reverse_iterator Element const reverse iterator type.(Inherited from MoveArray.

Member Constants

S MEMORY_ALIGNMENT const size_t (Inherited from MoveArray.

Member Variables

protected m_Allocator os::IAllocator * (Inherited from MoveArray.
protected m_Elements TElement * (Inherited from MoveArray.
protected m_End TElement * (Inherited from MoveArray.

Member Functions

Arrays and Memory Operations
reserve (Inherited from MoveArray.
push_back (Inherited from MoveArray.
pop_back (Inherited from MoveArray.
assign (Inherited from MoveArray.
resize (Inherited from MoveArray.
erase (Inherited from MoveArray.
clear Calls a destructor for all elements and sets the number of elements to 0. Allocated memory is not freed.(Inherited from MoveArray.
erase_find Searches for elements having the same value as the argument and deletes them.(Inherited from MoveArray.
erase_if Searches for elements meeting specified conditions and deletes them.(Inherited from MoveArray.
ShrinkToFit Trims reserved memory to match the current number of elements.(Inherited from MoveArray.
GetArrayKind Gets the type of array for which memory was allocated.(Inherited from MoveArray.
GetAllocator Gets an allocator.(Inherited from MoveArray.
Aliasing conforms to NintendoWare coding rules.
Size Gets the array size.(Inherited from MoveArray.
Begin Gets an iterator to the start element.(Inherited from MoveArray.
END Gets an iterator to the last element.(Inherited from MoveArray.
RBegin Gets a reverse iterator to the start element.(Inherited from MoveArray.
REnd Gets a reverse iterator to the last element.(Inherited from MoveArray.
Front Gets the array size.(Inherited from MoveArray.
Back Gets a reference to the last element.(Inherited from MoveArray.
Empty Gets a flag indicating if there are any elements. Note this does not mean whether or not there is allocated memory.(Inherited from MoveArray.
Capacity Gets the number of elements of memory that have been allocated.(Inherited from MoveArray.
Reserve Reserves memory for the specified number of elements.(Inherited from MoveArray.
PushBack Adds an element to the end.(Inherited from MoveArray.
PopBack Destroys the last element.(Inherited from MoveArray.
Assign Pads the specified number of elements with the argument element.(Inherited from MoveArray.
Swap Swaps array contents.(Inherited from MoveArray.
Resize Changes the size.(Inherited from MoveArray.
Erase Erases elements after the specified iterator.(Inherited from MoveArray.
Clear Calls a destructor for all elements and sets the number of elements to 0. Allocated memory is not freed.(Inherited from MoveArray.
EraseFind Searches for elements having the same value as the argument and deletes them.(Inherited from MoveArray.
EraseIf Searches for elements meeting specified conditions and deletes them.(Inherited from MoveArray.
For optimization
PushBackFast A fast version of push_back.(Inherited from MoveArray.
Other
FixedSizeArray Constructor.
operator SafeBool Returns true if a valid array is owned.(Inherited from MoveArray.
Elements Externally public accessor just for reading arrays.(Inherited from MoveArray.
operator[] Post-fix operator definition.(Inherited from MoveArray.
Reset Resets the array to manage MoveArray.(Inherited from MoveArray.
size Gets the array size.(Inherited from MoveArray.
begin Gets an iterator to the start element.(Inherited from MoveArray.
end Gets an iterator to the last element.(Inherited from MoveArray.
rbegin Gets a reverse iterator to the start element.(Inherited from MoveArray.
rend Gets a reverse iterator to the last element.(Inherited from MoveArray.
front Gets a reference to the first element.(Inherited from MoveArray.
back Gets a reference to the last element.(Inherited from MoveArray.
empty Gets a flag indicating if there are any elements. Note this does not mean whether or not there is allocated memory.(Inherited from MoveArray.
capacity Gets the number of elements of memory that have been allocated.(Inherited from MoveArray.
CopyFrom Copies an array.(Inherited from MoveArray.
protected SetArrayKind Sets the array type.(Inherited from MoveArray.
protected SetCapacity Sets the number of allocations.(Inherited from MoveArray.
protected GetCapacity Gets the number of allocations.(Inherited from MoveArray.

Class Hierarchy

nw::ut::MoveArray
  nw::ut::FixedSizeArray


CONFIDENTIAL