|
template<typename... V> |
| Args (V &&... args) |
| Construct the list with variable arguments. More...
|
|
| Args (std::initializer_list< Value > il) |
| Initialise the list with an initialisation list. More...
|
|
size_t | count () const |
| Return the number of arguments contained in the list. More...
|
|
const Value & | operator[] (size_t index) const |
| Overload of operator [] to access an argument from its index. More...
|
|
Args | operator+ (const Value &arg) const |
| Overload of operator + to concatenate a list and a new argument. More...
|
|
Args & | operator+= (const Value &arg) |
| Overload of operator += to append a new argument to the list. More...
|
|
Args & | insert (size_t index, const Value &arg) |
| Insert an argument into the list at a given index. More...
|
|
Wrapper for packing an arbitrary number of arguments into a single object.
ponder::Args is defined as a list of arguments of any type (wrapped in ponder::Value instances), which can be passed to all the Ponder entities which may need an arbitrary number of arguments in a uniform way.
Arguments lists can be constructed on the fly:
or appended one by one using the + and += operators:
args += 1;
args += true;
args += "hello";
args += 5.24;
args = args + myObject;