A functor-style wrapper for a spatial quantity (typically potential, electron density or hole density). Typically evaluated on each vertex only.
More...
|
template<typename VectorType , typename IndexKeyType , typename BoundaryValueAccessor > |
| spatial_quantity_wrapper (DeviceType const &device, VectorType const &quantity_values, IndexKeyType const &index_array, BoundaryValueAccessor const &bnd_accessor) |
| Copy over all values from the accessors so that this object can be easily passed around. More...
|
|
value_type | operator() (element_type const &t) const |
| The functor interface. More...
|
|
std::vector< double > const & | vector () const |
| Returns the internal vector with the quantities. Allows to externally adjust the quantity. More...
|
|
template<typename DeviceType, typename ElementTagT, typename ValueType = double>
class viennashe::util::spatial_quantity_wrapper< DeviceType, ElementTagT, ValueType >
A functor-style wrapper for a spatial quantity (typically potential, electron density or hole density). Typically evaluated on each vertex only.
- Template Parameters
-
DeviceType | Type of the underlying device |
dim | Topological dimension of the elements on which the quantity is defined (0: vertices) |
ValueType | Value type of the quantity (usually double or bool) |
Definition at line 272 of file misc.hpp.
template<typename DeviceType , typename ElementTagT , typename ValueType = double>
template<typename VectorType , typename IndexKeyType , typename BoundaryValueAccessor >
viennashe::util::spatial_quantity_wrapper< DeviceType, ElementTagT, ValueType >::spatial_quantity_wrapper |
( |
DeviceType const & |
device, |
|
|
VectorType const & |
quantity_values, |
|
|
IndexKeyType const & |
index_array, |
|
|
BoundaryValueAccessor const & |
bnd_accessor |
|
) |
| |
|
inline |
Copy over all values from the accessors so that this object can be easily passed around.
Definition at line 284 of file misc.hpp.