Jpp
17.1.0
the software that should make you happy
|
One dimensional read-only array of template objects with fixed length. More...
#include <JArray.hh>
Public Types | |
typedef const T * | const_pointer |
typedef const T * | const_iterator |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
typedef const T & | const_reference |
typedef unsigned int | size_type |
Public Member Functions | |
template<unsigned int M> | |
JArray (const JArray< M, T > &array) | |
Copy constructor. More... | |
template<unsigned int M> | |
JArray (const JArray< M, const T > &array) | |
Copy constructor. More... | |
const_iterator | begin () const |
get iterator to begin of data More... | |
const_iterator | end () const |
get iterator to end of data More... | |
const_reverse_iterator | rbegin () const |
get reverse iterator to begin of data More... | |
const_reverse_iterator | rend () const |
get reverse iterator to end of data More... | |
const_reference | operator[] (int index) const |
Get element at given index. More... | |
const_reference | at (int index) const |
Get element at given index. More... | |
const_pointer | data () const |
Get pointer to data. More... | |
JArray< N-1, const T > | pop_front () const |
Make a copy in which the first element is removed. More... | |
JArray< N-1, const T > | pop_back () const |
Make a copy in which the last element is removed. More... | |
Static Public Member Functions | |
static size_type | size () |
Get size of data. More... | |
Protected Member Functions | |
JArray (const T *__p) | |
Constructor. More... | |
Protected Attributes | |
const_pointer | p |
Friends | |
class | JArray< N+1, const T > |
JWriter & | operator<< (JWriter &out, const JArray &buffer) |
Write array to output. More... | |
One dimensional read-only array of template objects with fixed length.
The internal data structure consists of a simple C-pointer to the actual data. The user should ensure that the data are persistent.
typedef const T* JTOOLS::JArray< N, const T >::const_pointer |
typedef const T* JTOOLS::JArray< N, const T >::const_iterator |
typedef std::reverse_iterator<const_iterator> JTOOLS::JArray< N, const T >::const_reverse_iterator |
typedef const T& JTOOLS::JArray< N, const T >::const_reference |
typedef unsigned int JTOOLS::JArray< N, const T >::size_type |
|
inline |
|
inline |
|
inlineprotected |
Constructor.
__p | pointer to data |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get element at given index.
index | index |
Definition at line 1079 of file JArray.hh.
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
friend |
Write array to output.
out | writer |
buffer | array |
Definition at line 1139 of file JArray.hh.
|
protected |