Class JSONStateReader_agentsize_counter
Defined in File JSONStateReader.cu
Inheritance Relationships
Base Type
public nlohmann::json_sax< nlohmann::json >
Class Documentation
-
class JSONStateReader_agentsize_counter : public nlohmann::json_sax<nlohmann::json>
This is a trivial parser, it builds a map of the number of agents in each state This allows the agent statelists to be preallocated It also reads the config blocks, so that device can be init before we do environment
Public Functions
-
inline util::StringPairUnorderedMap<unsigned int> getAgentCounts() const
-
inline explicit JSONStateReader_agentsize_counter(const std::string &_filename, std::unordered_map<std::string, std::any> &_simulation_config, std::unordered_map<std::string, std::any> &_cuda_config, Verbosity _verbosity)
-
inline bool null()
-
inline bool boolean(bool b)
-
inline bool number_integer(number_integer_t i)
-
inline bool number_unsigned(number_unsigned_t u)
-
inline bool number_float(number_float_t d, const string_t&)
-
inline bool string(string_t &str)
-
inline bool binary(binary_t&)
-
inline bool start_object(size_t)
-
inline bool key(string_t &str)
-
inline bool end_object()
-
inline bool start_array(size_t)
-
inline bool end_array()
-
inline bool parse_error(std::size_t, const std::string&, const nlohmann::json::exception &ex)
-
inline util::StringPairUnorderedMap<unsigned int> getAgentCounts() const