Template Class DataBank#
Defined in File data_bank.h
Class Documentation#
-
template<typename ...Ts>
class DataBank# Storage of the data exchanged by operators at runtime. There is one pool per type, all the pools share the same IDs sequence so an ID identifies a single item. The ID 0 (null_data) is never attributed.
Public Functions
-
template<typename ...Args>
inline bool load(data_id_t id, std::variant<Args...> &var) const# Fills var with the item id, using the first alternative of the variant having an item with this ID.
- Returns:
false if none of the alternatives has an item with this ID.
-
template<typename ...Args>