Jpp
15.0.2
the software that should make you happy
|
One dimensional array of template objects with fixed length. More...
#include <JArray.hh>
Public Types | |
typedef const T * | const_pointer |
typedef T * | pointer |
typedef const T * | const_iterator |
typedef T * | iterator |
typedef std::reverse_iterator < const_iterator > | const_reverse_iterator |
typedef std::reverse_iterator < iterator > | reverse_iterator |
typedef T & | reference |
typedef const T & | const_reference |
typedef unsigned int | size_type |
typedef JLANG::JClass< T > ::argument_type | argument_type |
Public Member Functions | |
JArray () | |
Default 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 (const T *p) | |
Copy constructor. More... | |
JArray (const JMultiKey< 1, T > &key) | |
Copy constructor. More... | |
JArray (const JMultiKey< 1, const T > &key) | |
Copy constructor. More... | |
JArray (argument_type x) | |
Initialise constructor. 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 & | 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... | |
JFirst_t & | mul (const JSecond_t &object) |
Multiply with object. More... | |
Static Public Member Functions | |
static size_type | size () |
Get size of data. More... | |
Static Public Attributes | |
static const unsigned int | N = 1 |
Protected Attributes | |
T | buffer [1] |
Friends | |
std::istream & | operator>> (std::istream &in, JArray &array) |
Read array from input stream. More... | |
std::ostream & | operator<< (std::ostream &out, const JArray &array) |
Write array to output stream. More... | |
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 const T* JTOOLS::JArray< 1, T >::const_pointer |
typedef T* JTOOLS::JArray< 1, T >::pointer |
typedef const T* JTOOLS::JArray< 1, T >::const_iterator |
typedef T* JTOOLS::JArray< 1, T >::iterator |
typedef std::reverse_iterator<const_iterator> JTOOLS::JArray< 1, T >::const_reverse_iterator |
typedef std::reverse_iterator<iterator> JTOOLS::JArray< 1, T >::reverse_iterator |
typedef T& JTOOLS::JArray< 1, T >::reference |
typedef const T& JTOOLS::JArray< 1, T >::const_reference |
typedef unsigned int JTOOLS::JArray< 1, T >::size_type |
typedef JLANG::JClass<T>::argument_type JTOOLS::JArray< 1, T >::argument_type |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get pointer to data.
|
inline |
Get pointer to data.
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineinherited |
Multiply with object.
object | object |
Definition at line 357 of file JMath.hh.
Read array from input stream.
in | input stream |
array | array |
Definition at line 924 of file JArray.hh.
|
friend |
Write array to output stream.
out | output stream |
array | array |
Definition at line 941 of file JArray.hh.
Read array from input.
in | reader |
buffer | array |
Definition at line 958 of file JArray.hh.
|
static |
|
protected |