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

scv_tr_handle Class Reference

#include <scv_tr.h>

Inheritance diagram for scv_tr_handle:

Inheritance graph
[legend]
Collaboration diagram for scv_tr_handle:

Collaboration graph
[legend]
List of all members.

Public Types

typedef int callback_h
typedef void callback_function (const scv_tr_handle &obj, callback_reason reason, void *user_data_p)
typedef void callback_record_attribute_function (const scv_tr_handle &obj, const char *attribute_name, const scv_extensions_if *exts_p, void *user_data_p)
typedef void callback_relation_function (const scv_tr_handle &transaction_1, const scv_tr_handle &transaction_2, void *user_data_p, scv_tr_relation_handle_t relation_handle)
enum  callback_reason { BEGIN, END, DELETE }

Public Methods

 scv_tr_handle ()
virtual ~scv_tr_handle ()
scv_tr_handle & operator= (const scv_tr_handle &other)
 scv_tr_handle (const scv_tr_handle &other)
void end_transaction ()
template<class T_end> void end_transaction (const scv_tr_handle &t, const T_end &end_attribute_values)
template<class T_end> void end_transaction (const scv_tr_handle &t, const T_end &end_attribute_values, const sc_time &end_sc_time)
template<class T> void record_attribute (const char *attribute_name, const T &attribute_value)
template<class T> void record_attribute (const T &attribute_value)
bool is_valid () const
bool is_active () const
const scv_extensions_ifget_begin_exts_p () const
const scv_extensions_ifget_end_exts_p () const
const scv_extensions_ifget_builtin_exts_p () const
uint64 get_id () 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
bool add_relation (scv_tr_relation_handle_t relation_handle, const scv_tr_handle &other_transaction_handle)
bool add_relation (const char *relation_name, const scv_tr_handle &other_transaction_handle)
const scv_tr_handle * get_immediate_related_transaction (scv_tr_relation_handle_t *relation_handle_p) const
const sc_timeget_begin_sc_time () const
const sc_timeget_end_sc_time () const
const scv_tr_streamget_scv_tr_stream () const
const scv_tr_generator_baseget_scv_tr_generator_base () const

Static Public Methods

callback_h register_class_cb (callback_function *, void *user_data_p=NULL)
callback_h register_record_attribute_cb (callback_record_attribute_function *, void *user_data_p=NULL)
callback_h register_relation_cb (callback_relation_function *, void *user_data_p=NULL)
void remove_callback (callback_h)
void set_debug (int debug)
int get_debug ()

Friends

class scv_tr_generator_base
class scv_tr_generator

Member Typedef Documentation

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

Definition at line 420 of file scv_tr.h.

Referenced by scv_tr_generator_base::_begin_transaction(), scv_tr_generator_base::_end_transaction(), operator=(), register_class_cb(), and ~scv_tr_handle().

typedef int scv_tr_handle::callback_h
 

Definition at line 416 of file scv_tr.h.

Referenced by register_class_cb(), register_record_attribute_cb(), and register_relation_cb().

typedef void scv_tr_handle::callback_record_attribute_function( const scv_tr_handle& obj, const char* attribute_name, const scv_extensions_if* exts_p, void* user_data_p)
 

Definition at line 435 of file scv_tr.h.

Referenced by register_record_attribute_cb().

typedef void scv_tr_handle::callback_relation_function( const scv_tr_handle& transaction_1, const scv_tr_handle& transaction_2, void* user_data_p, scv_tr_relation_handle_t relation_handle)
 

Definition at line 450 of file scv_tr.h.

Referenced by register_relation_cb().


Member Enumeration Documentation

enum scv_tr_handle::callback_reason
 

Enumeration values:
BEGIN 
END 
DELETE 

Definition at line 414 of file scv_tr.h.

Referenced by scv_tr_generator_base::_begin_transaction(), scv_tr_generator_base::_end_transaction(), operator=(), and ~scv_tr_handle().


Constructor & Destructor Documentation

scv_tr_handle::scv_tr_handle  
 

Definition at line 845 of file scv_tr.cpp.

scv_tr_handle::~scv_tr_handle   [virtual]
 

Definition at line 860 of file scv_tr.cpp.

References callback_function, _scv_tr_handle_core::callback_list_p, callback_reason, DELETE, get_id(), _scv_message::message(), and _scv_tr_handle_core::ref_count.

scv_tr_handle::scv_tr_handle const scv_tr_handle &    other
 

Definition at line 987 of file scv_tr.cpp.

References _scv_tr_handle_core_p, get_id(), and _scv_tr_handle_core::ref_count.


Member Function Documentation

bool scv_tr_handle::add_relation const char *    relation_name,
const scv_tr_handle &    other_transaction_handle
[inline]
 

Definition at line 515 of file scv_tr.h.

References add_relation(), and get_scv_tr_stream().

bool scv_tr_handle::add_relation scv_tr_relation_handle_t    relation_handle,
const scv_tr_handle &    other_transaction_handle
 

Definition at line 1181 of file scv_tr.cpp.

References _scv_tr_handle_core::callback_relation_list_p, and scv_tr_relation_handle_t.

Referenced by scv_tr_generator_base::_begin_transaction(), and add_relation().

template<class T_end>
void scv_tr_handle::end_transaction const scv_tr_handle &    t,
const T_end &    end_attribute_values,
const sc_time   end_sc_time
[inline]
 

Definition at line 384 of file scv_tr.h.

References scv_get_const_extensions().

template<class T_end>
void scv_tr_handle::end_transaction const scv_tr_handle &    t,
const T_end &    end_attribute_values
[inline]
 

Definition at line 373 of file scv_tr.h.

References sc_time_stamp(), and scv_get_const_extensions().

void scv_tr_handle::end_transaction   [inline]
 

Definition at line 366 of file scv_tr.h.

References sc_time_stamp().

const scv_extensions_if * scv_tr_handle::get_begin_exts_p  
 

Definition at line 1115 of file scv_tr.cpp.

References _scv_tr_handle_core::begin_exts_p.

const sc_time & scv_tr_handle::get_begin_sc_time  
 

Definition at line 1205 of file scv_tr.cpp.

References _scv_tr_handle_core::begin_sc_time.

const scv_extensions_if* scv_tr_handle::get_builtin_exts_p  
 

int scv_tr_handle::get_debug   [static]
 

Definition at line 1162 of file scv_tr.cpp.

References _scv_tr_handle_core::debug.

const scv_extensions_if * scv_tr_handle::get_end_exts_p  
 

Definition at line 1124 of file scv_tr.cpp.

References _scv_tr_handle_core::end_exts_p.

const sc_time & scv_tr_handle::get_end_sc_time  
 

Definition at line 1230 of file scv_tr.cpp.

References _scv_tr_handle_core::end_sc_time.

uint64 scv_tr_handle::get_id  
 

Definition at line 1133 of file scv_tr.cpp.

References _scv_tr_handle_core::my_id, and sc_dt::uint64.

Referenced by operator=(), scv_tr_handle(), and ~scv_tr_handle().

const scv_tr_handle * scv_tr_handle::get_immediate_related_transaction scv_tr_relation_handle_t   relation_handle_p const
 

Definition at line 1196 of file scv_tr.cpp.

References _scv_tr_handle_core::immediate_other_transaction_handle_p, _scv_tr_handle_core::immediate_relation_handle, and scv_tr_relation_handle_t.

const char * scv_tr_handle::get_name   [virtual]
 

Implements scv_object_if.

Definition at line 1169 of file scv_tr.cpp.

References _scv_tr_handle_core::my_name.

Referenced by print().

const scv_tr_generator_base & scv_tr_handle::get_scv_tr_generator_base  
 

Definition at line 1258 of file scv_tr.cpp.

References _scv_tr_handle_core::my_scv_tr_generator_core_p, and scv_tr_generator_base.

const scv_tr_stream & scv_tr_handle::get_scv_tr_stream  
 

Definition at line 1242 of file scv_tr.cpp.

References _scv_tr_handle_core::my_scv_tr_generator_core_p.

Referenced by add_relation().

bool scv_tr_handle::is_active  
 

Definition at line 1104 of file scv_tr.cpp.

References _scv_tr_handle_core::is_active.

bool scv_tr_handle::is_valid  
 

Definition at line 1093 of file scv_tr.cpp.

References _scv_tr_handle_core::is_valid.

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

Implements scv_object_if.

Definition at line 498 of file scv_tr.h.

scv_tr_handle & scv_tr_handle::operator= const scv_tr_handle &    other
 

Definition at line 914 of file scv_tr.cpp.

References _scv_tr_handle_core_p, callback_function, _scv_tr_handle_core::callback_list_p, callback_reason, DELETE, get_id(), _scv_message::message(), and _scv_tr_handle_core::ref_count.

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

Implements scv_object_if.

Definition at line 1141 of file scv_tr.cpp.

References get_name().

Referenced by show().

template<class T>
void scv_tr_handle::record_attribute const T &    attribute_value [inline]
 

Definition at line 405 of file scv_tr.h.

References scv_get_const_extensions().

template<class T>
void scv_tr_handle::record_attribute const char *    attribute_name,
const T &    attribute_value
[inline]
 

Definition at line 398 of file scv_tr.h.

References scv_get_const_extensions().

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

Definition at line 1032 of file scv_tr.cpp.

References _scv_tr_callback_list, _scv_tr_callback_item_t::callback_fp, callback_function, callback_h, _scv_tr_handle_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().

scv_tr_handle::callback_h scv_tr_handle::register_record_attribute_cb callback_record_attribute_function  ,
void *    user_data_p = NULL
[static]
 

Definition at line 1052 of file scv_tr.cpp.

References _scv_tr_callback_list, _scv_tr_callback_item_t::callback_fp, callback_h, callback_record_attribute_function, _scv_tr_handle_core::callback_record_attribute_list_p, _scv_tr_callback_item_t::id, and _scv_tr_callback_item_t::user_data_p.

Referenced by scv_tr_text_init().

scv_tr_handle::callback_h scv_tr_handle::register_relation_cb callback_relation_function  ,
void *    user_data_p = NULL
[static]
 

Definition at line 1073 of file scv_tr.cpp.

References _scv_tr_callback_list, _scv_tr_callback_item_t::callback_fp, callback_h, callback_relation_function, _scv_tr_handle_core::callback_relation_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_handle::remove_callback callback_h    [static]
 

Definition at line 1274 of file scv_tr.cpp.

References _scv_tr_callback_list, _scv_tr_handle_core::callback_list_p, _scv_tr_handle_core::callback_record_attribute_list_p, and _scv_tr_handle_core::callback_relation_list_p.

void scv_tr_handle::set_debug int    debug [static]
 

Definition at line 1155 of file scv_tr.cpp.

References _scv_tr_handle_core::debug.

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

Reimplemented from scv_object_if.

Definition at line 1148 of file scv_tr.cpp.

References print(), and scv_out.


Friends And Related Function Documentation

friend class scv_tr_generator [friend]
 

Definition at line 547 of file scv_tr.h.

friend class scv_tr_generator_base [friend]
 

Definition at line 546 of file scv_tr.h.

Referenced by get_scv_tr_generator_base().


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