|
QDP++
|
1d array, with 1-based indices More...
#include <qdp_arrays.h>
Public Member Functions | |
| Array1dO () | |
| Array1dO (int n) | |
| ~Array1dO () | |
| Array1dO (const Array1dO &s) | |
| Copy constructor. | |
| Array1dO (const multi1d< T > &s) | |
| Copy constructor from a zero-based array. | |
| Array1dO (const std::vector< T > &s) | |
| Copy constructor from a zero-based array. | |
| void | resize (int n) |
| int | size () const |
| Array1dO & | operator= (const Array1dO &s) |
| T & | operator[] (int i) |
| Return ref to an element. | |
| const T & | operator[] (int i) const |
| Return const ref to an element. | |
| void | push_back (const T &s1) |
| Append to a vector - it will grow. | |
| const std::vector< T > & | ref () const |
| Return ref to underlying array. | |
| std::vector< T > & | ref () |
| Return ref to underlying array. | |
1d array, with 1-based indices
Definition at line 17 of file qdp_arrays.h.
|
inline |
Definition at line 20 of file qdp_arrays.h.
Referenced by Array1dO(), and operator=().
|
inlineexplicit |
Definition at line 21 of file qdp_arrays.h.
|
inline |
Definition at line 22 of file qdp_arrays.h.
|
inline |
|
inline |
Copy constructor from a zero-based array.
Definition at line 28 of file qdp_arrays.h.
References QDP::multi1d< T >::size().
|
inline |
Copy constructor from a zero-based array.
Definition at line 35 of file qdp_arrays.h.
|
inline |
Definition at line 40 of file qdp_arrays.h.
References Array1dO().
|
inline |
Return ref to an element.
Definition at line 43 of file qdp_arrays.h.
|
inline |
Return const ref to an element.
Definition at line 46 of file qdp_arrays.h.
|
inline |
Append to a vector - it will grow.
Definition at line 49 of file qdp_arrays.h.
|
inline |
Return ref to underlying array.
Definition at line 55 of file qdp_arrays.h.
|
inline |
Return ref to underlying array.
Definition at line 52 of file qdp_arrays.h.
Referenced by QDP::operator*(), QDP::operator-(), QDP::operator/(), QDP::read(), and QDP::write().
|
inline |
Definition at line 37 of file qdp_arrays.h.
Referenced by QDP::read().
|
inline |
Definition at line 38 of file qdp_arrays.h.
Referenced by QDP::operator*(), QDP::operator-(), QDP::operator/(), QDP::read(), and QDP::write().