![]() |
LifeV
|
#include <ArraySimple.hpp>
Inheritance diagram for ArraySimple< DataType >:
Collaboration diagram for ArraySimple< DataType >:Private Attributes | |
| vectorSize_Type | M_numberOfRows |
| Number of rows. More... | |
| vectorSize_Type | M_numberOfColumns |
| Number of columns. More... | |
Public Types | |
| typedef DataType | data_Type |
| typedef std::vector< DataType > | vector_Type |
| typedef vector_Type::size_type | vectorSize_Type |
| typedef vector_Type::reference | vectorReference_Type |
| typedef vector_Type::const_reference | vectorConstReference_Type |
| typedef vector_Type::iterator | vectorIterator_Type |
| typedef vector_Type::const_iterator | vectorConstIterator_Type |
Constructor & Destructor | |
| ArraySimple () | |
| Empty Constructor. More... | |
| ArraySimple (vectorSize_Type vectorSize) | |
| Constructor. More... | |
| ArraySimple (vectorSize_Type numberOfRows, vectorSize_Type numberOfColumns) | |
| Constructor. More... | |
| ~ArraySimple () | |
| Destructor. More... | |
Operators | |
| vectorReference_Type | operator() (vectorSize_Type const i) |
| Access operator. More... | |
| vectorConstReference_Type | operator() (vectorSize_Type const i) const |
| Const access operator. More... | |
| vectorReference_Type | operator() (vectorSize_Type const i, vectorSize_Type const j) |
| Access operator. More... | |
| vectorConstReference_Type | operator() (vectorSize_Type const i, vectorSize_Type const j) const |
| Const access operator. More... | |
Methods | |
| ArraySimple< DataType >::iterator | columnIterator (vectorSize_Type const column) |
| Return the iterator of the column passed by argument. More... | |
| void | reshape (vectorSize_Type const numberOfRows, vectorSize_Type const numberOfColumns) |
| Resize the ArraySimple vector. More... | |
| void | clearArray () |
| Completely clear out the container, returning memory to the system. More... | |
| bool | checkIndex (vectorSize_Type const i, vectorSize_Type const j) const |
| Check if the MeshEntityContainer vector contains an element with row index i and column index j. More... | |
| void | showMe () const |
| Show the contents of the ArraySimple vector. More... | |
Get Methods | |
| vectorSize_Type const | numberOfRows () const |
| Return the number of rows. More... | |
| vectorSize_Type const | numberOfColumns () const |
| Return the number of columns. More... | |
The class is a wrap up of Standard Library vector class. It defines arrays of n x m size. This class is deprecated and it should be removed when the discussion is over. It is with COLUMNWISE ORDERING
Example:
ArraySimple<int> b(3,5) is an array with 3 rows and 5 columns
Definition at line 62 of file ArraySimple.hpp.
| typedef DataType data_Type |
Definition at line 69 of file ArraySimple.hpp.
| typedef std::vector<DataType> vector_Type |
Definition at line 70 of file ArraySimple.hpp.
| typedef vector_Type::size_type vectorSize_Type |
Definition at line 71 of file ArraySimple.hpp.
| typedef vector_Type::reference vectorReference_Type |
Definition at line 72 of file ArraySimple.hpp.
| typedef vector_Type::const_reference vectorConstReference_Type |
Definition at line 73 of file ArraySimple.hpp.
| typedef vector_Type::iterator vectorIterator_Type |
Definition at line 74 of file ArraySimple.hpp.
| typedef vector_Type::const_iterator vectorConstIterator_Type |
Definition at line 75 of file ArraySimple.hpp.
|
explicit |
Empty Constructor.
Construct a ArraySimple vector of size (0,0)
Definition at line 234 of file ArraySimple.hpp.
Here is the caller graph for this function:
|
explicit |
Constructor.
Construct a ArraySimple vector of size (size,1)
| vectorSize | size of the ArraySimple vector |
Definition at line 242 of file ArraySimple.hpp.
Here is the caller graph for this function:
|
explicit |
Constructor.
Construct a ArraySimple object of size (numberOfRows,numberOfColumns)
| numberOfRows | number of rows |
| numberOfColumns | number of columns |
Definition at line 250 of file ArraySimple.hpp.
Here is the caller graph for this function:
|
inline |
Destructor.
Definition at line 105 of file ArraySimple.hpp.
|
inline |
Access operator.
ArraySimple is seen as vector (index from one)
| i | index of the element of the ArraySimple vector |
Definition at line 119 of file ArraySimple.hpp.
|
inline |
Const access operator.
ArraySimple is seen as vector
| i | index of the element of the ArraySimple vector |
Definition at line 130 of file ArraySimple.hpp.
|
inline |
Access operator.
| i | row index |
| j | column index |
Definition at line 141 of file ArraySimple.hpp.
|
inline |
Const access operator.
| i | row index |
| j | column index |
Definition at line 152 of file ArraySimple.hpp.
|
inline |
Return the iterator of the column passed by argument.
| column | column index |
Definition at line 262 of file ArraySimple.hpp.
| void reshape | ( | vectorSize_Type const | numberOfRows, |
| vectorSize_Type const | numberOfColumns | ||
| ) |
Resize the ArraySimple vector.
| numberOfRows | number of rows |
| numberOfColumns | number of columns |
Definition at line 277 of file ArraySimple.hpp.
|
inline |
Completely clear out the container, returning memory to the system.
Definition at line 286 of file ArraySimple.hpp.
|
inline |
Check if the MeshEntityContainer vector contains an element with row index i and column index j.
| i | row index |
| j | column index |
Definition at line 186 of file ArraySimple.hpp.
| void showMe | ( | ) | const |
Show the contents of the ArraySimple vector.
Definition at line 297 of file ArraySimple.hpp.
|
inline |
Return the number of rows.
Definition at line 204 of file ArraySimple.hpp.
|
inline |
Return the number of columns.
Definition at line 213 of file ArraySimple.hpp.
Here is the caller graph for this function:
|
private |
Number of rows.
Definition at line 223 of file ArraySimple.hpp.
|
private |
Number of columns.
Definition at line 226 of file ArraySimple.hpp.