Array with coordinates in 2D. More...
#include <arrays.hh>


Public Member Functions | |
| Array< Real2d > & | apply (Real2d &fnc(Real2d &)) |
| Application operator to each component, e.g. | |
| Array< Real2d > & | apply (const Array< H > &a, Real2dfnc(const H &)) |
| Application operator to each component. | |
| Array< Real2d > & | apply (const Array< H > &a, Real2dfnc(const H &, const Real2d &)) |
| Application operator to each component. | |
| ArrayCoord (const Quad2d &quad, const Array< Real > &qX, const Array< Real > &qY) | |
| Constructor for a Quad2d. | |
| ArrayCoord (const Edge2d &edge, const Array< Real > &p) | |
| Constructor for a Edge2d. | |
| uint | cursize () const |
| Returns the size of the allocated memory. | |
| std::ostream & | info (std::ostream &os) const |
| int | memory () const |
| Returns the memory usage in bytes. | |
| operator const Real2d * () const | |
| Returns a pointer to the array. | |
| operator Real2d * () | |
| Returns a pointer to the array. | |
| Array< Real2d > & | operator*= (const Array< H > &a) |
| Multiplication operator. | |
| Array< Real2d > & | operator*= (const G n) |
| Scaling operator. | |
| Array< Real2d > & | operator+= (const Real2dn) |
| Addition operator. | |
| Array< Real2d > & | operator+= (const Array< H > &a) |
| Addition operator. | |
| Array< Real2d > | operator- () const |
| Negation operator. | |
| Array< Real2d > & | operator-= (const Array< H > &a) |
| Subtraction operator. | |
| Array< Real2d > & | operator-= (const Real2dn) |
| Subtraction operator. | |
| const Real2d & | operator[] (const int i) const |
| Index operator. | |
| Real2d & | operator[] (const int i) |
| Index operator. | |
| void | resize (const uint sz) |
| Resizes the array. | |
| void | resizePreserve (const uint sz) |
| Resizes the array. | |
| Array< Real2d > & | reverse () |
| Reverse the order of the entries. | |
| uint | size () const |
| Returns the requested size of the array. | |
| void | zeros () |
| Fills the memory with zeros. | |
Protected Attributes | |
| Real2d * | data_ |
| Data. | |
| uint | n_ |
| Requested size of the array. | |
| uint | size_ |
| Current real size of the array. | |
Array with coordinates in 2D.
| concepts::ArrayCoord< 2 >::ArrayCoord | ( | const Quad2d & | quad, |
| const Array< Real > & | qX, | ||
| const Array< Real > & | qY | ||
| ) |
Constructor for a Quad2d.
| quad | cell |
| qX,qY | arrays of quadrature points in [0,1] |
| concepts::ArrayCoord< 2 >::ArrayCoord | ( | const Edge2d & | edge, |
| const Array< Real > & | p | ||
| ) |
Constructor for a Edge2d.
| edge | cell |
| q | array of quadrature points in [0,1] |
| Array<Real2d >& concepts::Array< Real2d >::apply | ( | Real2d & | fncF & | ) | [inline, inherited] |
| uint concepts::Array< Real2d >::cursize | ( | ) | const [inline, inherited] |
| std::ostream& concepts::Array< Real2d >::info | ( | std::ostream & | os | ) | const [inherited] |
| int concepts::Array< Real2d >::memory | ( | ) | const [inline, inherited] |
| concepts::Array< Real2d >::operator const Real2d * | ( | ) | const [inline, inherited] |
| concepts::Array< Real2d >::operator Real2d * | ( | ) | [inline, inherited] |
| Array<Real2d >& concepts::Array< Real2d >::operator*= | ( | const G | n | ) | [inline, inherited] |
| Array<Real2d >& concepts::Array< Real2d >::operator*= | ( | const Array< H > & | a | ) | [inline, inherited] |
| Array<Real2d >& concepts::Array< Real2d >::operator+= | ( | const Array< H > & | a | ) | [inline, inherited] |
| Array<Real2d >& concepts::Array< Real2d >::operator+= | ( | const Real2d | n | ) | [inline, inherited] |
| Array<Real2d > concepts::Array< Real2d >::operator- | ( | ) | const [inline, inherited] |
| Array<Real2d >& concepts::Array< Real2d >::operator-= | ( | const Array< H > & | a | ) | [inline, inherited] |
| Array<Real2d >& concepts::Array< Real2d >::operator-= | ( | const Real2d | n | ) | [inline, inherited] |
| const Real2d & concepts::Array< Real2d >::operator[] | ( | const int | i | ) | const [inline, inherited] |
| Real2d & concepts::Array< Real2d >::operator[] | ( | const int | i | ) | [inline, inherited] |
| void concepts::Array< Real2d >::resize | ( | const uint | sz | ) | [inherited] |
Resizes the array.
A reallocation occurs only if the requested space is not available, ie. making the array smaller does not result in a reallocation. If a reallocation occurs, the data is not preserved.
| void concepts::Array< Real2d >::resizePreserve | ( | const uint | sz | ) | [inherited] |
Resizes the array.
Basically, it does the same as resize. But, if a reallocation occurs, the data is preserved.
| Array<Real2d >& concepts::Array< Real2d >::reverse | ( | ) | [inherited] |
Reverse the order of the entries.
| uint concepts::Array< Real2d >::size | ( | ) | const [inline, inherited] |
| void concepts::Array< Real2d >::zeros | ( | ) | [inline, inherited] |
Real2d * concepts::Array< Real2d >::data_ [protected, inherited] |
uint concepts::Array< Real2d >::n_ [protected, inherited] |
uint concepts::Array< Real2d >::size_ [protected, inherited] |