Array ensures safe usage. More...
Array ensures safe usage.
The bounds of the given index is systematically checked in order to avoid memory corruption in any use case.
| ElementType | Array items type. Items must be instanciable whitout parameters. (scalar type or class with constructor without parameters or with default values.) |
| Size | Array size |
If the element type has no constructor (simple scalar value) items are not initialized. Use SmartType like SmartBool in this case.
Inheritance diagram for SafeArray< ElementType, Size >:Public Member Methods | |
| ElementType & | operator[] (Int32 index) |
| Array indexer operator. More... | |
| const ElementType & | operator[] (Int32 index) const |
| Array indexer operator. More... | |
| Int32 | GetSize () const |
| Gets the array size. More... | |
Public Member Methods inherited from BaseSafeArray< ElementType > | |
| bool | IndexValid (Int32 index) const |
| Query if index is valid. More... | |
| void | Exchange (Int32 index1, Int32 index2) |
| Exchanges two items More... | |
|
inlinevirtual |
|
virtual |
Array indexer operator.
| index | Zero-based index of the item. |
Implements BaseSafeArray< ElementType >.
|
virtual |
Array indexer operator.
| index | Zero-based index of the item. |
Implements BaseSafeArray< ElementType >.