MADNESS
version 0.9
|
FunctionFactory implements the named-parameter idiom for Function. More...
#include <funcimpl.h>
Protected Attributes | |
World & | _world |
int | _k |
double | _thresh |
int | _initial_level |
int | _max_refine_level |
int | _truncate_mode |
bool | _refine |
bool | _empty |
bool | _autorefine |
bool | _truncate_on_project |
bool | _fence |
bool | _is_on_demand |
std::shared_ptr < WorldDCPmapInterface< Key < NDIM > > > | _pmap |
Friends | |
class | FunctionImpl< T, NDIM > |
FunctionFactory implements the named-parameter idiom for Function.
C++ does not provide named arguments (as does, e.g., Python). This class provides something very close. Create functions as follows
where the methods of function factory, which specify the non-default arguments eventually passed to the Function
constructor, can be used in any order.
Need to add a general functor for initial projection with a standard interface.
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
Referenced by madness::apply(), and madness::hartree_product().
|
inline |
|
inline |
|
inline |
Referenced by madness::FunctionFactory< double, 6 >::f().
|
inline |
|
inlinevirtual |
return the functor; override this if the functor needs deferred construction
Reimplemented in madness::FGFactory< T, NDIM >, madness::TwoElectronFactory, and madness::CompositeFactory< T, NDIM, MDIM >.
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by madness::FunctionFactory< double, 6 >::initial_level(), and plocalize_boys().
|
inlinevirtual |
|
inlinevirtual |
Referenced by madness::FunctionFactory< double, 6 >::k().
|
inline |
Referenced by madness::FunctionFactory< double, 6 >::max_refine_level().
|
inline |
|
inline |
|
inline |
|
inline |
Referenced by madness::FunctionFactory< double, 6 >::norefine().
|
inline |
|
inline |
Referenced by madness::FunctionFactory< double, 6 >::pmap().
|
inline |
Referenced by madness::FunctionFactory< double, 6 >::refine().
|
inline |
implement this in all derived classes for correct chaining
|
inlinevirtual |
Reimplemented in madness::FGFactory< T, NDIM >, and madness::TwoElectronFactory.
Referenced by madness::FunctionFactory< double, 6 >::thresh().
|
inline |
Referenced by madness::FunctionFactory< double, 6 >::truncate_mode().
|
inline |
|
friend |
|
protected |
|
protected |
Referenced by madness::FunctionImpl< Q, NDIM >::FunctionImpl().
|
protected |
Referenced by madness::FunctionImpl< Q, NDIM >::FunctionImpl().
|
protected |
|
protected |
|
protected |
Referenced by madness::FunctionFactory< double, 6 >::get_k().
|
protected |
|
protected |
|
protected |
Referenced by madness::FunctionImpl< Q, NDIM >::FunctionImpl().
|
protected |
Referenced by madness::FunctionFactory< double, 6 >::get_thresh().
|
protected |
|
protected |
|
protected |
Referenced by madness::FunctionFactory< double, 6 >::get_world().