| 
    Jpp
    
   | 
 
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< N, T > &key) | |
| Copy constructor.  More... | |
| JArray (const JMultiKey< N, const T > &key) | |
| Copy 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... | |
| JArray (const JMultiKey< N-1, T > &key, argument_type value) | |
| Append constructor.  More... | |
| JArray (const JMultiKey< N-1, const T > &key, argument_type value) | |
| Append constructor.  More... | |
| template<class... Args> | |
| JArray (const Args &...args) | |
| Initialise constructor.  More... | |
| template<class... Args> | |
| JArray & | set (const Args &...args) | 
| 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 JNullType &object) | 
| Multiply with object.  More... | |
Static Public Member Functions | |
| static size_type | size () | 
| Get size of data.  More... | |
Protected Member Functions | |
| template<class... Args> | |
| void | __set__ (const int i, const argument_type x, const Args &...args) | 
| Recursive method for setting array.  More... | |
| void | __set__ (const int i) const | 
| Termination method for setting array.  More... | |
| template<unsigned int M> | |
| void | assign (const JMultiKey< M, T > &key) | 
| Recursive method for setting array.  More... | |
| template<unsigned int M> | |
| void | assign (const JMultiKey< M, const T > &key) | 
| Recursive method for setting array.  More... | |
| void | assign (const JMultiKey< 1, T > &key) | 
| Termination method for setting array.  More... | |
| void | assign (const JMultiKey< 1, const T > &key) | 
| Termination method for setting array.  More... | |
| template<unsigned int M> | |
| void | assign (const JMultiKey< M, T > &key, argument_type value) | 
| Recursive method for setting array.  More... | |
| template<unsigned int M> | |
| void | assign (const JMultiKey< M, const T > &key, argument_type value) | 
| Recursive method for setting array.  More... | |
| void | assign (const JMultiKey< 1, T > &key, argument_type value) | 
| Termination method for setting array.  More... | |
| void | assign (const JMultiKey< 1, const T > &key, argument_type value) | 
| Termination method for setting 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 const T* JTOOLS::JArray< N, T >::const_pointer | 
| typedef T* JTOOLS::JArray< N, T >::pointer | 
| typedef const T* JTOOLS::JArray< N, T >::const_iterator | 
| 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 const T& JTOOLS::JArray< N, T >::const_reference | 
| typedef unsigned int JTOOLS::JArray< N, T >::size_type | 
| typedef JLANG::JClass<T>::argument_type JTOOLS::JArray< N, T >::argument_type | 
      
  | 
  inline | 
      
  | 
  inline | 
Copy constructor.
| array | array | 
Definition at line 66 of file JArray.hh.
      
  | 
  inline | 
Copy constructor.
| array | array | 
Definition at line 80 of file JArray.hh.
      
  | 
  inline | 
Copy constructor.
| p | pointer to data | 
Definition at line 93 of file JArray.hh.
      
  | 
  inline | 
Copy constructor.
| key | multi-dimensional key | 
Definition at line 104 of file JArray.hh.
      
  | 
  inline | 
Copy constructor.
| key | multi-dimensional key | 
Definition at line 115 of file JArray.hh.
      
  | 
  inline | 
Append constructor.
| array | array | 
| value | value | 
Definition at line 127 of file JArray.hh.
      
  | 
  inline | 
Append constructor.
| array | array | 
| value | value | 
Definition at line 141 of file JArray.hh.
      
  | 
  inline | 
Append constructor.
| key | multi-dimensional key | 
| value | value | 
Definition at line 155 of file JArray.hh.
      
  | 
  inline | 
Append constructor.
| key | multi-dimensional key | 
| value | value | 
Definition at line 167 of file JArray.hh.
      
  | 
  inline | 
      
  | 
  inline | 
Set array.
| args | values | 
Definition at line 191 of file JArray.hh.
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Get element at given index.
| index | index | 
      
  | 
  inline | 
Get element at given index.
| index | index | 
      
  | 
  inline | 
Get element at given index.
| index | index | 
Definition at line 247 of file JArray.hh.
      
  | 
  inline | 
Get element at given index.
| index | index | 
Definition at line 262 of file JArray.hh.
      
  | 
  inline | 
Get pointer to data.
      
  | 
  inline | 
Get pointer to data.
      
  | 
  inlinestatic | 
Get size of data.
Definition at line 298 of file JArray.hh.
Make a copy in which the first element is removed.
Definition at line 309 of file JArray.hh.
Make a copy in which the last element is removed.
Definition at line 320 of file JArray.hh.
      
  | 
  inline | 
Negate array.
Definition at line 331 of file JArray.hh.
      
  | 
  inline | 
Add array.
| array | array | 
Definition at line 347 of file JArray.hh.
      
  | 
  inline | 
Subtract array.
| array | array | 
Definition at line 363 of file JArray.hh.
      
  | 
  inline | 
Scale array.
| factor | multiplication factor | 
Definition at line 379 of file JArray.hh.
      
  | 
  inline | 
Scale array.
| factor | division factor | 
Definition at line 395 of file JArray.hh.
      
  | 
  inline | 
Check equality.
| array | array | 
Definition at line 411 of file JArray.hh.
      
  | 
  inlineprotected | 
Recursive method for setting array.
| i | index | 
| x | value at given index | 
| args | remaining values | 
Definition at line 469 of file JArray.hh.
      
  | 
  inlineprotected | 
      
  | 
  inlineprotected | 
Recursive method for setting array.
| key | multi-dimensional key | 
Definition at line 492 of file JArray.hh.
      
  | 
  inlineprotected | 
Recursive method for setting array.
| key | multi-dimensional key | 
Definition at line 506 of file JArray.hh.
      
  | 
  inlineprotected | 
Termination method for setting array.
| key | one-dimensional key | 
Definition at line 519 of file JArray.hh.
      
  | 
  inlineprotected | 
Termination method for setting array.
| key | one-dimensional key | 
Definition at line 530 of file JArray.hh.
      
  | 
  inlineprotected | 
Recursive method for setting array.
| key | multi-dimensional key | 
| value | value | 
Definition at line 543 of file JArray.hh.
      
  | 
  inlineprotected | 
Recursive method for setting array.
| key | multi-dimensional key | 
| value | value | 
Definition at line 558 of file JArray.hh.
      
  | 
  inlineprotected | 
Termination method for setting array.
| key | one-dimensional key | 
| value | value | 
Definition at line 572 of file JArray.hh.
      
  | 
  inlineprotected | 
Termination method for setting array.
| key | one-dimensional key | 
| value | value | 
Definition at line 585 of file JArray.hh.
      
  | 
  inlineinherited | 
Multiply with object.
| object | object | 
Definition at line 273 of file JMath.hh.
      
  | 
  friend | 
Read array from input.
| in | reader | 
| buffer | array | 
Definition at line 430 of file JArray.hh.
      
  | 
  friend | 
Write array to output.
| out | writer | 
| buffer | array | 
Definition at line 447 of file JArray.hh.
      
  | 
  protected | 
 1.8.5