#include <Array.h>
|
static bool | next_ (iterator &i, size_t item_size) |
|
static bool | next_ (const_iterator &i, size_t item_size) |
|
| BaseArray () |
|
Byte * | add_ (size_t nb, size_t item_size, Byte *data, FunctionConstructor c, FunctionDestructor d) |
|
void | clear_ (size_t item_size, FunctionDestructor d, bool all) |
|
void | resize_ (int new_size, size_t item_size, FunctionConstructor c, FunctionDestructor d) |
|
Byte * | at_ (size_t i, size_t item_size) |
|
const Byte * | at_ (size_t i, size_t item_size) const |
|
size_t | reserve_ (size_t nb, size_t item_size, FunctionConstructor c, FunctionDestructor d) |
|
Byte * | data () |
|
const Byte * | data () const |
|
void | begin_ (iterator &) |
|
void | begin_ (const_iterator &) const |
|
Byte * | data_ |
|
size_t | size_ |
|
size_t | reserved_ |
|
template<class T, class A>
class commore::Array< T, A >
- Examples:
- /examples/coding/Array.cpp.
template<class T, class A>
template<class T, class A>
template<class T, class A>
Construct an array with reserved size
- Parameters
-
nb | nb item reserved in new array |
template<class T, class A>
template<class T, class A>
template<class T, class A>
template<class T, class A>
Add a new item to array
- Parameters
-
- Returns
- reference on added item
template<class T, class A>
template<class T, class A>
Create a begin const iterator
template<class T, class A>
Get a cbegin const iterator cbegin is identical to the const version of begin() but it ensures, in any context, to be recognized by the compiler as returning a const_iterator
template<class T, class A>
Clear array content
- Parameters
-
template<class T, class A>
Compare two arrays
- Parameters
-
- Returns
- 0 if equal, negative value if smaller, positive vaue if greater
template<class T, class A>
Compare the array to an other
- Parameters
-
a | array to compare to |
cmor | funtion emplementing item comparison |
- Returns
- 0 if equal, negative if less, positive it greater
template<class T, class A>
Fill array with an xml string content
- Parameters
-
- Returns
- output string reference
template<class T, class A>
Get const pointer to item at specified position
- Parameters
-
pos | position of the item in array |
- Returns
- pointer to found item
template<class T, class A>
Get pointer to item at specified position
- Parameters
-
pos | position of the item in array |
- Returns
- pointer to found item
template<class T, class A>
Compare two arrays
- Parameters
-
- Returns
- true if this < a
template<class T, class A>
template<class T, class A>
Compare two arrays
- Parameters
-
- Returns
- true if this == a
template<class T, class A>
Get reference to item at specified position
- Parameters
-
pos | position of the item in array |
- Returns
- reference to found item
template<class T, class A>
Get const reference to item at specified position
- Parameters
-
pos | position of the item in array |
- Returns
- reference to found item
template<class T, class A>
Read array from file (raw format)
- Parameters
-
- Returns
- >= 0 if succeed
long commore::ArrayDouble::read_xml |
( |
IBStream & |
i | ) |
|
Read array content from xml stream.
- Parameters
-
- Returns
- nb read byte
template<class T, class A>
Read array from file (xml format)
- Parameters
-
- Returns
- >= 0 if succeed
template<class T, class A>
Reserve a capacity for array
- Parameters
-
nb | new array reserved capacity |
- Returns
- the effective reserved capacity size of array is not affected.
template<class T, class A>
template<class T, class A>
Convert array to xml string
- Parameters
-
- Returns
- >= 0 if succeed
template<class T, class A>
Convert array content to string
- Parameters
-
template<class T, class A>
Write array to file (raw format)
- Parameters
-
- Returns
- >= 0 if succeed
template<class T, class A>
Write array content to an xml stream
- Parameters
-
- Returns
- nb write byte
template<class T, class A>
Write array to file (xml format)
- Parameters
-
- Returns
- >= 0 if succeed
The documentation for this class was generated from the following files: