Public Member Functions

cell_quan_wrapper< CellType, NumericT > Class Template Reference

A type erasure class which enables to store cell_quan_constants and cell_quan_exprs with different template arguments in a single array. More...

#include <cell_quan.hpp>

Public Member Functions

template<typename T >
 cell_quan_wrapper (T const *t)
 cell_quan_wrapper ()
cell_quan_wrapperoperator= (cell_quan_wrapper &other)
NumericT eval (CellType const &cell, numeric_type v) const
NumericT eval (CellType const &cell, std::vector< numeric_type > const &v) const
cell_quan_interface< CellType > * clone () const

Detailed Description

template<typename CellType, typename NumericT = viennafem::numeric_type>
class viennafem::detail::cell_quan_wrapper< CellType, NumericT >

A type erasure class which enables to store cell_quan_constants and cell_quan_exprs with different template arguments in a single array.

Parameters:
CellType Type of the ViennaGrid cell
NumericT Floating point type of the value to be returned (typically 'double')

Constructor & Destructor Documentation

cell_quan_wrapper ( T const *  t  )  [inline]
cell_quan_wrapper (  )  [inline]

Member Function Documentation

cell_quan_interface<CellType>* clone (  )  const [inline]
NumericT eval ( CellType const &  cell,
numeric_type  v 
) const [inline]
NumericT eval ( CellType const &  cell,
std::vector< numeric_type > const &  v 
) const [inline]
cell_quan_wrapper& operator= ( cell_quan_wrapper< CellType, NumericT > &  other  )  [inline]

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