Jpp test-rotations-new
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. | |
template<unsigned int M> | |
JArray (const JArray< M, const T > &array) | |
Copy constructor. | |
operator JMultiKey< N, const T > () const | |
Type conversion operator. | |
const_iterator | begin () const |
get iterator to begin of data | |
const_iterator | end () const |
get iterator to end of data | |
const_reverse_iterator | rbegin () const |
get reverse iterator to begin of data | |
const_reverse_iterator | rend () const |
get reverse iterator to end of data | |
const_reference | operator[] (int index) const |
Get element at given index. | |
const_reference | at (int index) const |
Get element at given index. | |
const_pointer | data () const |
Get pointer to data. | |
JArray< N-1, const T > | pop_front () const |
Make a copy in which the first element is removed. | |
JArray< N-1, const T > | pop_back () const |
Make a copy in which the last element is removed. | |
Static Public Member Functions | |
static size_type | size () |
Get size of data. | |
Protected Member Functions | |
JArray (const T *__p) | |
Constructor. | |
Protected Attributes | |
const_pointer | p |
Friends | |
class | JArray< N+1, const T > |
JWriter & | operator<< (JWriter &out, const JArray &buffer) |
Write array to output. | |
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.
const T* JTOOLS::JArray< N, const T >::const_pointer |
const T* JTOOLS::JArray< N, const T >::const_iterator |
std::reverse_iterator<const_iterator> JTOOLS::JArray< N, const T >::const_reverse_iterator |
const T& JTOOLS::JArray< N, const T >::const_reference |
unsigned int JTOOLS::JArray< N, const T >::size_type |
|
inline |
Copy constructor.
array | array |
|
inline |
Copy constructor.
array | array |
|
inlineprotected |
|
inline |
Type conversion operator.
Definition at line 1080 of file JArray.hh.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get element at given index.
index | index |
Definition at line 1112 of file JArray.hh.
|
inline |
|
inlinestatic |
|
inline |
Make a copy in which the first element is removed.
|
inline |
|
friend |
|
friend |
|
protected |