Class JSONStateReader_agentsize_counter

Inheritance Relationships

Base Type

  • public rapidjson::BaseReaderHandler< rapidjson::UTF8<>, JSONStateReader_agentsize_counter >

Class Documentation

class JSONStateReader_agentsize_counter : public rapidjson::BaseReaderHandler<rapidjson::UTF8<>, JSONStateReader_agentsize_counter>

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)
template<typename T>
inline bool processValue(const T val)
inline bool Null()
inline bool Bool(bool b)
inline bool Int(int i)
inline bool Uint(unsigned u)
inline bool Int64(int64_t i)
inline bool Uint64(uint64_t u)
inline bool Double(double d)
inline bool String(const char *str, rapidjson::SizeType, bool)
inline bool StartObject()
inline bool Key(const char *str, rapidjson::SizeType, bool)
inline bool EndObject(rapidjson::SizeType)
inline bool StartArray()
inline bool EndArray(rapidjson::SizeType)