Om
1.0.0
A universal framework for multimedia simulation
|
A class that provides a safe wrapper for statically-sized arrays. More...
#include <omStaticArray.h>
Public Member Functions | |
StaticArray () | |
Create an empty static array with all elements default initialized. More... | |
StaticArray (const T &prototype) | |
Create a static array with all elements initialized to some prototype value. More... | |
StaticArray (const T *newArray) | |
Create a static array with elements from the specified pointer. More... | |
template<typename U > | |
StaticArray (const U *newArray) | |
Create a static array with elements from the specified pointer of a different type. More... | |
StaticArray (const StaticArray &other) | |
Create a copy of the specified static array. More... | |
template<typename U > | |
StaticArray (const StaticArray< U, size > &other) | |
Create a copy of the specified static array with different data type. More... | |
StaticArray & | operator= (const StaticArray &other) |
Assign the contents of another static array to this one. More... | |
template<typename U > | |
StaticArray & | operator= (const StaticArray< U, size > &other) |
Assign the contents of another static array with different element type to this one. More... | |
~StaticArray () | |
Destroy an static array object, destroying all elements that it contains. More... | |
T * | getPointer () |
Return a pointer to this static array's internal array pointer. More... | |
const T * | getPointer () const |
Return a const pointer to this static array's internal array pointer. More... | |
operator T * () | |
Convert this static array to a const pointer to its first element. More... | |
operator const T * () const | |
Convert this static array to a const pointer to its first element. More... | |
Bool | operator== (const StaticArray &other) const |
Return whether or not every element in this Static Array is equal to another's elements. More... | |
Bool | operator!= (const StaticArray &other) const |
Return whether or not every element in this Static Array is not equal to another's elements. More... | |
template<Size otherSize> | |
StaticArray< T, size+otherSize > | operator+ (const StaticArray< T, otherSize > &other) const |
Apend the contents of this static array to another and return the result. More... | |
Size | getSize () const |
Return the number of elements in this static array. More... | |
void | setAll (const T &prototype) |
Set all of the values in this array to the specified value. More... | |
A class that provides a safe wrapper for statically-sized arrays.
|
inline |
Create an empty static array with all elements default initialized.
|
inlineexplicit |
Create a static array with all elements initialized to some prototype value.
|
inlineexplicit |
Create a static array with elements from the specified pointer.
|
inlineexplicit |
Create a static array with elements from the specified pointer of a different type.
|
inline |
Create a copy of the specified static array.
|
inline |
Create a copy of the specified static array with different data type.
|
inline |
Destroy an static array object, destroying all elements that it contains.
|
inline |
Assign the contents of another static array to this one.
|
inline |
Assign the contents of another static array with different element type to this one.
|
inline |
Return a pointer to this static array's internal array pointer.
|
inline |
Return a const pointer to this static array's internal array pointer.
|
inline |
Convert this static array to a const pointer to its first element.
|
inline |
Convert this static array to a const pointer to its first element.
|
inline |
Return whether or not every element in this Static Array is equal to another's elements.
|
inline |
Return whether or not every element in this Static Array is not equal to another's elements.
|
inline |
Apend the contents of this static array to another and return the result.
|
inline |
Return the number of elements in this static array.
|
inline |
Set all of the values in this array to the specified value.