ASL
0.1.7
Advanced Simulation Library
|
The class represents several ElementData. More...
#include <aclVectorOfElementsDef.h>
Public Member Functions | |
bool | checkSizesCompatibility (unsigned int n) const |
checks whether all Elements have sizes compatible with n More... | |
VectorOfElementsData () | |
VectorOfElementsData (unsigned int n) | |
template<typename T > | |
VectorOfElementsData (unsigned int n, unsigned int s, T) | |
template<typename T > | |
VectorOfElementsData (unsigned int n, unsigned int s, T, CommandQueue queue) | |
VectorOfElements | operator= (const VectorOfElements &a) const |
VectorOfElements | operator= (const VectorOfElementsData &a) const |
void | resizeElements (unsigned int n) |
Related Functions | |
(Note that these are not member functions.) | |
VectorOfElementsData | clone (VectorOfElementsData a) |
VectorOfElementsData | clone (VectorOfElementsData a, unsigned int n) |
void | copy (const VectorOfElementsData &source, VectorOfElementsData &destination) |
Copies the VectorOfElementsData class. More... | |
void | swapBuffers (const VectorOfElementsData &a, const VectorOfElementsData &b) |
The class represents several ElementData.
Basicaly the class is identical to the std::vector class. The only difference is the assigment operator and mathematical operations.
Definition at line 56 of file aclVectorOfElementsDef.h.
acl::VectorOfElementsData::VectorOfElementsData | ( | ) |
|
explicit |
acl::VectorOfElementsData::VectorOfElementsData | ( | unsigned int | n, |
unsigned int | s, | ||
T | |||
) |
n | number of ElementData |
s | size of each ElementData |
T | type of ElementData: e.g. float double etc. |
queue | defines a device where the DataElements should be placed |
acl::VectorOfElementsData::VectorOfElementsData | ( | unsigned int | n, |
unsigned int | s, | ||
T | , | ||
CommandQueue | queue | ||
) |
bool acl::VectorOfElementsData::checkSizesCompatibility | ( | unsigned int | n | ) | const |
checks whether all Elements have sizes compatible with n
VectorOfElements acl::VectorOfElementsData::operator= | ( | const VectorOfElements & | a | ) | const |
VectorOfElements acl::VectorOfElementsData::operator= | ( | const VectorOfElementsData & | a | ) | const |
void acl::VectorOfElementsData::resizeElements | ( | unsigned int | n | ) |
|
related |
Creates VectorOfElementsData with same structure ElementData objects as a
|
related |
Creates VectorOfElementsData with same structure ElementData objects as a
and with n
numbers of elements
|
related |
Copies the VectorOfElementsData class.
the destination
is resized automaticaly
|
related |
Swaps buffers between corresponding elements of two VectorOfElementsData classes.