COOLFluiD
Release kernel
COOLFluiD is a Collaborative Simulation Environment (CSE) focused on complex MultiPhysics simulations.
|
#include <ArrayBase.hpp>
Public Types | |
typedef ValueT | value_type |
typedef boost::multi_array< ValueT, 2 > | ArrayT |
typedef boost::subarray_gen< ArrayT, 1 >::type | Row |
typedef const boost::const_subarray_gen< ArrayT, 1 >::type | ConstRow |
typedef ArrayBufferT< ValueT > | Buffer |
Public Member Functions | |
void | initialize (const Uint nb_cols) |
Initialize the array with a fixed column size and remove all existing rows, if any. More... | |
void | resize (const Uint nb_rows) |
Resize the array to the given number of rows. More... | |
ArrayT & | array () |
const ArrayT & | array () const |
Buffer | create_buffer (const size_t buffersize=16384) |
Row | operator[] (const Uint idx) |
ConstRow | operator[] (const Uint idx) const |
Uint | size () const |
Uint | row_size () const |
template<typename VectorT > | |
void | set_row (const Uint array_idx, const VectorT &row) |
Private Attributes | |
ArrayT | m_array |
storage of the array More... | |
Base class for 2-dimensional array data
Definition at line 23 of file ArrayBase.hpp.
typedef boost::multi_array<ValueT,2> ArrayT |
Definition at line 27 of file ArrayBase.hpp.
typedef ArrayBufferT<ValueT> Buffer |
Definition at line 30 of file ArrayBase.hpp.
Definition at line 29 of file ArrayBase.hpp.
Definition at line 28 of file ArrayBase.hpp.
typedef ValueT value_type |
Definition at line 26 of file ArrayBase.hpp.
|
inline |
Definition at line 47 of file ArrayBase.hpp.
|
inline |
Definition at line 50 of file ArrayBase.hpp.
|
inline |
Definition at line 53 of file ArrayBase.hpp.
|
inline |
Initialize the array with a fixed column size and remove all existing rows, if any.
Definition at line 35 of file ArrayBase.hpp.
Definition at line 61 of file ArrayBase.hpp.
Definition at line 64 of file ArrayBase.hpp.
|
inline |
Resize the array to the given number of rows.
Definition at line 41 of file ArrayBase.hpp.
|
inline |
Definition at line 70 of file ArrayBase.hpp.
|
inline |
copy a given row into the array
[in] | array_idx | the index of the row that will be set |
[in] | row | the row that will be copied into the array |
Definition at line 76 of file ArrayBase.hpp.
|
inline |
Definition at line 67 of file ArrayBase.hpp.
|
private |
storage of the array
Definition at line 89 of file ArrayBase.hpp.
Send comments to: COOLFluiD Web Admin |