tcl::obj Class Reference

#include <tcl/obj.h>

List of all members.

Public Member Functions

 obj ()
 Default constructor with a shared and empty Tcl_Obj*.
 obj (Tcl_Obj *obj)
 Construct with a Tcl_Obj*.
 ~obj ()
 Destructor.
 obj (const obj &x)
 Copy constructor.
objoperator= (const obj &x)
 Assignment operator from obj.
objoperator= (Tcl_Obj *x)
 Assignment operator from Tcl_Obj*.
Tcl_Obj * get () const
void append (const tcl::obj &other)
bool is_shared () const
bool is_unique () const
void make_unique () const
const char * tcltype_name () const

Detailed Description

This class acts as a reference counted smart pointer to Tcl_Obj. It manages the reference count of a held Tcl_Obj*, and also defines a conversion operator back to Tcl_Obj* in order to provide access to Tcl_Obj's interface.

Definition at line 56 of file obj.h.


Constructor & Destructor Documentation

tcl::obj::obj (  ) 

Default constructor with a shared and empty Tcl_Obj*.

Definition at line 41 of file obj.cc.

tcl::obj::obj ( Tcl_Obj *  obj  )  [inline]

Construct with a Tcl_Obj*.

Definition at line 63 of file obj.h.

tcl::obj::~obj (  )  [inline]

Destructor.

Definition at line 66 of file obj.h.

tcl::obj::obj ( const obj x  )  [inline]

Copy constructor.

Definition at line 69 of file obj.h.


Member Function Documentation

obj& tcl::obj::operator= ( Tcl_Obj *  x  )  [inline]

Assignment operator from Tcl_Obj*.

Definition at line 82 of file obj.h.

obj& tcl::obj::operator= ( const obj x  )  [inline]

Assignment operator from obj.

Definition at line 76 of file obj.h.


The documentation for this class was generated from the following files:
Generated on Sun May 8 08:44:45 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3