#include <tcl/list.h>
Public Member Functions | |
list () | |
Default constructor makes an empty list. | |
list (const tcl::obj &x) | |
list (const list &other) | |
list & | operator= (const list &other) |
tcl::obj | as_obj () const |
Tcl_Obj * | at (unsigned int index) const |
Checked access to element at index. | |
Tcl_Obj * | operator[] (unsigned int index) const |
Unchecked access to element at index. | |
Tcl_Obj *const * | elements () const |
template<class T> | |
T | get (unsigned int index, T *=0) const |
unsigned int | size () const |
unsigned int | length () const |
template<class T> | |
void | append (T t) |
template<class T> | |
void | append (T t, unsigned int times) |
template<class Itr> | |
void | append_range (Itr itr, Itr end) |
template<class T> | |
iterator< T > | begin (T *=0) |
template<class T> | |
iterator< T > | end (T *=0) |
appender | back_appender () |
Static Public Member Functions | |
static unsigned int | get_obj_list_length (Tcl_Obj *obj) |
Utility function to return the list length of a Tcl object. | |
Classes | |
class | appender |
A back-insert iterator for tcl::list. More... | |
class | iterator |
class | iterator_base |
Definition at line 60 of file list.h.