Mixin for functions defined on a discrete grid of points. More...
#include <on_grid_function_mixin.hpp>
Public Member Functions | |
| const GridType & | grid () const |
| Access the grid this function is defined on. | |
| int | number_of_grid_points () const |
| Number of grid points. | |
| ValueType & | value_at_index (int index) |
| const ValueType & | value_at_index (int index) const |
| Access a single value by grid point index. | |
| const std::vector< ValueType > & | values () const |
| Access all values on the grid. | |
Protected Attributes | |
| GridType | grid_ |
| std::vector< ValueType > | values_ |
Mixin for functions defined on a discrete grid of points.
Definition at line 23 of file on_grid_function_mixin.hpp.
|
inline |
Access the grid this function is defined on.
Definition at line 26 of file on_grid_function_mixin.hpp.
References q3::OnGridFunctionMixin< GridType, ValueType >::grid_.
|
inline |
Number of grid points.
Definition at line 45 of file on_grid_function_mixin.hpp.
References q3::OnGridFunctionMixin< GridType, ValueType >::values_.
|
inline |
Definition at line 40 of file on_grid_function_mixin.hpp.
References q3::OnGridFunctionMixin< GridType, ValueType >::values_.
|
inline |
Access a single value by grid point index.
Definition at line 36 of file on_grid_function_mixin.hpp.
References q3::OnGridFunctionMixin< GridType, ValueType >::values_.
|
inline |
Access all values on the grid.
Definition at line 31 of file on_grid_function_mixin.hpp.
References q3::OnGridFunctionMixin< GridType, ValueType >::values_.
|
protected |
Definition at line 50 of file on_grid_function_mixin.hpp.
Referenced by q3::OnGridFunctionMixin< GridType, ValueType >::grid().
|
protected |
Definition at line 51 of file on_grid_function_mixin.hpp.
Referenced by q3::OnGridFunctionMixin< GridType, ValueType >::number_of_grid_points(), q3::OnGridFunctionMixin< GridType, ValueType >::value_at_index(), q3::OnGridFunctionMixin< GridType, ValueType >::value_at_index(), and q3::OnGridFunctionMixin< GridType, ValueType >::values().