ASL  0.1.7
Advanced Simulation Library
Public Member Functions | Related Functions | List of all members
acl::VectorOfElementsData Class Reference

The class represents several ElementData. More...

#include <aclVectorOfElementsDef.h>

Inheritance diagram for acl::VectorOfElementsData:
Inheritance graph
[legend]
Collaboration diagram for acl::VectorOfElementsData:
Collaboration graph
[legend]

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)
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ VectorOfElementsData() [1/4]

acl::VectorOfElementsData::VectorOfElementsData ( )

◆ VectorOfElementsData() [2/4]

acl::VectorOfElementsData::VectorOfElementsData ( unsigned int  n)
explicit

◆ VectorOfElementsData() [3/4]

template<typename T >
acl::VectorOfElementsData::VectorOfElementsData ( unsigned int  n,
unsigned int  s,
 
)
Parameters
nnumber of ElementData
ssize of each ElementData
Ttype of ElementData: e.g. float double etc.
queuedefines a device where the DataElements should be placed

◆ VectorOfElementsData() [4/4]

template<typename T >
acl::VectorOfElementsData::VectorOfElementsData ( unsigned int  n,
unsigned int  s,
,
CommandQueue  queue 
)

Member Function Documentation

◆ checkSizesCompatibility()

bool acl::VectorOfElementsData::checkSizesCompatibility ( unsigned int  n) const

checks whether all Elements have sizes compatible with n

◆ operator=() [1/2]

VectorOfElements acl::VectorOfElementsData::operator= ( const VectorOfElements a) const

◆ operator=() [2/2]

VectorOfElements acl::VectorOfElementsData::operator= ( const VectorOfElementsData a) const

◆ resizeElements()

void acl::VectorOfElementsData::resizeElements ( unsigned int  n)

Friends And Related Function Documentation

◆ clone() [1/2]

Creates VectorOfElementsData with same structure ElementData objects as a

◆ clone() [2/2]

VectorOfElementsData clone ( VectorOfElementsData  a,
unsigned int  n 
)
related

Creates VectorOfElementsData with same structure ElementData objects as a and with n numbers of elements

◆ copy()

void copy ( const VectorOfElementsData source,
VectorOfElementsData destination 
)
related

Copies the VectorOfElementsData class.

the destination is resized automaticaly

◆ swapBuffers()

void swapBuffers ( const VectorOfElementsData a,
const VectorOfElementsData b 
)
related

Swaps buffers between corresponding elements of two VectorOfElementsData classes.


The documentation for this class was generated from the following files: