|
Jpp
|
One dimensional array of template objects with fixed length. More...
#include <JArray.hh>
Public Types | |
| typedef T * | pointer |
| typedef T * | iterator |
| typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
| typedef std::reverse_iterator< iterator > | reverse_iterator |
| typedef T & | reference |
| typedef unsigned int | size_type |
| typedef JLANG::JClass< T >::argument_type | argument_type |
Public Member Functions | |
| JArray () | |
| Default constructor. More... | |
| JArray (const JArray< N-1, T > &array, argument_type value) | |
| Append constructor. More... | |
| JArray (const JArray< N-1, const T > &array, argument_type value) | |
| Append constructor. More... | |
| 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... | |
| JArray (argument_type x, argument_type y,...) | |
| Initialise constructor. More... | |
| JArray (const T *p) | |
| Constructor. More... | |
| JArray (const JMultiKey< N, T > &key) | |
| Constructor. More... | |
| JArray (const JMultiKey< N, const T > &key) | |
| Constructor. More... | |
| JArray & | operator= (const JArray &array) |
| Set array. More... | |
| const_iterator | begin () const |
| get iterator to begin of data More... | |
| const_iterator | end () const |
| get iterator to end of data More... | |
| iterator | begin () |
| get iterator to begin of data More... | |
| iterator | end () |
| 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 begin of data More... | |
| reverse_iterator | rbegin () |
| get reverse iterator to begin of data More... | |
| reverse_iterator | rend () |
| get reverse iterator to end of data More... | |
| const_reference | operator[] (int index) const |
| Get element at given index. More... | |
| reference | operator[] (int index) |
| Get element at given index. More... | |
| const_reference | at (int index) const |
| Get element at given index. More... | |
| reference | at (int index) |
| Get element at given index. More... | |
| const_pointer | data () const |
| Get pointer to data. More... | |
| pointer | data () |
| Get pointer to data. More... | |
| JArray< N-1, T > | pop_front () const |
| Make a copy in which the first element is removed. More... | |
| JArray< N-1, T > | pop_back () const |
| Make a copy in which the last element is removed. More... | |
| JArray & | negate () |
| Negate array. More... | |
| JArray & | add (const JArray &array) |
| Add array. More... | |
| JArray & | sub (const JArray &array) |
| Subtract array. More... | |
| JArray & | mul (const double factor) |
| Scale array. More... | |
| JArray & | div (const double factor) |
| Scale array. More... | |
| bool | equals (const JArray< N, T > &array) const |
| Check equality. More... | |
| JArray< N, T > & | mul (const JSecond_t &object) |
| Multiply with object. More... | |
Static Public Member Functions | |
| static size_type | size () |
| Get size of data. More... | |
Public Attributes | |
| const typedef T * | const_pointer |
| const typedef T * | const_iterator |
| const typedef T & | const_reference |
Protected Member Functions | |
| template<unsigned int M> | |
| void | assign (const JMultiKey< M, T > &key) |
| Assign multidimensional key to array. More... | |
| template<unsigned int M> | |
| void | assign (const JMultiKey< M, const T > &key) |
| Assign multidimensional key to array. More... | |
| void | assign (const JMultiKey< 1, T > &key) |
| Assign one-dimensional key to array. More... | |
| void | assign (const JMultiKey< 1, const T > &key) |
| Assign one-dimensional key to array. More... | |
Protected Attributes | |
| T | buffer [N] |
Friends | |
| JReader & | operator>> (JReader &in, JArray &buffer) |
| Read array from input. More... | |
| JWriter & | operator<< (JWriter &out, const JArray &buffer) |
| Write array to output. More... | |
One dimensional array of template objects with fixed length.
The internal data structure consists of a standard C-array.
| typedef T* JTOOLS::JArray< N, T >::pointer |
| typedef T* JTOOLS::JArray< N, T >::iterator |
| typedef std::reverse_iterator<const_iterator> JTOOLS::JArray< N, T >::const_reverse_iterator |
| typedef std::reverse_iterator<iterator> JTOOLS::JArray< N, T >::reverse_iterator |
| typedef T& JTOOLS::JArray< N, T >::reference |
| typedef unsigned int JTOOLS::JArray< N, T >::size_type |
| typedef JLANG::JClass<T>::argument_type JTOOLS::JArray< N, T >::argument_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Initialise constructor.
| x | first value |
| y | second value |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlineinherited |
Multiply with object.
| object | object |
Definition at line 273 of file JMath.hh.
|
friend |
| const typedef T* JTOOLS::JArray< N, T >::const_pointer |
| const typedef T* JTOOLS::JArray< N, T >::const_iterator |
| const typedef T& JTOOLS::JArray< N, T >::const_reference |
|
protected |
1.8.16