torc-master
|
Encapsulation of a 2D static array. More...
#include <Array.hpp>
Public Types | |
typedef const Array< T > * | const_iterator |
Constant T iterator type. More... | |
typedef Array< T > * | iterator |
Non-constant T iterator type. More... | |
Public Member Functions | |
Array2D (void) | |
Null constructor. More... | |
Array2D (uint32_t inSize) | |
Public constructor. More... | |
Array< T > * | begin (void) |
Returns the non-constant begin iterator. More... | |
const Array< T > * | begin (void) const |
Returns the constant begin iterator. More... | |
Array< T > * | end (void) |
Returns the non-constant end iterator. More... | |
const Array< T > * | end (void) const |
Returns the constant end iterator. More... | |
uint32_t | getSize (void) const |
Returns the array size. More... | |
void | setSize (uint32_t inSize) |
Discards all contents and resizes the array. More... | |
Array< T > & | operator[] (uint32_t inIndex) |
Non-constant subscript operator. More... | |
const Array< T > & | operator[] (uint32_t inIndex) const |
Constant subscript operator. More... | |
Protected Types | |
typedef Array< Array< T > > | super |
Typedef for the base class. More... | |
typedef boost::uint32_t | uint32_t |
Imported type name. More... | |
typedef boost::remove_const < Array< T > >::type | T_non_const |
A type identical to template parameter T, but with any 'const' trait removed. More... | |
Protected Attributes | |
Array< T > * | mArray |
The internal array. More... | |
uint32_t | mSize |
The logical and actual size of the array. More... | |
Encapsulation of a 2D static array.
2D arrays are used to represent parts of the device wiring data. In general, the nested arrays will not be identically sized, so we provide no deep constructor here. See Array for more details on the superclass.
|
inherited |
|
inherited |
|
protected |
|
protectedinherited |
|
protectedinherited |
|
inline |
Null constructor.
Definition at line 133 of file Array.hpp.
|
inline |
Public constructor.
inSize | The size of the outer array. The inner arrays will be constructed with their unsized default constructor. |
Definition at line 137 of file Array.hpp.
|
inlineinherited |
Returns the non-constant begin iterator.
Definition at line 95 of file Array.hpp.
|
inlineinherited |
Returns the constant begin iterator.
Definition at line 99 of file Array.hpp.
|
inlineinherited |
Returns the non-constant end iterator.
Definition at line 97 of file Array.hpp.
|
inlineinherited |
Returns the constant end iterator.
Definition at line 101 of file Array.hpp.
|
inlineinherited |
Returns the array size.
Definition at line 104 of file Array.hpp.
|
inlineinherited |
Non-constant subscript operator.
Definition at line 110 of file Array.hpp.
|
inlineinherited |
Constant subscript operator.
Definition at line 115 of file Array.hpp.
|
inlineinherited |
Discards all contents and resizes the array.
Definition at line 107 of file Array.hpp.
|
protectedinherited |
|
protectedinherited |