Classes | |
class | arg_spec |
Specify how many args a command can take. More... | |
class | channel_buf |
A std::streambuf implementation that wraps a tcl channel. More... | |
class | function |
Abstract interface for the core function to be embedded in a tcl::command. More... | |
class | command |
class | arg_dispatcher |
class | call_context |
class | command_group |
Represents a set of overloaded tcl::command objects. More... | |
struct | returnable |
Trait class for extracting an appropriate return-type from T. More... | |
struct | returnable< const T > |
Specialization of tcl::returnable for const T. More... | |
struct | returnable< const T & > |
Specialization of tcl::returnable for const T&. More... | |
class | dict |
class | event_loop_impl |
class | event_loop |
Singleton class that operates the main Tcl event loop. More... | |
class | interpreter |
tcl::interpreter provides a wrapper around Tcl_Interp calls. More... | |
class | list |
class | func_wrapper |
Generic tcl::func_wrapper definition. More... | |
struct | func_wrapper< 0, R, Func > |
tcl::func_wrapper<0> -- zero arguments More... | |
struct | func_wrapper< 1, R, Func > |
tcl::func_wrapper<1> -- one argument More... | |
struct | func_wrapper< 2, R, Func > |
tcl::func_wrapper<2> -- two arguments More... | |
struct | func_wrapper< 3, R, Func > |
tcl::func_wrapper<3> -- three arguments More... | |
struct | func_wrapper< 4, R, Func > |
tcl::func_wrapper<4> -- four arguments More... | |
struct | func_wrapper< 5, R, Func > |
tcl::func_wrapper<5> -- five arguments More... | |
struct | func_wrapper< 6, R, Func > |
tcl::func_wrapper<6> -- six arguments More... | |
struct | func_wrapper< 7, R, Func > |
tcl::func_wrapper<7> -- seven arguments More... | |
struct | func_wrapper< 8, R, Func > |
tcl::func_wrapper<8> -- eight arguments More... | |
class | generic_function |
generic_function implements tcl::command using a held functor. More... | |
class | generic_function< void, func_wrapper > |
Specialization for functors with void return types. More... | |
class | emu_namesp |
class | obj |
class | obj_caster |
obj_caster class encapsulates casts to see if objects match a given type. More... | |
class | cobj_caster |
cobj_caster implements obj_caster with dynamic_cast. More... | |
class | pkg |
class | regexp |
Regular-expression class implemented with Tcl's regexp facilities. More... | |
struct | package_info |
class | script_app |
Use inside main() to initialize and run a scripting application. More... | |
class | timer_scheduler_token |
class | timer_scheduler |
class | vec_context |
class | vec_dispatcher |
struct | FieldsLister |
class | obj_reader |
class | obj_writer |
class | ProcWrapper |
A serializable wrapper for Tcl script procedures. More... | |
struct | ButtonPressEvent |
A mouse button-press event. More... | |
struct | KeyPressEvent |
A keypress event. More... | |
class | TkWidget |
Typedefs | |
typedef emu_namesp | namesp |
Enumerations | |
enum | error_strategy { THROW_ERROR, IGNORE_ERROR } |
Different error-handling strategies for tcl::interpreter::eval(). More... | |
enum | EventStatus { HANDLED, NOT_HANDLED } |
Functions | |
shared_ptr< std::ostream > | ochanopen (Tcl_Interp *interp, const char *channame, std::ios::openmode flags) |
shared_ptr< std::istream > | ichanopen (Tcl_Interp *interp, const char *channame, std::ios::openmode flags) |
int | aux_convert_to (Tcl_Obj *obj, int *) |
unsigned int | aux_convert_to (Tcl_Obj *obj, unsigned int *) |
long | aux_convert_to (Tcl_Obj *obj, long *) |
unsigned long | aux_convert_to (Tcl_Obj *obj, unsigned long *) |
long long | aux_convert_to (Tcl_Obj *obj, long long *) |
bool | aux_convert_to (Tcl_Obj *obj, bool *) |
double | aux_convert_to (Tcl_Obj *obj, double *) |
float | aux_convert_to (Tcl_Obj *obj, float *) |
const char * | aux_convert_to (Tcl_Obj *obj, const char **) |
fstring | aux_convert_to (Tcl_Obj *obj, fstring *) |
tcl::obj | aux_convert_from (long long val) |
tcl::obj | aux_convert_from (long val) |
tcl::obj | aux_convert_from (unsigned long val) |
tcl::obj | aux_convert_from (int val) |
tcl::obj | aux_convert_from (unsigned int val) |
tcl::obj | aux_convert_from (unsigned char val) |
tcl::obj | aux_convert_from (bool val) |
tcl::obj | aux_convert_from (double val) |
tcl::obj | aux_convert_from (float val) |
tcl::obj | aux_convert_from (const char *val) |
tcl::obj | aux_convert_from (const fstring &val) |
tcl::obj | aux_convert_from (const rutz::value &val) |
template<class T> | |
returnable< T >::type | convert_to (const tcl::obj &obj) |
Convert a tcl::obj to a native c++ object. | |
template<class T> | |
returnable< T >::type | convert_to (Tcl_Obj *obj) |
Convert a tcl::obj to a native c++ object. | |
Tcl_Obj * | aux_convert_to (Tcl_Obj *obj, Tcl_Obj **) |
tcl::obj | aux_convert_to (Tcl_Obj *obj, tcl::obj *) |
template<class T> | |
tcl::obj | convert_from (const T &val) |
Convert a native c++ object to a tcl::obj. | |
tcl::obj | aux_convert_from (Tcl_Obj *val) |
tcl::obj | aux_convert_from (tcl::obj val) |
GVX_DBG_REGISTER tcl::dict | aux_convert_to (Tcl_Obj *obj, tcl::dict *) |
tcl::obj | aux_convert_from (tcl::dict dict_value) |
template<class T> | |
rutz::fwd_iter< T > | aux_convert_to (Tcl_Obj *obj, rutz::fwd_iter< T > *) |
template<class T> | |
tcl::obj | aux_convert_from (rutz::fwd_iter< T > iter) |
GVX_DBG_REGISTER tcl::list | aux_convert_to (Tcl_Obj *obj, tcl::list *) |
tcl::obj | aux_convert_from (tcl::list list_value) |
template<class T> | |
nub::ref< T > | aux_convert_to (Tcl_Obj *obj, nub::ref< T > *) |
Overload of aux_convert_to for nub::ref. | |
template<class T> | |
tcl::obj | aux_convert_from (nub::ref< T > obj) |
Overload of aux_convert_from for nub::ref. | |
template<class T> | |
nub::soft_ref< T > | aux_convert_to (Tcl_Obj *obj, nub::soft_ref< T > *) |
Overload of aux_convert_to for nub::soft_ref. | |
template<class T> | |
tcl::obj | aux_convert_from (nub::soft_ref< T > obj) |
Overload of aux_convert_from for nub::soft_ref. | |
template<class Fptr> | |
func_wrapper< rutz::func_traits< Fptr >::num_args, typename rutz::func_traits< Fptr >::retn_t, typename rutz::functor_of< Fptr >::type > | build_func_wrapper (Fptr f) |
Factory function to make tcl::func_wrapper's from any functor or function ptr. | |
template<class func_wrapper> | |
void | make_generic_command (tcl::interpreter &interp, func_wrapper f, const char *cmd_name, const char *usage, const arg_spec &spec, const rutz::file_pos &src_pos) |
Factory function for tcl::command's from functors. | |
template<class func_wrapper> | |
void | make_generic_vec_command (tcl::interpreter &interp, func_wrapper f, const char *cmd_name, const char *usage, const arg_spec &spec, unsigned int keyarg, const rutz::file_pos &src_pos) |
Factory function for vectorized tcl::command's from functors. | |
template<class Func> | |
void | make_command (tcl::interpreter &interp, Func f, const char *cmd_name, const char *usage, const rutz::file_pos &src_pos) |
Factory function for tcl::command's from function pointers. | |
template<class Func> | |
void | make_vec_command (tcl::interpreter &interp, Func f, const char *cmd_name, const char *usage, unsigned int keyarg, const rutz::file_pos &src_pos) |
Factory function for vectorized tcl::command's from function pointers. | |
void | def_basic_type_cmds (tcl::pkg *pkg, shared_ptr< tcl::obj_caster > caster, const rutz::file_pos &src_pos) |
void | def_basic_type_cmds (pkg *pkg, rutz::shared_ptr< obj_caster > caster, const rutz::file_pos &src_pos) |
template<class C> | |
void | def_basic_type_cmds (pkg *pkg, const rutz::file_pos &src_pos) |
template<class C> | |
void | def_creator (pkg *, const char *alias_name=0) |
tcl::obj | aux_convert_from (std::string s) |
std::string | aux_convert_to (Tcl_Obj *obj, std::string *) |
void | def_tracing (tcl::pkg *pkg, rutz::tracer &t) |
void | use_vec_dispatch (tcl::command &cmd, unsigned int key_argn) |
template<class T> | |
geom::rect< T > | aux_convert_to (Tcl_Obj *obj, geom::rect< T > *) |
Conversion routines for Tcl object to geom::rect. | |
template<class T> | |
tcl::obj | aux_convert_from (const geom::rect< T > &rect) |
Conversion routine for geom::rect to tcl::obj. | |
template<class T> | |
geom::vec2< T > | aux_convert_to (Tcl_Obj *obj, geom::vec2< T > *) |
Conversion routine for Tcl object to geom::vec2. | |
template<class T> | |
tcl::obj | aux_convert_from (const geom::vec2< T > &v) |
Conversion routine for geom::vec2 to tcl::obj. | |
template<class T> | |
geom::vec3< T > | aux_convert_to (Tcl_Obj *obj, geom::vec3< T > *) |
Conversion routine for Tcl object to geom::vec3. | |
template<class T> | |
tcl::obj | aux_convert_from (const geom::vec3< T > &v) |
Conversion routine for geom::vec3 to tcl::obj. | |
tcl::obj | getField (const Field &field, nub::ref< FieldContainer > item) |
void | setField (const Field &field, nub::ref< FieldContainer > item, const tcl::obj &newValue) |
void | defField (tcl::pkg *pkg, const Field &field, const rutz::file_pos &src_pos) |
void | defAllFields (tcl::pkg *pkg, const FieldMap &fieldmap, const rutz::file_pos &src_pos) |
template<class C> | |
void | defFieldContainer (pkg *pkg, const rutz::file_pos &src_pos) |
Variables | |
const int | NO_EXPORT = 1 << 0 |
enum tcl::error_strategy |
Different error-handling strategies for tcl::interpreter::eval().
enum tcl::EventStatus |
tcl::obj tcl::aux_convert_from | ( | nub::soft_ref< T > | obj | ) | [inline] |
Overload of aux_convert_from for nub::soft_ref.
This allows us to pass nub::soft_ref objects to Tcl via the nub::uid's of the referred-to objects.
Definition at line 97 of file makecmd.h.
References nub::soft_ref< T >::id().
nub::soft_ref<T> tcl::aux_convert_to | ( | Tcl_Obj * | obj, | |
nub::soft_ref< T > * | ||||
) | [inline] |
Overload of aux_convert_to for nub::soft_ref.
This allows us to receive nub::soft_ref objects from Tcl via the nub::uid's of the referred-to objects.
tcl::obj tcl::convert_from | ( | const T & | val | ) | [inline] |
Convert a native c++ object to a tcl::obj.
Will select a matching aux_convert_from() overload. NOTE! Due to two-phase name lookup, this convert_from() definition must occur before ALL aux_convert_from() overloads.
Definition at line 149 of file conversions.h.
References aux_convert_from().
Referenced by tcl::list::append(), tcl::interpreter::eval(), FeedbackMap::giveFeedback(), tcl::dict::put(), tcl::script_app::run(), tcl::interpreter::set_result(), tcl::obj_writer::write_bool(), tcl::obj_writer::write_char(), tcl::obj_writer::write_cstring(), tcl::obj_writer::write_double(), tcl::obj_writer::write_int(), and tcl::obj_writer::write_value_obj().
returnable<T>::type tcl::convert_to | ( | Tcl_Obj * | obj | ) | [inline] |
Convert a tcl::obj to a native c++ object.
Will select a matching aux_convert_to() overload. NOTE! Due to two-phase name lookup, this convert_to() definition must occur before ALL aux_convert_to() overloads.
Definition at line 111 of file conversions.h.
References aux_convert_to().
returnable<T>::type tcl::convert_to | ( | const tcl::obj & | obj | ) | [inline] |
Convert a tcl::obj to a native c++ object.
Will select a matching aux_convert_to() overload. NOTE! Due to two-phase name lookup, this convert_to() definition must occur before ALL aux_convert_to() overloads.
Definition at line 101 of file conversions.h.
References aux_convert_to(), and tcl::obj::get().