SimulationCraft
SimulationCraft is a tool to explore combat mechanics in the popular MMO RPG World of Warcraft (tm).
js::sc_js_t Struct Reference
Inheritance diagram for js::sc_js_t:
highchart::chart_t highchart::bar_chart_t highchart::histogram_chart_t highchart::pie_chart_t highchart::time_series_t

Public Member Functions

 sc_js_t (const sc_js_t &)
 
void print (std::ostream &) const
 
sc_js_tset (rapidjson::Value &obj, util::string_view name_, const rapidjson::Value &value_)
 
rapidjson::Value & value (util::string_view path)
 
template<typename T , typename = std::enable_if_t<!std::is_convertible<T, util::string_view>::value>>
sc_js_tset (util::string_view path, const T &value_)
 
template<typename T >
sc_js_tset (util::string_view path, const std::vector< T > &values_)
 
sc_js_tset (util::string_view path, const sc_js_t &value_)
 
sc_js_tset (util::string_view path, size_t value_)
 
sc_js_tset (util::string_view path, util::string_view value)
 
template<typename T , typename = std::enable_if_t<!std::is_convertible<T, util::string_view>::value>>
sc_js_tset (rapidjson::Value &obj, util::string_view name_, const T &value_)
 
template<typename T >
sc_js_tset (rapidjson::Value &obj, util::string_view name_, const std::vector< T > &value_)
 
sc_js_tset (rapidjson::Value &obj, util::string_view name, util::string_view value)
 
template<typename T , typename = std::enable_if_t<!std::is_convertible<T, util::string_view>::value>>
sc_js_tadd (util::string_view path, const T &value_)
 
template<typename T >
sc_js_tadd (util::string_view path, const std::vector< T > &data)
 
sc_js_tadd (util::string_view path, const rapidjson::Value &value_)
 
sc_js_tadd (util::string_view path, const sc_js_t &value_)
 
sc_js_tadd (util::string_view path, util::string_view value_)
 
sc_js_tadd (util::string_view path, double x, double low, double high)
 
sc_js_tadd (util::string_view path, double x, double y)
 

Public Attributes

rapidjson::Document js_
 

Protected Member Functions

rapidjson::Value * path_value (util::string_view path)
 
rapidjson::Value & do_set (rapidjson::Value &obj, util::string_view name_, rapidjson::Value &value_)
 
template<typename T >
rapidjson::Value & do_insert (rapidjson::Value &obj, const std::vector< T > &values)