#include <tables.h>
Public Types | |
enum | EGrowthRate { GROWTH_RATE = 4 } |
The chunk size by which the array is grown. More... | |
Public Methods | |
VectorOfInt (int32_t initialSize = 0) | |
Creates a vector that contains elements of integers. More... | |
VectorOfInt (const VectorOfInt& that) | |
Copy constructor. | |
~VectorOfInt () | |
Destructor. | |
const VectorOfInt& | operator= (const VectorOfInt& that) |
Assignment operator. | |
UBool | operator== (const VectorOfInt& that) |
Equality operators. | |
UBool | operator!= (const VectorOfInt& that) |
int32_t | operator[] (int32_t index) const |
Gets a read-only reference to the element at the specified index. More... | |
int32_t | at (int32_t index) const |
int32_t& | operator[] (int32_t index) |
Gets a non-const reference to the element at the specified index. More... | |
int32_t& | at (int32_t index) |
void | atPut ( int32_t index, const int32_t& value) |
Sets the element at the specified index to a different value. More... | |
void | atInsert ( int32_t index, const int32_t& value) |
Inserts a value at the specified index, sliding the rest of the elements in the array over to make room. More... | |
int32_t | size (void) const |
Returns the number of elements in the vector. More... | |
void | setSize (int32_t newSize) |
Sets the size of this vector. More... | |
UBool | isBogus (void) const |
Checks if this vector object is valid. More... | |
void | streamOut (FileStream* os) const |
The streamIn and streamOut methods read and write objects of this class as binary, platform-dependent data in the iostream. More... | |
void | streamIn (FileStream* is) |
void | streamOut (UMemoryStream* os) const |
void | streamIn (UMemoryStream* is) |
Ideally we would use templates for this, but they're not supported on all of the platforms we need to support.
Definition at line 89 of file tables.h.
|
The chunk size by which the array is grown. This probably shouldn't be in the API |
|
Creates a vector that contains elements of integers.
|
|
Copy constructor.
|
|
Destructor.
|
|
|
|
|
|
Inserts a value at the specified index, sliding the rest of the elements in the array over to make room.
|
|
Sets the element at the specified index to a different value.
|
|
Checks if this vector object is valid.
|
|
|
|
Assignment operator.
|
|
Equality operators.
|
|
Gets a non-const reference to the element at the specified index. This does range-checking; access to elements beyond the end of the array will cause the array to grow. |
|
Gets a read-only reference to the element at the specified index. This does not do range-checking; an invalid index may cause a crash.
|
|
Sets the size of this vector.
If the new size is greater than the current size, new
|
|
Returns the number of elements in the vector.
|
|
|
|
|
|
|
|
The streamIn and streamOut methods read and write objects of this class as binary, platform-dependent data in the iostream. The stream must be in ios::binary mode for this to work. These methods are not intended for general public use; they are used by the framework to improve performance by storing certain objects in binary files. |