Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JTOOLS::JArray< N, T > Class Template Reference

One dimensional array of template objects with fixed length. More...

#include <JArray.hh>

Inheritance diagram for JTOOLS::JArray< N, T >:
JMATH::JMath< JFirst_t, JSecond_t > JLANG::JEquals< JFirst_t, JSecond_t >

Public Types

typedef const T * const_pointer
 
typedef T * pointer
 
typedef const T * const_iterator
 
typedef T * iterator
 
typedef std::reverse_iterator< const_iteratorconst_reverse_iterator
 
typedef std::reverse_iterator< iteratorreverse_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.
 
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.
 
 JArray (const T *p)
 Copy constructor.
 
 JArray (const JMultiKey< N, T > &key)
 Copy constructor.
 
 JArray (const JMultiKey< N, const T > &key)
 Copy constructor.
 
 JArray (const JArray< N-1, T > &array, argument_type value)
 Append constructor.
 
 JArray (const JArray< N-1, const T > &array, argument_type value)
 Append constructor.
 
 JArray (const JMultiKey< N-1, T > &key, argument_type value)
 Append constructor.
 
 JArray (const JMultiKey< N-1, const T > &key, argument_type value)
 Append constructor.
 
template<class ... Args>
 JArray (argument_type value, const Args &...args)
 Initialise constructor.
 
template<class ... Args>
JArrayset (const Args &...args)
 Set array.
 
 operator JMultiKey< N, 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
 
iterator begin ()
 get iterator to begin of data
 
iterator end ()
 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 begin of data
 
reverse_iterator rbegin ()
 get reverse iterator to begin of data
 
reverse_iterator rend ()
 get reverse iterator to end of data
 
const_reference operator[] (int index) const
 Get element at given index.
 
reference operator[] (int index)
 Get element at given index.
 
const_reference at (int index) const
 Get element at given index.
 
reference at (int index)
 Get element at given index.
 
const_pointer data () const
 Get pointer to data.
 
pointer data ()
 Get pointer to data.
 
JArray< N-1, T > pop_front () const
 Make a copy in which the first element is removed.
 
JArray< N-1, T > pop_back () const
 Make a copy in which the last element is removed.
 
void fill (argument_type value)
 Fill array.
 
JArraynegate ()
 Negate array.
 
JArrayadd (const JArray &array)
 Add array.
 
JArraysub (const JArray &array)
 Subtract array.
 
JArraymul (const double factor)
 Scale array.
 
JArraydiv (const double factor)
 Scale array.
 
bool equals (const JArray< N, T > &array) const
 Check equality.
 
JFirst_t & mul (const JSecond_t &object)
 Multiply with object.
 

Static Public Member Functions

static size_type size ()
 Get size of data.
 

Protected Member Functions

template<class ... Args>
void __set__ (const int i, const argument_type x, const Args &...args)
 Recursive method for setting array.
 
void __set__ (const int i) const
 Termination method for setting array.
 
template<unsigned int M>
void assign (const JMultiKey< M, T > &key)
 Recursive method for setting array.
 
template<unsigned int M>
void assign (const JMultiKey< M, const T > &key)
 Recursive method for setting array.
 
void assign (const JMultiKey< 1, T > &key)
 Termination method for setting array.
 
void assign (const JMultiKey< 1, const T > &key)
 Termination method for setting array.
 
template<unsigned int M>
void assign (const JMultiKey< M, T > &key, argument_type value)
 Recursive method for setting array.
 
template<unsigned int M>
void assign (const JMultiKey< M, const T > &key, argument_type value)
 Recursive method for setting array.
 
void assign (const JMultiKey< 1, T > &key, argument_type value)
 Termination method for setting array.
 
void assign (const JMultiKey< 1, const T > &key, argument_type value)
 Termination method for setting array.
 

Protected Attributes

buffer [N]
 

Friends

std::istream & operator>> (std::istream &in, JArray &array)
 Read array from input stream.
 
std::ostream & operator<< (std::ostream &out, const JArray &array)
 Write array to output stream.
 
JReaderoperator>> (JReader &in, JArray &buffer)
 Read array from input.
 
JWriteroperator<< (JWriter &out, const JArray &buffer)
 Write array to output.
 

Detailed Description

template<unsigned int N, class T>
class JTOOLS::JArray< N, T >

One dimensional array of template objects with fixed length.


The internal data structure consists of a standard C-array.

Definition at line 40 of file JArray.hh.

Member Typedef Documentation

◆ const_pointer

template<unsigned int N, class T >
const T* JTOOLS::JArray< N, T >::const_pointer

Definition at line 46 of file JArray.hh.

◆ pointer

template<unsigned int N, class T >
T* JTOOLS::JArray< N, T >::pointer

Definition at line 47 of file JArray.hh.

◆ const_iterator

template<unsigned int N, class T >
const T* JTOOLS::JArray< N, T >::const_iterator

Definition at line 48 of file JArray.hh.

◆ iterator

template<unsigned int N, class T >
T* JTOOLS::JArray< N, T >::iterator

Definition at line 49 of file JArray.hh.

◆ const_reverse_iterator

template<unsigned int N, class T >
std::reverse_iterator<const_iterator> JTOOLS::JArray< N, T >::const_reverse_iterator

Definition at line 50 of file JArray.hh.

◆ reverse_iterator

template<unsigned int N, class T >
std::reverse_iterator<iterator> JTOOLS::JArray< N, T >::reverse_iterator

Definition at line 51 of file JArray.hh.

◆ reference

template<unsigned int N, class T >
T& JTOOLS::JArray< N, T >::reference

Definition at line 52 of file JArray.hh.

◆ const_reference

template<unsigned int N, class T >
const T& JTOOLS::JArray< N, T >::const_reference

Definition at line 53 of file JArray.hh.

◆ size_type

template<unsigned int N, class T >
unsigned int JTOOLS::JArray< N, T >::size_type

Definition at line 54 of file JArray.hh.

◆ argument_type

template<unsigned int N, class T >
JLANG::JClass<T>::argument_type JTOOLS::JArray< N, T >::argument_type

Definition at line 55 of file JArray.hh.

Constructor & Destructor Documentation

◆ JArray() [1/11]

template<unsigned int N, class T >
JTOOLS::JArray< N, T >::JArray ( )
inline

Default constructor.

Definition at line 61 of file JArray.hh.

62 {
63 fill(T());
64 }
void fill(argument_type value)
Fill array.
Definition JArray.hh:350

◆ JArray() [2/11]

template<unsigned int N, class T >
template<unsigned int M>
JTOOLS::JArray< N, T >::JArray ( const JArray< M, T > & array)
inline

Copy constructor.

Parameters
arrayarray

Definition at line 73 of file JArray.hh.

74 {
75 STATIC_CHECK(M >= N);
76
77 std::copy_n(array.data(), N, this->data());
78 }
#define STATIC_CHECK(expr)
Definition JAssert.hh:31

◆ JArray() [3/11]

template<unsigned int N, class T >
template<unsigned int M>
JTOOLS::JArray< N, T >::JArray ( const JArray< M, const T > & array)
inline

Copy constructor.

Parameters
arrayarray

Definition at line 87 of file JArray.hh.

88 {
89 STATIC_CHECK(M >= N);
90
91 std::copy_n(array.data(), N, this->data());
92 }

◆ JArray() [4/11]

template<unsigned int N, class T >
JTOOLS::JArray< N, T >::JArray ( const T * p)
inline

Copy constructor.

Parameters
ppointer to data

Definition at line 100 of file JArray.hh.

101 {
102 std::copy_n(p, N, this->data());
103 }
const_pointer data() const
Get pointer to data.
Definition JArray.hh:295

◆ JArray() [5/11]

template<unsigned int N, class T >
JTOOLS::JArray< N, T >::JArray ( const JMultiKey< N, T > & key)
inline

Copy constructor.

Parameters
keymulti-dimensional key

Definition at line 111 of file JArray.hh.

112 {
113 assign(key);
114 }
void assign(const JMultiKey< M, T > &key)
Recursive method for setting array.
Definition JArray.hh:558

◆ JArray() [6/11]

template<unsigned int N, class T >
JTOOLS::JArray< N, T >::JArray ( const JMultiKey< N, const T > & key)
inline

Copy constructor.

Parameters
keymulti-dimensional key

Definition at line 122 of file JArray.hh.

123 {
124 assign(key);
125 }

◆ JArray() [7/11]

template<unsigned int N, class T >
JTOOLS::JArray< N, T >::JArray ( const JArray< N-1, T > & array,
argument_type value )
inline

Append constructor.

Parameters
arrayarray
valuevalue

Definition at line 134 of file JArray.hh.

135 {
136 std::copy_n(array.data(), N-1, this->data());
137
138 this->buffer[N-1] = value;
139 }

◆ JArray() [8/11]

template<unsigned int N, class T >
JTOOLS::JArray< N, T >::JArray ( const JArray< N-1, const T > & array,
argument_type value )
inline

Append constructor.

Parameters
arrayarray
valuevalue

Definition at line 148 of file JArray.hh.

149 {
150 std::copy_n(array.data(), N-1, this->data());
151
152 this->buffer[N-1] = value;
153 }

◆ JArray() [9/11]

template<unsigned int N, class T >
JTOOLS::JArray< N, T >::JArray ( const JMultiKey< N-1, T > & key,
argument_type value )
inline

Append constructor.

Parameters
keymulti-dimensional key
valuevalue

Definition at line 162 of file JArray.hh.

163 {
164 assign(key, value);
165 }

◆ JArray() [10/11]

template<unsigned int N, class T >
JTOOLS::JArray< N, T >::JArray ( const JMultiKey< N-1, const T > & key,
argument_type value )
inline

Append constructor.

Parameters
keymulti-dimensional key
valuevalue

Definition at line 174 of file JArray.hh.

175 {
176 assign(key, value);
177 }

◆ JArray() [11/11]

template<unsigned int N, class T >
template<class ... Args>
JTOOLS::JArray< N, T >::JArray ( argument_type value,
const Args &... args )
inline

Initialise constructor.

Parameters
valuefirst value
argsremaining values

Definition at line 187 of file JArray.hh.

188 {
189 set(value, args...);
190 }
JArray & set(const Args &...args)
Set array.
Definition JArray.hh:199

Member Function Documentation

◆ set()

template<unsigned int N, class T >
template<class ... Args>
JArray & JTOOLS::JArray< N, T >::set ( const Args &... args)
inline

Set array.

Parameters
argsvalues

Definition at line 199 of file JArray.hh.

200 {
201 STATIC_CHECK(N == sizeof...(Args));
202
203 __set__(0, args...);
204
205 return *this;
206 }
void __set__(const int i, const argument_type x, const Args &...args)
Recursive method for setting array.
Definition JArray.hh:535

◆ operator JMultiKey< N, T >()

template<unsigned int N, class T >
JTOOLS::JArray< N, T >::operator JMultiKey< N, T > ( ) const
inline

Type conversion operator.

Returns
multi-key

Definition at line 214 of file JArray.hh.

215 {
216 return JMultiKey<N, T>(buffer[0], this->pop_front());
217 }
JArray< N-1, T > pop_front() const
Make a copy in which the first element is removed.
Definition JArray.hh:328

◆ begin() [1/2]

template<unsigned int N, class T >
const_iterator JTOOLS::JArray< N, T >::begin ( ) const
inline

get iterator to begin of data

Definition at line 220 of file JArray.hh.

◆ end() [1/2]

template<unsigned int N, class T >
const_iterator JTOOLS::JArray< N, T >::end ( ) const
inline

get iterator to end of data

Definition at line 221 of file JArray.hh.

◆ begin() [2/2]

template<unsigned int N, class T >
iterator JTOOLS::JArray< N, T >::begin ( )
inline

get iterator to begin of data

Definition at line 224 of file JArray.hh.

◆ end() [2/2]

template<unsigned int N, class T >
iterator JTOOLS::JArray< N, T >::end ( )
inline

get iterator to end of data

Definition at line 225 of file JArray.hh.

◆ rbegin() [1/2]

template<unsigned int N, class T >
const_reverse_iterator JTOOLS::JArray< N, T >::rbegin ( ) const
inline

get reverse iterator to begin of data

Definition at line 228 of file JArray.hh.

◆ rend() [1/2]

template<unsigned int N, class T >
const_reverse_iterator JTOOLS::JArray< N, T >::rend ( ) const
inline

get reverse iterator to begin of data

Definition at line 229 of file JArray.hh.

◆ rbegin() [2/2]

template<unsigned int N, class T >
reverse_iterator JTOOLS::JArray< N, T >::rbegin ( )
inline

get reverse iterator to begin of data

Definition at line 232 of file JArray.hh.

◆ rend() [2/2]

template<unsigned int N, class T >
reverse_iterator JTOOLS::JArray< N, T >::rend ( )
inline

get reverse iterator to end of data

Definition at line 233 of file JArray.hh.

◆ operator[]() [1/2]

template<unsigned int N, class T >
const_reference JTOOLS::JArray< N, T >::operator[] ( int index) const
inline

Get element at given index.

Parameters
indexindex
Returns
element

Definition at line 242 of file JArray.hh.

243 {
244 return buffer[index];
245 }

◆ operator[]() [2/2]

template<unsigned int N, class T >
reference JTOOLS::JArray< N, T >::operator[] ( int index)
inline

Get element at given index.

Parameters
indexindex
Returns
element

Definition at line 254 of file JArray.hh.

255 {
256 return buffer[index];
257 }

◆ at() [1/2]

template<unsigned int N, class T >
const_reference JTOOLS::JArray< N, T >::at ( int index) const
inline

Get element at given index.

Parameters
indexindex
Returns
element at index

Definition at line 266 of file JArray.hh.

267 {
268 if (index >= 0 && index < N)
269 return buffer[index];
270 else
271 THROW(JIndexOutOfRange, "invalid index " << 0 << " <= " << index << " < " << N);
272 }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.

◆ at() [2/2]

template<unsigned int N, class T >
reference JTOOLS::JArray< N, T >::at ( int index)
inline

Get element at given index.

Parameters
indexindex
Returns
element at index

Definition at line 281 of file JArray.hh.

282 {
283 if (index >= 0 && index < N)
284 return buffer[index];
285 else
286 THROW(JIndexOutOfRange, "invalid index " << 0 << " <= " << index << " < " << N);
287 }

◆ data() [1/2]

template<unsigned int N, class T >
const_pointer JTOOLS::JArray< N, T >::data ( ) const
inline

Get pointer to data.

Returns
pointer to data

Definition at line 295 of file JArray.hh.

296 {
297 return buffer;
298 }

◆ data() [2/2]

template<unsigned int N, class T >
pointer JTOOLS::JArray< N, T >::data ( )
inline

Get pointer to data.

Returns
pointer to data

Definition at line 306 of file JArray.hh.

307 {
308 return buffer;
309 }

◆ size()

template<unsigned int N, class T >
static size_type JTOOLS::JArray< N, T >::size ( )
inlinestatic

Get size of data.

Returns
size of data

Definition at line 317 of file JArray.hh.

318 {
319 return N;
320 }

◆ pop_front()

template<unsigned int N, class T >
JArray< N-1, T > JTOOLS::JArray< N, T >::pop_front ( ) const
inline

Make a copy in which the first element is removed.

Returns
array

Definition at line 328 of file JArray.hh.

329 {
330 return JArray<N-1, T>(&buffer[1]);
331 }
JArray()
Default constructor.
Definition JArray.hh:61

◆ pop_back()

template<unsigned int N, class T >
JArray< N-1, T > JTOOLS::JArray< N, T >::pop_back ( ) const
inline

Make a copy in which the last element is removed.

Returns
array

Definition at line 339 of file JArray.hh.

340 {
341 return JArray<N-1, T>(buffer);
342 }

◆ fill()

template<unsigned int N, class T >
void JTOOLS::JArray< N, T >::fill ( argument_type value)
inline

Fill array.

Parameters
valuevalue

Definition at line 350 of file JArray.hh.

351 {
352 for (int i = 0; i != N; ++i) {
353 buffer[i] = value;
354 }
355 }

◆ negate()

template<unsigned int N, class T >
JArray & JTOOLS::JArray< N, T >::negate ( )
inline

Negate array.

Returns
this array

Definition at line 363 of file JArray.hh.

364 {
365 for (int i = 0; i != N; ++i) {
366 buffer[i] = -buffer[i];
367 }
368
369 return *this;
370 }

◆ add()

template<unsigned int N, class T >
JArray & JTOOLS::JArray< N, T >::add ( const JArray< N, T > & array)
inline

Add array.

Parameters
arrayarray
Returns
this array

Definition at line 379 of file JArray.hh.

380 {
381 for (int i = 0; i != N; ++i) {
382 buffer[i] += array[i];
383 }
384
385 return *this;
386 }

◆ sub()

template<unsigned int N, class T >
JArray & JTOOLS::JArray< N, T >::sub ( const JArray< N, T > & array)
inline

Subtract array.

Parameters
arrayarray
Returns
this array

Definition at line 395 of file JArray.hh.

396 {
397 for (int i = 0; i != N; ++i) {
398 buffer[i] -= array[i];
399 }
400
401 return *this;
402 }

◆ mul() [1/2]

template<unsigned int N, class T >
JArray & JTOOLS::JArray< N, T >::mul ( const double factor)
inline

Scale array.

Parameters
factormultiplication factor
Returns
this array

Definition at line 411 of file JArray.hh.

412 {
413 for (int i = 0; i != N; ++i) {
414 buffer[i] *= factor;
415 }
416
417 return *this;
418 }

◆ div()

template<unsigned int N, class T >
JArray & JTOOLS::JArray< N, T >::div ( const double factor)
inline

Scale array.

Parameters
factordivision factor
Returns
this array

Definition at line 427 of file JArray.hh.

428 {
429 for (int i = 0; i != N; ++i) {
430 buffer[i] /= factor;
431 }
432
433 return *this;
434 }

◆ equals()

template<unsigned int N, class T >
bool JTOOLS::JArray< N, T >::equals ( const JArray< N, T > & array) const
inline

Check equality.

Parameters
arrayarray
Returns
true if arrays are equal; else false

Definition at line 443 of file JArray.hh.

444 {
445 for (int i = 0; i != N; ++i) {
446 if (buffer[i] != array[i]) {
447 return false;
448 }
449 }
450
451 return true;
452 }

◆ __set__() [1/2]

template<unsigned int N, class T >
template<class ... Args>
void JTOOLS::JArray< N, T >::__set__ ( const int i,
const argument_type x,
const Args &... args )
inlineprotected

Recursive method for setting array.

Parameters
iindex
xvalue at given index
argsremaining values

Definition at line 535 of file JArray.hh.

536 {
537 this->buffer[i] = x;
538
539 __set__(i + 1, args...);
540 }

◆ __set__() [2/2]

template<unsigned int N, class T >
void JTOOLS::JArray< N, T >::__set__ ( const int i) const
inlineprotected

Termination method for setting array.

Parameters
iindex

Definition at line 548 of file JArray.hh.

549 {}

◆ assign() [1/8]

template<unsigned int N, class T >
template<unsigned int M>
void JTOOLS::JArray< N, T >::assign ( const JMultiKey< M, T > & key)
inlineprotected

Recursive method for setting array.

Parameters
keymulti-dimensional key

Definition at line 558 of file JArray.hh.

559 {
560 buffer[N-M] = key.first;
561
562 assign(key.second);
563 }

◆ assign() [2/8]

template<unsigned int N, class T >
template<unsigned int M>
void JTOOLS::JArray< N, T >::assign ( const JMultiKey< M, const T > & key)
inlineprotected

Recursive method for setting array.

Parameters
keymulti-dimensional key

Definition at line 572 of file JArray.hh.

573 {
574 buffer[N-M] = key.first;
575
576 assign(key.second);
577 }

◆ assign() [3/8]

template<unsigned int N, class T >
void JTOOLS::JArray< N, T >::assign ( const JMultiKey< 1, T > & key)
inlineprotected

Termination method for setting array.

Parameters
keyone-dimensional key

Definition at line 585 of file JArray.hh.

586 {
587 buffer[N-1] = key.first;
588 }

◆ assign() [4/8]

template<unsigned int N, class T >
void JTOOLS::JArray< N, T >::assign ( const JMultiKey< 1, const T > & key)
inlineprotected

Termination method for setting array.

Parameters
keyone-dimensional key

Definition at line 596 of file JArray.hh.

597 {
598 buffer[N-1] = key.first;
599 }

◆ assign() [5/8]

template<unsigned int N, class T >
template<unsigned int M>
void JTOOLS::JArray< N, T >::assign ( const JMultiKey< M, T > & key,
argument_type value )
inlineprotected

Recursive method for setting array.

Parameters
keymulti-dimensional key
valuevalue

Definition at line 609 of file JArray.hh.

610 {
611 buffer[N-M-1] = key.first;
612
613 assign(key.second, value);
614 }

◆ assign() [6/8]

template<unsigned int N, class T >
template<unsigned int M>
void JTOOLS::JArray< N, T >::assign ( const JMultiKey< M, const T > & key,
argument_type value )
inlineprotected

Recursive method for setting array.

Parameters
keymulti-dimensional key
valuevalue

Definition at line 624 of file JArray.hh.

625 {
626 buffer[N-M-1] = key.first;
627
628 assign(key.second, value);
629 }

◆ assign() [7/8]

template<unsigned int N, class T >
void JTOOLS::JArray< N, T >::assign ( const JMultiKey< 1, T > & key,
argument_type value )
inlineprotected

Termination method for setting array.

Parameters
keyone-dimensional key
valuevalue

Definition at line 638 of file JArray.hh.

639 {
640 buffer[N-2] = key.first;
641 buffer[N-1] = value;
642 }

◆ assign() [8/8]

template<unsigned int N, class T >
void JTOOLS::JArray< N, T >::assign ( const JMultiKey< 1, const T > & key,
argument_type value )
inlineprotected

Termination method for setting array.

Parameters
keyone-dimensional key
valuevalue

Definition at line 651 of file JArray.hh.

652 {
653 buffer[N-2] = key.first;
654 buffer[N-1] = value;
655 }

◆ mul() [2/2]

template<class JFirst_t , class JSecond_t >
JFirst_t & JMATH::JMath< JFirst_t, JSecond_t >::mul ( const JSecond_t & object)
inlineinherited

Multiply with object.

Parameters
objectobject
Returns
result object

Definition at line 354 of file JMath.hh.

355 {
356 return static_cast<JFirst_t&>(*this) = JFirst_t().mul(static_cast<const JFirst_t&>(*this), object);
357 }

Friends And Related Symbol Documentation

◆ operator>> [1/2]

template<unsigned int N, class T >
std::istream & operator>> ( std::istream & in,
JArray< N, T > & array )
friend

Read array from input stream.

Parameters
ininput stream
arrayarray
Returns
input stream

Definition at line 462 of file JArray.hh.

463 {
464 for (iterator i = array.begin(); i != array.end(); ++i) {
465 in >> *i;
466 }
467
468 return in;
469 }

◆ operator<< [1/2]

template<unsigned int N, class T >
std::ostream & operator<< ( std::ostream & out,
const JArray< N, T > & array )
friend

Write array to output stream.

Parameters
outoutput stream
arrayarray
Returns
output stream

Definition at line 479 of file JArray.hh.

480 {
481 for (const_iterator i = array.begin(); i != array.end(); ++i) {
482 out << ' ' << SCIENTIFIC(12,5) << *i;
483 }
484
485 return out;
486 }
const T * const_iterator
Definition JArray.hh:48
Auxiliary data structure for floating point format specification.
Definition JManip.hh:488

◆ operator>> [2/2]

template<unsigned int N, class T >
JReader & operator>> ( JReader & in,
JArray< N, T > & buffer )
friend

Read array from input.

Parameters
inreader
bufferarray
Returns
reader

Definition at line 496 of file JArray.hh.

497 {
498 for (iterator i = buffer.begin(); i != buffer.end(); ++i) {
499 in >> *i;
500 }
501
502 return in;
503 }

◆ operator<< [2/2]

template<unsigned int N, class T >
JWriter & operator<< ( JWriter & out,
const JArray< N, T > & buffer )
friend

Write array to output.

Parameters
outwriter
bufferarray
Returns
writer

Definition at line 513 of file JArray.hh.

514 {
515 for (const_iterator i = buffer.begin(); i != buffer.end(); ++i) {
516 out << *i;
517 }
518
519 return out;
520 }

Member Data Documentation

◆ buffer

template<unsigned int N, class T >
T JTOOLS::JArray< N, T >::buffer[N]
protected

Definition at line 524 of file JArray.hh.


The documentation for this class was generated from the following file: