|
ParM
parm
A molecular dynamics library
|
A fixed size array. More...
#include <vec.hpp>
Public Member Functions | |
| Array () | |
| Array (const Array &rhs) | |
| template<class U > | |
| Array (const Array< U, N > &rhs) | |
| Array (const T locs[N]) | |
| const T & | get (const unsigned int n) const |
| void | set (const unsigned int n, const T a) |
| unsigned int | len () const |
| T & | operator[] (const unsigned int i) |
| const T & | operator[] (const unsigned int i) const |
| T * | begin () |
| T * | end () |
| ~Array () | |
Protected Attributes | |
| T | vals [N] |
A fixed size array.
This is just a wrapper with some convenience methods, and the following is (roughly) equivalent:
Array<flt, 4> arr; flt[4] arr;
| T | a type that can be added and subtracted. |
| N | the number of dimensions. |
| Array< T, N >::Array | ( | const Array< U, N > & | rhs | ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
protected |
1.8.10