12 #ifndef TCL_OBJ_GRAPHCODE_H 13 #define TCL_OBJ_GRAPHCODE_H 15 #include "graphcode.h" 24 for (GRAPHCODE_NS::omap::const_iterator i=o.begin(); i!=o.end(); i++)
35 string operator()(
const char* index)
37 string elname=desc+
"("+index+
")";
39 if ((Tobj=dynamic_cast<GRAPHCODE_NS::object*>
41 Tobj->TCL_obj(elname);
44 void keys_of() {ecolab::keys_of(obj);}
49 TCL_obj(targ,desc+
".size",arg,&GRAPHCODE_NS::omap::size);
50 Tcl_CreateCommand(
interp(),(desc+
".@is_map").c_str(),
51 (Tcl_CmdProc*)null_proc,NULL,NULL);
53 Tcl_CreateCommand(
interp(),(desc+
".@elem").c_str(),(Tcl_CmdProc*)elem,c,
54 (Tcl_CmdDeleteProc*)del_obj);
55 Tcl_CreateCommand(
interp(),(desc+
".#keys").c_str(),(Tcl_CmdProc*)keys,c,
56 (Tcl_CmdDeleteProc*)del_obj);
Definition: graphcode.h:295
Tcl_Interp * interp()
default interpreter. Set to NULL when interp() is destroyed
Definition: tcl++.h:222
Definition: graphcode.h:187
Definition: TCL_obj_stl.h:30
Definition: TCL_obj_graphcode.h:29
TCL_obj support for STL containers.
Definition: TCL_obj_stl.h:185
_OPENMP
Definition: accessor.h:16
TCL_obj descriptor object.
Definition: TCL_obj_base.h:327
Definition: graphcode.h:74
Definition: TCL_obj_stl.h:244