Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
#include <elm/option/ListOption.h>
Public Member Functions | |
ListOption (const Make &make) | |
const T & | get (int index) const |
void | set (int index, const T &value) |
T & | ref (int index) |
void | add (const T &val) |
void | remove (int index) |
int | count (void) const |
operator bool (void) const | |
const T & | operator[] (int index) const |
T & | operator[] (int index) |
Vector< T >::Iter | begin () const |
Vector< T >::Iter | end () const |
virtual void | process (String arg) |
Public Member Functions inherited from AbstractValueOption | |
AbstractValueOption (const Make &make) | |
AbstractValueOption (Manager &man) | |
cstring | description (void) override |
usage_t | usage (void) override |
cstring | argDescription (void) override |
Public Member Functions inherited from Option | |
Option () | |
Option (const Make &make) | |
virtual | ~Option () |
Additional Inherited Members | |
Protected Attributes inherited from Option | |
cstring | desc |
Option that accepts a list of value, that is, accepts several command and their linked argument.
T | Type of arguments. |
|
inline |
|
inline |
|
inline |
References Vector< T, E, A >::begin().
|
inline |
|
inline |
References Vector< T, E, A >::end().
|
inline |
Get the value at the given index.
index | Index of the requested value. |
References Vector< T, E, A >::isEmpty().
|
inline |
|
inline |
This method is called by the option manager when the option is encountered.
arg | If the option requires an argument, the value of the argument. |
Implements Option.
References Vector< T, E, A >::add().
|
inline |
Get reference on a value.
index | Index of value to get reference for. |
|
inline |
Remove value at the given index.
index | Index of the value to remove. |
References Vector< T, E, A >::removeAt().
|
inline |
Set a value in the list.
index | Index of the value to set. |
value | Value to set. |