|
| Array1D () |
| Default constructor, which does not allocate any memory. More...
|
|
| Array1D (const int &nx) |
| Constructor that allocates the memory. More...
|
|
| Array1D (const int &nx, const T &t) |
| Constructor that allocates and initializes the data to a value t. More...
|
|
Array1D & | operator= (const Array1D &obj) |
| Assignment operator copies the data structure by value. More...
|
|
| Array1D (const Array1D &obj) |
| Copy constructor. More...
|
|
| ~Array1D () |
| Destructor that frees up the memory. More...
|
|
void | Clear () |
| Function to clear the memory. More...
|
|
int | XSize () const |
| Returns size in the x-direction. More...
|
|
int | Length () const |
| Returns length (i.e. size in the x-direction) More...
|
|
void | Resize (const int &nx) |
| Resizes the array. More...
|
|
void | Resize (const int &nx, const T &t) |
| Resizes the array and sets ALL entries to the specified value. More...
|
|
void | SetValue (const T &t) |
| Set all values in the array to the given value. More...
|
|
void | PushBack (const T &t) |
| Add element to the end of the vector. More...
|
|
T * | GetArrayPointer () |
| Return a pointer to the first element of the data in the vector so we can use it access the data in array format (e.g. for passing it to a Fortran program). More...
|
|
const T * | GetConstArrayPointer () const |
| Return a const point to the first element of the data in the vector so we can use it access the data in array format (e.g. for passing it to a Fortran program). More...
|
|
T & | operator() (int ix) |
|
const T & | operator() (int ix) const |
|
void | insert (Array1D< T > &insarr, int ix) |
| Insert a given array to the position ix. More...
|
|
void | insert (const T &insval, int ix) |
| Insert a given value to the position ix. More...
|
|
void | erase (int ix) |
| Erase the value from the position ix. More...
|
|
void | DumpBinary (FILE *f_out) const |
| Dump contents of the array to a file in binary format. More...
|
|
void | ReadBinary (FILE *f_in) |
| Read contents of the array from a file in binary format. More...
|
|
T & | operator[] (int i) |
|
void | DumpBinary (char *filename) |
| Dump contents of the array to a file in binary format. More...
|
|
void | ReadBinary (char *filename) |
|
void | DumpBinary4py (char *filename) |
|
void | ReadBinary4py (char *filename, int n) |
|
void | setArray (vector< T > inarray) |
|
vector< T > | flatten () |
|
string | type () |
|