![]() |
ATLAS Offline Software
|
#include <Array.h>
Public Types | |
| enum | { NDIM = N } |
| The number of dimensions of the array. More... | |
| typedef ArrayIteratorChooser< N >::const_iterator | const_iterator |
| The iterator for this container. | |
| enum | { NDIM = 0 } |
| The number of dimensions of the array. More... | |
| enum | |
| The number of dimensions of the array. More... | |
| typedef ArrayIteratorChooser< N >::const_iterator | const_iterator |
| The iterator for this container. | |
| enum | |
| The number of dimensions of the array. More... | |
| typedef ArrayIteratorChooser< N >::const_iterator | const_iterator |
| The iterator for this container. | |
Public Member Functions | |
| WritableArray (Arrayrep &rep) | |
| Constructor. | |
| WritableArray< 0 > & | operator= (Arrayelt elt) |
| Assignment. | |
| WritableArray (Arrayrep &rep) | |
| Constructor. | |
| WritableArray< N-1 > | operator[] (unsigned int i) |
| Array indexing. | |
| Array< N-1 > | operator[] (unsigned int i) const |
| Array indexing. | |
| Arrayelt * | ptr () |
| Return a direct pointer to array elements. | |
| bool | valid () const |
| Test for validity. | |
| std::vector< unsigned int > | shape () const |
| Return the array shape. | |
| unsigned int | size (unsigned int dim=0) const |
| Return the size of the array along one dimension. | |
| const Arrayelt * | ptr () const |
| Return a direct pointer to array elements. | |
| const_iterator | begin () const |
| Return an iterator pointing at the beginning of the container. | |
| const_iterator | end () const |
| Return an iterator pointing past the end of the container. | |
| void | write_array (std::ostream &stream) const |
| Creates a text representation of the array content. | |
| bool | valid () const |
| Test for validity. | |
| std::vector< unsigned int > | shape () const |
| Return the array shape. | |
| unsigned int | size (unsigned int dim=0) const |
| Return the size of the array along one dimension. | |
| operator Arrayelt () const | |
| Convert to a number. | |
| int | asint () const |
| Convert to an integer. | |
| void | write_array (std::ostream &stream) const |
| Creates a text representation of the array content. | |
| const Arrayelt * | ptr () const |
| Return a direct pointer to array elements. | |
| const_iterator | begin () const |
| Return an iterator pointing at the beginning of the container. | |
| const_iterator | end () const |
| Return an iterator pointing past the end of the container. | |
| bool | valid () const |
| Test for validity. | |
| std::vector< unsigned int > | shape () const |
| Return the array shape. | |
| unsigned int | size (unsigned int dim=0) const |
| Return the size of the array along one dimension. | |
| const Arrayelt * | ptr () const |
| Return a direct pointer to array elements. | |
| const_iterator | begin () const |
| Return an iterator pointing at the beginning of the container. | |
| const_iterator | end () const |
| Return an iterator pointing past the end of the container. | |
| void | write_array (std::ostream &stream) const |
| Creates a text representation of the array content. | |
Protected Attributes | |
| const Arrayrep * | m_rep |
| Pointer to the representation. | |
| unsigned int | m_offs |
Offset in the Arrayrep's data of the first element of this array. | |
| const Arrayelt * | m_elt |
| Pointer to this array's single element. | |
| const Arrayrep * | m_rep |
| Pointer to the representation. | |
| unsigned int | m_offs |
Offset in the Arrayrep's data of the first element of this array. | |
| const Arrayrep * | m_rep |
| Pointer to the representation. | |
| unsigned int | m_offs |
Offset in the Arrayrep's data of the first element of this array. | |
Private Member Functions | |
| WritableArray (Arrayrep &rep, unsigned int offs) | |
| Private constructor for array indexing. | |
| WritableArray (Arrayrep &rep, unsigned int offs) | |
| Private constructor for array indexing. | |
Private Attributes | |
| Arrayelt * | m_elt_nc |
| Pointer to this array's single element, non-const copy. | |
| Arrayrep * | m_rep_nc |
| The underlying array representation, non-const copy. | |
Friends | |
| class | WritableArray< 1 > |
| class | WritableArray< N+1 > |
Definition at line 716 of file Control/CxxUtils/CxxUtils/Array.h.
|
inherited |
The iterator for this container.
Definition at line 141 of file Control/CxxUtils/CxxUtils/Array.h.
|
inherited |
The iterator for this container.
Definition at line 141 of file Control/CxxUtils/CxxUtils/Array.h.
| typedef ArrayIteratorChooser<N>::const_iterator CxxUtils::Array< N >::const_iterator |
The iterator for this container.
Definition at line 141 of file Control/CxxUtils/CxxUtils/Array.h.
|
inherited |
The number of dimensions of the array.
| Enumerator | |
|---|---|
| NDIM | |
Definition at line 138 of file Control/CxxUtils/CxxUtils/Array.h.
|
inherited |
The number of dimensions of the array.
Definition at line 138 of file Control/CxxUtils/CxxUtils/Array.h.
| anonymous enum |
The number of dimensions of the array.
Definition at line 138 of file Control/CxxUtils/CxxUtils/Array.h.
|
inherited |
The number of dimensions of the array.
| Enumerator | |
|---|---|
| NDIM | |
Definition at line 273 of file Control/CxxUtils/CxxUtils/Array.h.
| CxxUtils::WritableArray< 0 >::WritableArray | ( | Arrayrep & | rep | ) |
|
private |
| CxxUtils::WritableArray< N >::WritableArray | ( | Arrayrep & | rep | ) |
|
private |
|
inherited |
Convert to an integer.
Array<0> contents as an integer.
|
inherited |
Return an iterator pointing at the beginning of the container.
|
inherited |
Return an iterator pointing at the beginning of the container.
| const_iterator CxxUtils::Array< N >::begin | ( | ) | const |
Return an iterator pointing at the beginning of the container.
|
inherited |
Return an iterator pointing past the end of the container.
|
inherited |
Return an iterator pointing past the end of the container.
| const_iterator CxxUtils::Array< N >::end | ( | ) | const |
Return an iterator pointing past the end of the container.
|
inherited |
Convert to a number.
Array<0> contents as a number. | WritableArray< 0 > & CxxUtils::WritableArray< 0 >::operator= | ( | Arrayelt | elt | ) |
Assignment.
| elt | The RHS of the assignment. |
Assign into the array.
| WritableArray< N-1 > CxxUtils::WritableArray< N >::operator[] | ( | unsigned int | i | ) |
Array indexing.
| i | The desired index. Must be less than the array size along this dimension. |
N-1 dimensional subarray in the array.Note that this operation is not available if N is 0.
| Array< N-1 > CxxUtils::WritableArray< N >::operator[] | ( | unsigned int | i | ) | const |
Array indexing.
| i | The desired index. Must be less than the array size along this dimension. |
N-1 dimensional subarray in the array.Note that this operation is not available if N is 0.
|
inherited |
Return a direct pointer to array elements.
Subsequent elements follow in standard C indexing order.
|
inherited |
Return a direct pointer to array elements.
Subsequent elements follow in standard C indexing order.
| Arrayelt * CxxUtils::WritableArray< N >::ptr | ( | ) |
Return a direct pointer to array elements.
Subsequent elements follow in standard C indexing order.
| const Arrayelt * CxxUtils::Array< N >::ptr | ( | ) | const |
Return a direct pointer to array elements.
Subsequent elements follow in standard C indexing order.
|
inherited |
Return the array shape.
The array shape is vector with one element for each array dimension, giving the size of the array along that dimension.
|
inherited |
Return the array shape.
The array shape is vector with one element for each array dimension, giving the size of the array along that dimension. For Array<0>, this will always be an empty array.
| std::vector< unsigned int > CxxUtils::Array< N >::shape | ( | ) | const |
Return the array shape.
The array shape is vector with one element for each array dimension, giving the size of the array along that dimension.
|
inherited |
Return the size of the array along one dimension.
| dim | The dimension of the size to retrieve. Must be less than the number of dimensions. |
dim.
|
inherited |
Return the size of the array along one dimension.
| dim | The dimension of the size to retrieve. Must be less than the number of dimensions. |
dim.For Array<0>, dim must be 0, and the function will always return 0.
| unsigned int CxxUtils::Array< N >::size | ( | unsigned int | dim = 0 | ) | const |
Return the size of the array along one dimension.
| dim | The dimension of the size to retrieve. Must be less than the number of dimensions. |
dim.
|
inherited |
|
inherited |
| bool CxxUtils::Array< N >::valid | ( | ) | const |
|
inherited |
Creates a text representation of the array content.
| std::ostream | where the text should be written |
Writes the content of the array to a ostream. The sub-arrays are enclosed by square-brackets and separated by commas.
|
inherited |
Creates a text representation of the array content.
| std::ostream | where the text should be written |
Writes the content of the array to a ostream. The sub-arrays are enclosed by square brackets and separated by commas.
| void CxxUtils::Array< N >::write_array | ( | std::ostream & | stream | ) | const |
Creates a text representation of the array content.
| std::ostream | where the text should be written |
Writes the content of the array to a ostream. The sub-arrays are enclosed by square-brackets and separated by commas.
|
friend |
Definition at line 750 of file Control/CxxUtils/CxxUtils/Array.h.
|
friend |
Definition at line 698 of file Control/CxxUtils/CxxUtils/Array.h.
|
protectedinherited |
Pointer to this array's single element.
Null if this instance was created using the default constructor.
Definition at line 365 of file Control/CxxUtils/CxxUtils/Array.h.
|
private |
Pointer to this array's single element, non-const copy.
Null if this instance was created using the default constructor.
Definition at line 757 of file Control/CxxUtils/CxxUtils/Array.h.
|
protectedinherited |
Offset in the Arrayrep's data of the first element of this array.
Definition at line 255 of file Control/CxxUtils/CxxUtils/Array.h.
|
protectedinherited |
Offset in the Arrayrep's data of the first element of this array.
Definition at line 255 of file Control/CxxUtils/CxxUtils/Array.h.
|
protected |
Offset in the Arrayrep's data of the first element of this array.
Definition at line 255 of file Control/CxxUtils/CxxUtils/Array.h.
|
protectedinherited |
Pointer to the representation.
Null if this instance was created using the default constructor.
Definition at line 252 of file Control/CxxUtils/CxxUtils/Array.h.
|
protectedinherited |
Pointer to the representation.
Null if this instance was created using the default constructor.
Definition at line 252 of file Control/CxxUtils/CxxUtils/Array.h.
|
protected |
Pointer to the representation.
Null if this instance was created using the default constructor.
Definition at line 252 of file Control/CxxUtils/CxxUtils/Array.h.
|
private |
The underlying array representation, non-const copy.
Definition at line 704 of file Control/CxxUtils/CxxUtils/Array.h.