Template Class StorableHelper

Inheritance Relationships

Base Type

  • public Base

Class Documentation

template<class Base = Storable>
class StorableHelper : public Base

“Trampoline” for Storable to let it be used as a base class in Python.

Subclasses of Storable that are wrapped in pybind11 should have a similar helper that subclasses StorableHelper<subclass>. This helper can be skipped if the subclass neither adds any virtual methods nor implements any abstract methods.

See

pybind11 documentation

Template Parameters
  • Base: the exact (most specific) class being wrapped

Public Functions

std::shared_ptr<Storable> cloneStorable() const
std::string toString() const
std::size_t hash_value() const
bool equals(Storable const &other) const