ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
libviennashe::array_to_accessor Class Reference

Maps a C-array to an element based accessor. Uses element.id() as an index to the C-array. More...

#include <viennashe_all.hpp>

Public Member Functions

 array_to_accessor (double *vals)
 
template<typename ElementT >
double operator() (ElementT const &elem) const
 
template<typename ElementT >
double get_value (ElementT const &elem) const
 
template<typename ElementT >
double at (ElementT const &elem) const
 

Detailed Description

Maps a C-array to an element based accessor. Uses element.id() as an index to the C-array.

Definition at line 95 of file viennashe_all.hpp.

Constructor & Destructor Documentation

◆ array_to_accessor()

libviennashe::array_to_accessor::array_to_accessor ( double *  vals)
inline

Definition at line 99 of file viennashe_all.hpp.

Member Function Documentation

◆ at()

template<typename ElementT >
double libviennashe::array_to_accessor::at ( ElementT const &  elem) const
inline

Definition at line 117 of file viennashe_all.hpp.

◆ get_value()

template<typename ElementT >
double libviennashe::array_to_accessor::get_value ( ElementT const &  elem) const
inline

Definition at line 108 of file viennashe_all.hpp.

◆ operator()()

template<typename ElementT >
double libviennashe::array_to_accessor::operator() ( ElementT const &  elem) const
inline

Definition at line 102 of file viennashe_all.hpp.


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