|
Jpp
|
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 |
Copy constructor.
| array | array |
Definition at line 931 of file JArray.hh.
|
inline |
Copy constructor.
| array | array |
Definition at line 944 of file JArray.hh.
|
inlineprotected |
Constructor.
| __p | pointer to data |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get element at given index.
| index | index |
Definition at line 977 of file JArray.hh.
|
inline |
Get pointer to data.
|
inlinestatic |
Get size of data.
Definition at line 1002 of file JArray.hh.
|
inline |
Make a copy in which the first element is removed.
Definition at line 1013 of file JArray.hh.
|
inline |
Make a copy in which the last element is removed.
Definition at line 1024 of file JArray.hh.
|
friend |
Write array to output.
| out | writer |
| buffer | array |
Definition at line 1037 of file JArray.hh.
|
protected |
1.8.5