lestes::std::readable_dumper Class Reference

#include <dumper.hh>

Inheritance diagram for lestes::std::readable_dumper:

Inheritance graph
[legend]
List of all members.

Public Types

typedef set< srp< object > > set_type

Public Member Functions

virtual void visit_object (ptr< object > o)
virtual void visit_nodump ()
virtual void visit_lint (lint i)
virtual void visit_ulint (ulint i)
virtual void visit_bool (bool i)
virtual void visit_lstring (const lstring &i)
virtual void visit_ucn_string (const ucn_string &i)

Static Public Member Functions

::std::ostream & dump (::std::ostream &output_to, ptr< object > start_at, bool respect_barriers=true)
 Dumps every instance reachable from start_at to given ostream. Returns given ostream.

Protected Member Functions

void gc_mark ()
 Marks the keystone.
void follow (ptr< object > o)
 readable_dumper (::std::ostream &a_stream, bool a_respect_barriers)

Private Attributes

srp< set_typevisited
::std::ostream & stream
ulint uid
 uid, set to zero on creation, only set on demand in uid_get
const bool respect_barriers
 should the dumper respect barriers (see object::dump_barrier)
bool after_barrier

Member Typedef Documentation

typedef set< srp<object> > lestes::std::readable_dumper::set_type


Constructor & Destructor Documentation

lestes::std::readable_dumper::readable_dumper ( ::std::ostream &  a_stream,
bool  a_respect_barriers 
) [protected]


Member Function Documentation

std::ostream & lestes::std::readable_dumper::dump ( ::std::ostream &  output_to,
ptr< object start_at,
bool  respect_barriers = true 
) [static]

Dumps every instance reachable from start_at to given ostream. Returns given ostream.

void lestes::std::readable_dumper::visit_object ( ptr< object o  )  [virtual]

Implements lestes::std::dumper_visitor.

void lestes::std::readable_dumper::visit_nodump (  )  [virtual]

Implements lestes::std::dumper_visitor.

void lestes::std::readable_dumper::visit_lint ( lint  i  )  [virtual]

Implements lestes::std::dumper_visitor.

void lestes::std::readable_dumper::visit_ulint ( ulint  i  )  [virtual]

Implements lestes::std::dumper_visitor.

void lestes::std::readable_dumper::visit_bool ( bool  i  )  [virtual]

Implements lestes::std::dumper_visitor.

void lestes::std::readable_dumper::visit_lstring ( const lstring i  )  [virtual]

Implements lestes::std::dumper_visitor.

void lestes::std::readable_dumper::visit_ucn_string ( const ucn_string i  )  [virtual]

Implements lestes::std::dumper_visitor.

void lestes::std::readable_dumper::gc_mark ( void   )  [protected, virtual]

Marks the keystone.

Marks all directly reachable parts of the class. The method must be overriden for each inherited class. It should contain abc.gc_mark() for each field abc of the inherited class and call to gc_mark() of the direct ancestor of the class. Does nothing for keystone, only stops processing of ancestors.

Reimplemented from lestes::std::mem::keystone.

void lestes::std::readable_dumper::follow ( ptr< object o  )  [protected]


Member Data Documentation

srp<set_type> lestes::std::readable_dumper::visited [private]

::std::ostream& lestes::std::readable_dumper::stream [private]

ulint lestes::std::readable_dumper::uid [private]

uid, set to zero on creation, only set on demand in uid_get

Reimplemented from lestes::std::object.

const bool lestes::std::readable_dumper::respect_barriers [private]

should the dumper respect barriers (see object::dump_barrier)

bool lestes::std::readable_dumper::after_barrier [private]


The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:49:47 2007 for lestes by doxygen 1.5.1-20070107