concepts::Array< F > Class Template Reference
An array of objects. More...
#include <bilinearForm.hh>
Inheritance diagram for concepts::Array< F >:
Public Member Functions | |
template<class H > | |
Array< F > & | apply (const Array< H > &a, F fnc(const H &)) |
Application operator to each component. More... | |
template<class H > | |
Array< F > & | apply (const Array< H > &a, F fnc(const H &, const F &)) |
Application operator to each component. More... | |
Array< F > & | apply (F &fnc(F &)) |
Application operator to each component, e.g. More... | |
Array (const Array< F > &a) | |
Copy constructor. More... | |
template<class H > | |
Array (const Array< H > &a) | |
Type conversion constructor. More... | |
template<class H > | |
Array (const Array< H > &a, F fnc(const H &)) | |
Constructor by applying a function to another array. More... | |
Array (const F *dft, const uint sz) | |
Constructor. More... | |
Array (const uint sz, const F &dft) | |
Constructor. More... | |
Array (const uint sz, const F &first, const F &diff) | |
Constructor for equidistant values. More... | |
Array (const uint sz=0) | |
Constructor. More... | |
uint | cursize () const |
Returns the size of the allocated memory. More... | |
std::ostream & | info (std::ostream &os) const |
int | memory () const |
Returns the memory usage in bytes. More... | |
operator const F * () const | |
Returns a pointer to the array. More... | |
operator F* () | |
Returns a pointer to the array. More... | |
template<class H > | |
Array< F > & | operator*= (const Array< H > &a) |
Multiplication operator. More... | |
template<class G > | |
Array< F > & | operator*= (const G n) |
Scaling operator. More... | |
template<class H > | |
Array< F > & | operator+= (const Array< H > &a) |
Addition operator. More... | |
Array< F > & | operator+= (const F n) |
Addition operator. More... | |
Array< F > | operator- () const |
Negation operator. More... | |
template<class H > | |
Array< F > & | operator-= (const Array< H > &a) |
Subtraction operator. More... | |
Array< F > & | operator-= (const F n) |
Subtraction operator. More... | |
Array< F > & | operator= (const Array< F > &a) |
Assignement operator. More... | |
template<class H > | |
Array< F > & | operator= (const Array< H > &a) |
Assignement operator. More... | |
Array< F > & | operator= (const F n) |
Assignement operator. More... | |
F & | operator[] (const int i) |
Index operator. More... | |
const F & | operator[] (const int i) const |
Index operator. More... | |
void | resize (const uint sz) |
Resizes the array. More... | |
void | resizePreserve (const uint sz) |
Resizes the array. More... | |
Array< F > & | reverse () |
Reverse the order of the entries. More... | |
uint | size () const |
Returns the requested size of the array. More... | |
void | zeros () |
Fills the memory with zeros. More... | |
~Array () | |
Protected Attributes | |
F * | data_ |
Data. More... | |
uint | n_ |
Requested size of the array. More... | |
uint | size_ |
Current real size of the array. More... | |
Detailed Description
template<class F>
class concepts::Array< F >
An array of objects.
It does enlarge on request, zero out and more. In a sense a very minimalistic implementation of STLs vector. It's mainly intended to be an exception safe way to have an array of something. Especially suitable for vectors and matrices.
- Examples
- arpackppTutorial.cc, and hpFEM3d-EV.cc.
Definition at line 23 of file bilinearForm.hh.
Constructor & Destructor Documentation
◆ Array() [1/7]
template<class F >
|
inline |
◆ Array() [2/7]
template<class F >
|
inline |
◆ Array() [3/7]
template<class F >
|
inline |
◆ Array() [4/7]
template<class F >
|
inline |
◆ Array() [5/7]
template<class F >
template<class H >
|
inline |
◆ Array() [6/7]
template<class F >
|
inline |
◆ Array() [7/7]
◆ ~Array()
template<class F >
|
inline |
Member Function Documentation
◆ apply() [1/3]
template<class F >
template<class H >
|
inline |
◆ apply() [2/3]
template<class F >
template<class H >
|
inline |
◆ apply() [3/3]
template<class F >
|
inline |
◆ cursize()
template<class F >
|
inline |
◆ info()
template<class F >
std::ostream & concepts::Array< F >::info | ( | std::ostream & | os | ) | const |
◆ memory()
template<class F >
|
inline |
◆ operator const F *()
template<class F >
|
inline |
◆ operator F*()
template<class F >
|
inline |
◆ operator*=() [1/2]
template<class F >
template<class H >
|
inline |
◆ operator*=() [2/2]
template<class F >
template<class G >
|
inline |
◆ operator+=() [1/2]
template<class F >
template<class H >
|
inline |
◆ operator+=() [2/2]
template<class F >
|
inline |
◆ operator-()
template<class F >
|
inline |
◆ operator-=() [1/2]
template<class F >
template<class H >
|
inline |
◆ operator-=() [2/2]
template<class F >
|
inline |
◆ operator=() [1/3]
template<class F >
|
inline |
◆ operator=() [2/3]
template<class F >
template<class H >
|
inline |
◆ operator=() [3/3]
template<class F >
|
inline |
◆ operator[]() [1/2]
template<class F >
|
inline |
◆ operator[]() [2/2]
template<class F >
|
inline |
◆ resize()
template<class F >
void concepts::Array< F >::resize | ( | const uint | sz | ) |
◆ resizePreserve()
template<class F >
void concepts::Array< F >::resizePreserve | ( | const uint | sz | ) |
◆ reverse()
template<class F >
Array< F > & concepts::Array< F >::reverse |
◆ size()
template<class F >
|
inline |
◆ zeros()
template<class F >
|
inline |
Member Data Documentation
◆ data_
template<class F >
|
protected |
◆ n_
template<class F >
|
protected |
◆ size_
template<class F >
|
protected |
The documentation for this class was generated from the following files:
- hp1D/bilinearForm.hh
- toolbox/array.hh