Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

scv_tr_db Class Reference

#include <scv_tr.h>

Inheritance diagram for scv_tr_db:

Inheritance graph
[legend]
Collaboration diagram for scv_tr_db:

Collaboration graph
[legend]
List of all members.

Public Types

typedef int callback_h
typedef void callback_function (const scv_tr_db &obj, callback_reason reason, void *user_data_p)
enum  callback_reason { CREATE, DELETE, SUSPEND, RESUME }

Public Methods

 scv_tr_db (const char *recording_file_name, const sc_time_unit &=SC_FS)
virtual ~scv_tr_db ()
void set_recording (bool) const
bool get_recording () const
void print (ostream &o, int details=0, int indent=0) const
void show (int details=0, int indent=0) const
const char * get_name () const
const char * kind () const
scv_tr_relation_handle_t create_relation (const char *relation_name) const
const char * get_relation_name (scv_tr_relation_handle_t relation_handle) const

Static Public Methods

void set_default_db (scv_tr_db *)
scv_tr_db * get_default_db ()
callback_h register_class_cb (callback_function *, void *user_data_p=NULL)
void remove_callback (callback_h)
void set_debug (int debug)
int get_debug ()

Friends

class scv_tr_stream

Member Typedef Documentation

typedef void scv_tr_db::callback_function( const scv_tr_db& obj, callback_reason reason, void* user_data_p)
 

Definition at line 193 of file scv_tr.h.

Referenced by register_class_cb(), scv_tr_db(), and ~scv_tr_db().

typedef int scv_tr_db::callback_h
 

Definition at line 189 of file scv_tr.h.

Referenced by scv_tr_generator_base::register_class_cb(), and register_class_cb().


Member Enumeration Documentation

enum scv_tr_db::callback_reason
 

Enumeration values:
CREATE 
DELETE 
SUSPEND 
RESUME 

Definition at line 187 of file scv_tr.h.

Referenced by scv_tr_db(), and ~scv_tr_db().


Constructor & Destructor Documentation

scv_tr_db::scv_tr_db const char *    recording_file_name,
const sc_time_unit   = SC_FS
 

Definition at line 503 of file scv_tr.cpp.

References callback_function, _scv_tr_db_core::callback_list_p, callback_reason, CREATE, _scv_tr_db_core::default_scv_tr_db_p, get_debug(), _scv_tr_db_core::my_scv_tr_db_p, and sc_time_unit.

scv_tr_db::~scv_tr_db   [virtual]
 

Definition at line 540 of file scv_tr.cpp.

References callback_function, _scv_tr_db_core::callback_list_p, callback_reason, _scv_tr_db_core::default_scv_tr_db_p, DELETE, get_debug(), and get_name().


Member Function Documentation

scv_tr_relation_handle_t scv_tr_db::create_relation const char *    relation_name const
 

Definition at line 1556 of file scv_tr.cpp.

References _scv_tr_db_core::relation_by_handle_map, _scv_tr_db_core::relation_by_name_map, _scv_tr_db_core::relation_handle_counter, and scv_tr_relation_handle_t.

int scv_tr_db::get_debug   [static]
 

Definition at line 645 of file scv_tr.cpp.

References _scv_tr_db_core::debug.

Referenced by scv_tr_db(), and ~scv_tr_db().

scv_tr_db * scv_tr_db::get_default_db   [static]
 

Definition at line 597 of file scv_tr.cpp.

References _scv_tr_db_core::default_scv_tr_db_p.

const char * scv_tr_db::get_name   [virtual]
 

Implements scv_object_if.

Definition at line 652 of file scv_tr.cpp.

References _scv_tr_db_core::my_name.

Referenced by print(), and ~scv_tr_db().

bool scv_tr_db::get_recording  
 

Definition at line 613 of file scv_tr.cpp.

References _scv_tr_db_core::state.

const char * scv_tr_db::get_relation_name scv_tr_relation_handle_t    relation_handle const
 

Definition at line 1577 of file scv_tr.cpp.

References scv_tr_relation_handle_t.

const char* scv_tr_db::kind   const [inline, virtual]
 

Implements scv_object_if.

Definition at line 222 of file scv_tr.h.

void scv_tr_db::print ostream &    o,
int    details = 0,
int    indent = 0
const [virtual]
 

Implements scv_object_if.

Definition at line 622 of file scv_tr.cpp.

References get_name().

Referenced by show().

scv_tr_db::callback_h scv_tr_db::register_class_cb callback_function  ,
void *    user_data_p = NULL
[static]
 

Definition at line 570 of file scv_tr.cpp.

References _scv_tr_callback_list, _scv_tr_callback_item_t::callback_fp, callback_function, callback_h, _scv_tr_db_core::callback_list_p, _scv_tr_callback_item_t::id, and _scv_tr_callback_item_t::user_data_p.

Referenced by scv_tr_text_init().

void scv_tr_db::remove_callback callback_h    [static]
 

Definition at line 666 of file scv_tr.cpp.

References _scv_tr_callback_list, and _scv_tr_db_core::callback_list_p.

void scv_tr_db::set_debug int    debug [static]
 

Definition at line 636 of file scv_tr.cpp.

References _scv_tr_db_core::debug, scv_debug::RECORDING, and scv_debug::set_facility_level().

void scv_tr_db::set_default_db scv_tr_db *    [static]
 

Definition at line 590 of file scv_tr.cpp.

References _scv_tr_db_core::default_scv_tr_db_p.

void scv_tr_db::set_recording bool    const
 

Definition at line 604 of file scv_tr.cpp.

References _scv_tr_db_core::state.

void scv_tr_db::show int    details = 0,
int    indent = 0
const [virtual]
 

Reimplemented from scv_object_if.

Definition at line 629 of file scv_tr.cpp.

References print(), and scv_out.


Friends And Related Function Documentation

friend class scv_tr_stream [friend]
 

Definition at line 239 of file scv_tr.h.


The documentation for this class was generated from the following files:
Generated on Fri Jan 14 08:32:22 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18