106 const ElPtr &el_mols,
139 const ElPtr &el_mols,
ShPtr< Element > ElPtr
An alias for a shared pointer of Element class.
StaBeads(const ElPtr &el_mols, const Vec< Json > &scheme)
Constructor of StaBeads class for molecules all of whose type property are 1, or molecules all of whi...
This file has a definition of Starter class, which is a subclass of Updater class.
std::function< bool(const Json &)> JsonToBoolFunc
An alias for a function accepts a Json object and returns a bool.
nlohmann::json Json
Json is an alias for nlohmann::json.
StaBeads sets properties for beads using mapping (coarse-graining) scheme for each molecule...
std::vector< T > Vec
Vec is an alias for vector (same as list in Python).
virtual void compute_impl(Json &data, JsonToVoidFunc check_required_keys, JsonToBoolFunc check_optional_keys) override
This method overrides Updater::compute_impl.
std::pair< bool, bool > check_mol_type_to_abst_beads()
Starter sets some properties to an empty Element object.
Map< int, Vec< Json > > mol_type_to_abst_beads
std::function< void(const Json &)> JsonToVoidFunc
An alias for a function accepts a Json object.
std::unordered_map< T, U > Map
Map is an alias for unordered map (same as dict in Python).