8 #ifndef PYBIND_ELEMENT_H 9 #define PYBIND_ELEMENT_H 24 const Json &name)
override 30 const Json &name)
override 36 const Str &classname)
override This file has a definition of Element class, which is one of the cores of this program.
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
Namespace for functions to bind C++ classes to Python.
ElPtr get_element(const Json &name) override
Get this object as a shared pointer of Element class.
void py_element(py::module &m)
Bind Element class to Python.
std::string Str
Str is an alias for string.
Element()
Constructor of Element class.
nlohmann::json Json
Json is an alias for nlohmann::json.
Element inherits Generator class and contains data element (or entity) as a Json object.
ShPtr< Generator > get_generator(const Json &name) override
Get this object as a shared pointer of Generator class.
Trampoline class to bind Element class to Python.
void accessed_by_instance_of(const Str &classname) override
Set class name of an instance calling Element::check_required_keys.
std::shared_ptr< T > ShPtr
ShPtr is an alias for shared pointer.
This file includes pybind11 and defines an alias for the namespace pybind11.