Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

tcl::list Class Reference

#include <tcl/list.h>

Collaboration diagram for tcl::list:

Collaboration graph
[legend]
List of all members.

Detailed Description

tcl::list class definition

Definition at line 60 of file list.h.

Public Member Functions

 list ()
 Default constructor makes an empty list.
 list (const tcl::obj &x)
 list (const list &other)
listoperator= (const list &other)
tcl::obj as_obj () const
Tcl_Objat (unsigned int index) const
 Checked access to element at index.
Tcl_Objoperator[] (unsigned int index) const
 Unchecked access to element at index.
Tcl_Obj *const * elements () const
template<class 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  iterator
class  iterator_base
class  appender
 A back-insert iterator for tcl::list. More...


Constructor & Destructor Documentation

tcl::list::list  ) 
 

Default constructor makes an empty list.

Definition at line 63 of file list.cc.

References GVX_TRACE.


Member Function Documentation

Tcl_Obj * tcl::list::at unsigned int  index  )  const
 

Checked access to element at index.

Definition at line 112 of file list.cc.

References dbg_eval, dbg_eval_nl, GVX_TRACE, and SRC_POS.

Referenced by Dlist::choose(), Dlist::cycle_left(), get(), Dlist::index(), Dlist::pickone(), Dlist::repeat(), Dlist::reverse(), Dlist::select(), and Dlist::slice().

unsigned int tcl::list::get_obj_list_length Tcl_Obj obj  )  [static]
 

Utility function to return the list length of a Tcl object.

Definition at line 127 of file list.cc.

References GVX_ASSERT, GVX_TRACE, and SRC_POS.

Referenced by tcl::vec_dispatcher::dispatch().

Tcl_Obj* tcl::list::operator[] unsigned int  index  )  const [inline]
 

Unchecked access to element at index.

Definition at line 88 of file list.h.


The documentation for this class was generated from the following files:
Generated on Sun Nov 22 13:51:48 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4