Back to index

Private Member Functions | Private Attributes | Friends
tmscm_object_rep Class Reference

#include <object.hpp>

Inheritance diagram for tmscm_object_rep:
Inheritance graph
Collaboration diagram for tmscm_object_rep:
Collaboration graph

List of all members.

Private Member Functions

 tmscm_object_rep (tmscm obj)
 ~tmscm_object_rep ()

Private Attributes

tmscm handle


class object
tmscm object_to_tmscm (object o)
object tmscm_to_object (tmscm obj)
template<typename C , typename A1 >
Ctm_new (const A1 &a1)

Detailed Description

Definition at line 22 of file object.hpp.

Constructor & Destructor Documentation

Definition at line 33 of file object.cpp.

       while (!is_nil (destroy_list)) {
              tmscm  handle= destroy_list->item;
              tmscm_set_car (handle, tmscm_null ());
              while (tmscm_is_pair (tmscm_cdr (handle)) && tmscm_is_null (tmscm_cadr (handle)))
                     tmscm_set_cdr (handle, tmscm_cddr( (handle)) );
              destroy_list= destroy_list->next;
       handle = tmscm_cons ( tmscm_cons (obj, tmscm_null ()), tmscm_car (object_stack) );
       tmscm_set_car (object_stack, handle);

Here is the call graph for this function:

Definition at line 46 of file object.cpp.

       // Be careful: can't call Scheme code from this destructor,
       // because the destructor can be called during garbage collection.
       destroy_list= list<tmscm > ( handle, destroy_list);

Friends And Related Function Documentation

friend class object [friend]

Reimplemented from object_rep.

Definition at line 28 of file object.hpp.

tmscm object_to_tmscm ( object  o) [friend]

Definition at line 34 of file object.hpp.

  tmscm_object_rep *oo = static_cast<tmscm_object_rep*>(o.operator->());
  return tmscm_caar (oo->handle);
  //return tmscm_caar ((tmscm )o->lookup ()); 
template<typename C , typename A1 >
C* tm_new ( const A1 &  a1) [friend]

Definition at line 69 of file fast_alloc.hpp.

  void* ptr= fast_new (sizeof (C));
  (void) new (ptr) C (a1);
  return (C*) ptr;
object tmscm_to_object ( tmscm  obj) [friend]

Definition at line 39 of file object.hpp.

{ return tm_new<tmscm_object_rep> (obj); }

Member Data Documentation

Definition at line 23 of file object.hpp.

The documentation for this class was generated from the following files: