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

sc_object Class Reference

#include <sc_object.h>

Inheritance diagram for sc_object:

Inheritance graph
[legend]
Collaboration diagram for sc_object:

Collaboration graph
[legend]
List of all members.

Public Methods

const char * name () const
const char * basename () const
void print () const
virtual void print (ostream &os) const
void dump () const
virtual void dump (ostream &os) const
virtual void trace (sc_trace_file *tf) const
virtual const char * kind () const
sc_simcontextsimcontext () const
bool add_attribute (sc_attr_base &)
sc_attr_baseget_attribute (const sc_string &name_)
const sc_attr_baseget_attribute (const sc_string &name_) const
sc_attr_baseremove_attribute (const sc_string &name_)
void remove_all_attributes ()
int num_attributes () const
sc_attr_cltnattr_cltn ()
const sc_attr_cltnattr_cltn () const
sc_object * get_parent () const

Protected Methods

 sc_object ()
 sc_object (const char *nm)
virtual ~sc_object ()

Friends

class sc_object_manager
class sc_process_b

Constructor & Destructor Documentation

sc_object::sc_object   [protected]
 

Definition at line 198 of file sc_object.cpp.

sc_object::sc_object const char *    nm [protected]
 

Definition at line 209 of file sc_object.cpp.

References sc_mempool::allocate(), sc_mempool::release(), sc_enable_name_checking, SC_REPORT_WARNING, strlen(), and sc_string::to_string().

sc_object::~sc_object   [protected, virtual]
 

Definition at line 242 of file sc_object.cpp.

References sc_simcontext::get_object_manager(), sc_simcontext::remove_child_object(), sc_process_b::remove_child_object(), sc_module::remove_child_object(), and sc_object_manager::remove_object().


Member Function Documentation

bool sc_object::add_attribute sc_attr_base  
 

Definition at line 274 of file sc_object.cpp.

References sc_attr_cltn::push_back().

const sc_attr_cltn & sc_object::attr_cltn  
 

Definition at line 342 of file sc_object.cpp.

sc_attr_cltn & sc_object::attr_cltn  
 

Definition at line 335 of file sc_object.cpp.

const char * sc_object::basename  
 

Definition at line 83 of file sc_object.cpp.

References SC_HIERARCHY_CHAR, and strrchr().

Referenced by sc_clock::before_end_of_elaboration().

void sc_object::dump ostream &    os const [virtual]
 

Reimplemented in sc_fifo< T >, sc_signal< T >, sc_signal< bool >, sc_signal< sc_logic >, and sc_signal< sc_lv< W > >.

Definition at line 108 of file sc_object.cpp.

References kind(), and name().

void sc_object::dump  
 

Definition at line 102 of file sc_object.cpp.

const sc_attr_base * sc_object::get_attribute const sc_string   name_ const
 

Definition at line 291 of file sc_object.cpp.

sc_attr_base * sc_object::get_attribute const sc_string   name_
 

Definition at line 284 of file sc_object.cpp.

sc_object* sc_object::get_parent   const [inline]
 

Definition at line 101 of file sc_object.h.

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

Reimplemented in sc_buffer< T >, sc_clock, sc_export< IF >, sc_fifo< T >, sc_mutex, sc_port_base, sc_port< IF, N >, sc_prim_channel, sc_semaphore, sc_signal< T >, sc_signal< bool >, sc_signal< sc_logic >, sc_signal_resolved, sc_signal_rv< W >, sc_module, sc_process_b, sc_method_process, sc_thread_process, sc_cthread_process, and sc_signal< sc_lv< W > >.

Definition at line 76 of file sc_object.h.

Referenced by dump().

const char* sc_object::name   const [inline]
 

Definition at line 63 of file sc_object.h.

Referenced by _scv_get_process_name(), sc_signal< sc_logic >::check_writer(), sc_signal< bool >::check_writer(), sc_signal< T >::check_writer(), sc_signal< sc_logic >::dump(), sc_signal< bool >::dump(), sc_signal< T >::dump(), dump(), sc_fifo< T >::dump(), sc_module::elaboration_done(), sc_report::get_process_name(), sc_export_registry::insert(), sc_export< IF >::operator IF &(), sc_export< IF >::operator->(), sc_module::operator<<(), print(), sc_signal< sc_logic >::register_port(), sc_signal< bool >::register_port(), sc_signal< T >::register_port(), sc_export_registry::remove(), sc_semaphore::report_error(), sc_port_base::report_error(), sc_event_finder::report_error(), sc_clock::report_error(), sc_cthread_cor_fn(), sc_signal< sc_logic >::trace(), sc_signal< bool >::trace(), sc_signal< sc_lv< W > >::trace(), and sc_fifo< T >::trace().

int sc_object::num_attributes  
 

Definition at line 323 of file sc_object.cpp.

References sc_attr_cltn::size().

void sc_object::print ostream &    os const [virtual]
 

Reimplemented in sc_fifo< T >, sc_signal< T >, sc_signal< bool >, sc_signal< sc_logic >, and sc_signal< sc_lv< W > >.

Definition at line 96 of file sc_object.cpp.

References name().

void sc_object::print  
 

Definition at line 90 of file sc_object.cpp.

void sc_object::remove_all_attributes  
 

Definition at line 313 of file sc_object.cpp.

References sc_attr_cltn::remove_all().

sc_attr_base * sc_object::remove_attribute const sc_string   name_
 

Definition at line 301 of file sc_object.cpp.

References sc_attr_cltn::remove().

sc_simcontext* sc_object::simcontext   const [inline]
 

Definition at line 78 of file sc_object.h.

Referenced by sc_module::at_negedge(), sc_module::at_posedge(), sc_module::end_module(), sc_signal< sc_logic >::event(), sc_signal< bool >::event(), sc_signal< sc_lv< W > >::event(), sc_module::halt(), sc_prim_channel::next_trigger(), sc_module::next_trigger(), sc_sensitive_neg::operator()(), sc_sensitive_pos::operator()(), sc_sensitive::operator()(), sc_thread_process::prepare_for_simulation(), sc_clock::sc_clock(), sc_cthread_cor_fn(), sc_export_base::sc_export_base(), sc_module::sc_get_curr_simcontext(), sc_module::sc_module(), sc_module::sc_module_init(), sc_port_base::sc_port_base(), sc_thread_cor_fn(), sc_module::set_stack_size(), sc_prim_channel::timed_out(), sc_module::timed_out(), sc_signal< sc_logic >::update(), sc_signal< bool >::update(), sc_signal< T >::update(), sc_buffer< T >::update(), sc_thread_process::wait(), sc_prim_channel::wait(), sc_module::wait(), sc_module::wait_until(), sc_module::watching(), sc_export_base::~sc_export_base(), sc_module::~sc_module(), and sc_port_base::~sc_port_base().

void sc_object::trace sc_trace_file   tf const [virtual]
 

Reimplemented in sc_fifo< T >, sc_signal< T >, sc_signal< bool >, sc_signal< sc_logic >, and sc_signal< sc_lv< W > >.

Definition at line 265 of file sc_object.cpp.


Friends And Related Function Documentation

friend class sc_object_manager [friend]
 

Definition at line 58 of file sc_object.h.

friend class sc_process_b [friend]
 

Definition at line 59 of file sc_object.h.


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