4 #include "PrimitiveValue.h" 16 ParamList(
const std::vector<PrimitiveValue>& args);
17 ParamList(
const std::map<string,PrimitiveValue>& args);
18 bool parse(
const string& str);
20 inline size_t size()
const {
return args.size(); }
21 inline bool empty()
const {
return args.empty(); }
22 inline void clear() { args.clear(); names.clear(); }
23 inline bool contains(
const std::string& name)
const {
return names.find(name) != names.end(); }
24 inline PrimitiveValue& operator [] (
int index) {
return args[index]; }
25 inline const PrimitiveValue& operator [] (
int index)
const {
return args[index]; }
29 std::vector<PrimitiveValue> args;
30 std::map<std::string,int> names;
A basic primitive value type, including integers, floats, and strings.
Definition: PrimitiveValue.h:11
Definition: ParamList.h:9