mpqc::python::properties Namespace Reference

Classes

struct  PyProvides
 

Functions

template<class Property >
std::shared_ptr< Propertymake_property_kv (const KeyVal *kv)
 
template<class Property , class ... Args>
auto make_property_factory (Args ... args)
 
template<class Property >
auto compute (Property &&p) -> decltype(p.value() ->value())
 
template<class Property >
py::str str (Property &p, std::string name)
 
template<class Property >
auto make_property_class (py::module m, std::string name)
 
ProviderBaseprovider (const std::type_info &type_info, py::handle h)
 
template<class Property , class ... Args>
auto make_provider_class (py::class_< Property, Args... > property)
 
void __init__ (py::module m)
 

Function Documentation

◆ __init__()

void mpqc::python::properties::__init__ ( py::module  m)

◆ compute()

template<class Property >
auto mpqc::python::properties::compute ( Property &&  p) -> decltype(p.value()->value())

◆ make_property_class()

template<class Property >
auto mpqc::python::properties::make_property_class ( py::module  m,
std::string  name 
)

◆ make_property_factory()

template<class Property , class ... Args>
auto mpqc::python::properties::make_property_factory ( Args ...  args)

◆ make_property_kv()

template<class Property >
std::shared_ptr<Property> mpqc::python::properties::make_property_kv ( const KeyVal kv)

◆ make_provider_class()

template<class Property , class ... Args>
auto mpqc::python::properties::make_provider_class ( py::class_< Property, Args... >  property)

◆ provider()

ProviderBase * mpqc::python::properties::provider ( const std::type_info &  type_info,
py::handle  h 
)

◆ str()

template<class Property >
py::str mpqc::python::properties::str ( Property p,
std::string  name 
)