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

The class represents several Element. More...

#include <aclVectorOfElementsDef.h>

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

Public Member Functions

bool checkSizesCompatibility (unsigned int n) const
 checks whether all Elements have sizes compatible with n More...
 
 VectorOfElements ()
 
 VectorOfElements (unsigned int n)
 
 VectorOfElements (const VectorOfElementsData &a)
 
VectorOfElements operator= (const VectorOfElements &a) const
 

Related Functions

(Note that these are not member functions.)

ExpressionContaineroperator<< (ExpressionContainer &ec, const std::vector< Element > &a)
 puts a vector<Element> in ExpressionContainer More...
 
std::vector< Element > & operator<< (std::vector< Element > &ec, const std::vector< Element > &a)
 puts a vector<Element> in ExpressionContainer More...
 
ExpressionContaineroperator<< (ExpressionContainer &ec, const MatrixOfElements &a)
 puts a MatrixOfElements in ExpressionContainer More...
 
ExpressionContaineroperator<< (ExpressionContainer &ec, const ExpressionContainer &a)
 puts a ExpressionContainer in ExpressionContainer More...
 
acl::TypeID getElementType (const VectorOfElements &a, unsigned int i=0)
 
unsigned int getElementsSize (const VectorOfElements &a)
 
void initData (VectorOfElements a, VectorOfElements initializationValue, const KernelConfiguration &kernelConfig)
 
void initData (VectorOfElements a, VectorOfElements initializationValue)
 
void copy (const vector< Element > &source, VectorOfElements &destination)
 Copies the VectorOfElements class. More...
 
void copy (const vector< ElementData > &source, VectorOfElements &destination)
 Copies the VectorOfElements class. More...
 
void copy (const vector< Element > &source, VectorOfElements &destination, unsigned int start, unsigned int end)
 Copies the VectorOfElements class. More...
 
VectorOfElements subVE (const VectorOfElements &source, unsigned int start, unsigned int end)
 
VectorOfElements subVE (const VectorOfElements &source, unsigned int i)
 
VectorOfElements subVE (const VectorOfElements &source, const vector< unsigned int > &iList)
 
VectorOfElementsData subVE (const VectorOfElementsData &source, unsigned int start, unsigned int end)
 
VectorOfElements assignmentSafe (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator- (const VectorOfElements &a)
 
VectorOfElements operator+= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator-= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator*= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator/= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator+ (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator- (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator* (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator/ (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator% (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator== (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator!= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator> (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator< (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator<= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator>= (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator&& (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator|| (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements operator! (const VectorOfElements &a)
 
VectorOfElements crossProduct (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements l2 (const VectorOfElements &a)
 
VectorOfElements productOfElements (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements productOfElements (const VectorOfElements &a)
 
VectorOfElements divisionOfElements (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements min (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements min (const VectorOfElements &a, const VectorOfElements &b, TypeID type)
 
VectorOfElements minAbs (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements max (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements max (const VectorOfElements &a, const VectorOfElements &b, TypeID type)
 
VectorOfElements copysign (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements copysign (const VectorOfElements &a, const VectorOfElements &b, TypeID t)
 
VectorOfElements sign (const VectorOfElements &a)
 
VectorOfElements excerpt (const VectorOfElements &source, const VectorOfElements &filter)
 
VectorOfElements select (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c)
 
VectorOfElements select (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c, TypeID t)
 
VectorOfElements select (const VectorOfElements &b, const VectorOfElements &c, TypeID t)
 
VectorOfElements mad (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c)
 
VectorOfElements mad (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c, TypeID t)
 
VectorOfElements log (const VectorOfElements &a)
 
VectorOfElements log10 (const VectorOfElements &a)
 
VectorOfElements powI (const VectorOfElements &a, unsigned int i)
 
VectorOfElements exp (const VectorOfElements &a)
 
VectorOfElements sqrt (const VectorOfElements &a)
 
VectorOfElements rsqrt (const VectorOfElements &a)
 
VectorOfElements fabs (const VectorOfElements &a)
 
VectorOfElements abs (const VectorOfElements &a)
 
VectorOfElements abs_diff (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElements floor (const VectorOfElements &a)
 
VectorOfElements convert (acl::TypeID type, const VectorOfElements &a, bool strong=true)
 
VectorOfElements minElement (const VectorOfElements &a)
 
VectorOfElements minAbsElement (const VectorOfElements &a)
 
VectorOfElements maxElement (const VectorOfElements &a)
 
VectorOfElements sumOfElements (const VectorOfElements &a)
 
VectorOfElements andOfElements (const VectorOfElements &a)
 
VectorOfElements orOfElements (const VectorOfElements &a)
 
VectorOfElements cat (const VectorOfElements &a, const VectorOfElements &b)
 
VectorOfElementsData cat (const VectorOfElementsData &a, const VectorOfElementsData &b)
 
VectorOfElements cat (const VectorOfElements &a, const VectorOfElements &b, const VectorOfElements &c)
 
VectorOfElements cat (const VectorOfElements *a, unsigned int n)
 
VectorOfElements catN (const VectorOfElements &a, unsigned int n)
 
template<typename T >
VectorOfElements operator+= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator-= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator*= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator/= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator+ (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator+ (const T &a, const VectorOfElements &b)
 
template<typename T >
VectorOfElements operator- (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator- (const T &a, const VectorOfElements &b)
 
template<typename T >
VectorOfElements operator* (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator* (const T &a, const VectorOfElements &b)
 
template<typename T >
VectorOfElements operator/ (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator% (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator/ (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator% (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator> (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator> (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator< (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator< (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator>= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator>= (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator<= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator<= (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator== (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator== (const T &b, const VectorOfElements &a)
 
template<typename T >
VectorOfElements operator!= (const VectorOfElements &a, const T &b)
 
template<typename T >
VectorOfElements operator!= (const T &b, const VectorOfElements &a)
 

Detailed Description

The class represents several Element.

Basicaly the class is identical to the std::vector class. The only difference is the assigment operator and mathematical operations.

Examples
testASLData.cc, testMatrixOfElements.cc, testReductionFunction.cc, and testVectorOfElements.cc.

Definition at line 91 of file aclVectorOfElementsDef.h.

Constructor & Destructor Documentation

◆ VectorOfElements() [1/3]

acl::VectorOfElements::VectorOfElements ( )

◆ VectorOfElements() [2/3]

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

◆ VectorOfElements() [3/3]

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

Member Function Documentation

◆ checkSizesCompatibility()

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

checks whether all Elements have sizes compatible with n

◆ operator=()

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

Friends And Related Function Documentation

◆ copy() [1/3]

void copy ( const vector< Element > &  source,
VectorOfElements destination 
)
related

Copies the VectorOfElements class.

the destination is resized automaticaly

◆ copy() [2/3]

void copy ( const vector< ElementData > &  source,
VectorOfElements destination 
)
related

Copies the VectorOfElements class.

the destination is resized automaticaly

◆ copy() [3/3]

void copy ( const vector< Element > &  source,
VectorOfElements destination,
unsigned int  start,
unsigned int  end 
)
related

Copies the VectorOfElements class.

the destination is resized automaticaly start and end define elements to copy: [start: end]

◆ getElementsSize()

unsigned int getElementsSize ( const VectorOfElements a)
related

◆ getElementType()

acl::TypeID getElementType ( const VectorOfElements a,
unsigned int  i = 0 
)
related

◆ initData() [1/2]

void initData ( VectorOfElements  a,
VectorOfElements  initializationValue,
const KernelConfiguration kernelConfig 
)
related

Writes data from initializationValue to a

Examples
cubeGravity.cc, cubeIncompressibleGravity.cc, cubePoroelasticGravity.cc, and poroelastic.cc.

◆ initData() [2/2]

void initData ( VectorOfElements  a,
VectorOfElements  initializationValue 
)
related

Writes data from initializationValue to a

◆ operator<<() [1/4]

ExpressionContainer & operator<< ( ExpressionContainer ec,
const std::vector< Element > &  a 
)
related

puts a vector<Element> in ExpressionContainer

◆ operator<<() [2/4]

std::vector< Element > & operator<< ( std::vector< Element > &  ec,
const std::vector< Element > &  a 
)
related

puts a vector<Element> in ExpressionContainer

◆ operator<<() [3/4]

ExpressionContainer & operator<< ( ExpressionContainer ec,
const MatrixOfElements a 
)
related

◆ operator<<() [4/4]

ExpressionContainer & operator<< ( ExpressionContainer ec,
const ExpressionContainer a 
)
related

◆ subVE() [1/4]

VectorOfElements subVE ( const VectorOfElements source,
unsigned int  start,
unsigned int  end 
)
related

returns VectorOfElements class containing several elements of a.

◆ subVE() [2/4]

VectorOfElements subVE ( const VectorOfElements source,
unsigned int  i 
)
related

returns VectorOfElements class containing one element i of a.

◆ subVE() [3/4]

VectorOfElements subVE ( const VectorOfElements source,
const vector< unsigned int > &  iList 
)
related

returns VectorOfElements class containing elements with numbers iList of source.

◆ subVE() [4/4]

VectorOfElementsData subVE ( const VectorOfElementsData source,
unsigned int  start,
unsigned int  end 
)
related

returns VectorOfElements class containing several elements of a.


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