|
Elm
2
ELM is a library providing generic data structures, OS-independent interface, plugins and XML.
|
22 #ifndef ELM_OPTION_LISTOPTION_H_
23 #define ELM_OPTION_LISTOPTION_H_
25 #include <elm/option/ValueOption.h>
26 #include <elm/data/Vector.h>
28 namespace elm {
namespace option {
38 inline const T&
get(
int index)
const {
return vals[index]; };
40 inline T&
ref(
int index) {
return vals[index]; }
41 inline void add(
const T& val) { vals.
add(val); }
47 inline const T&
operator[](
int index)
const {
return vals[index]; }
T & ref(int index)
Definition: ListOption.h:40
Vector< T >::Iter end() const
Definition: ListOption.h:50
Definition: ValueOption.h:31
int count(void) const
Definition: Vector.h:81
const T & get(int index) const
Definition: ListOption.h:38
Iter begin(void) const
Definition: Vector.h:88
T & operator[](int index)
Definition: ListOption.h:48
void set(int index, const T &value)
Definition: ListOption.h:39
void add(const T &val)
Definition: ListOption.h:41
void remove(int index)
Definition: ListOption.h:42
ListOption(const Make &make)
Definition: ListOption.h:35
int count(void) const
Definition: ListOption.h:43
const T & operator[](int index) const
Definition: ListOption.h:47
Definition: ListOption.h:32
void add(const T &v)
Definition: Vector.h:101
Iter end(void) const
Definition: Vector.h:89
virtual void process(String arg)
Definition: ListOption.h:53
Vector< T >::Iter begin() const
Definition: ListOption.h:49
bool isEmpty(void) const
Definition: Vector.h:86
void removeAt(int i)
Definition: Vector.h:143