sc_core::sc_object Class Reference

#include <sysc/kernel/sc_object.h>

Inheritance diagram for sc_core::sc_object:

Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_object:

Collaboration graph
[legend]

List of all members.

Public Member Functions

const char * name () const
 return full name of sc_object
const char * basename () const
 return base name of sc_object (last part)
virtual void print (::std::ostream &os=::std::cout) const
 print object
virtual void dump (::std::ostream &os=::std::cout) const
 dump() is more detailed than print()
virtual void trace (sc_trace_file *tf) const
virtual const char * kind () const
sc_simcontextsimcontext () const
bool add_attribute (sc_attr_base &)
 add attribute
sc_attr_baseget_attribute (const std::string &name_)
 get attribute by name
const sc_attr_baseget_attribute (const std::string &name_) const
 get attribute by name
sc_attr_baseremove_attribute (const std::string &name_)
 remove attribute by name
void remove_all_attributes ()
 remove all attributes
int num_attributes () const
 get the number of attributes
sc_attr_cltnattr_cltn ()
 get the attribute collection
const sc_attr_cltnattr_cltn () const
 get the attribute collection
virtual const std::vector
< sc_object * > & 
get_child_objects () const
 return child objects
sc_objectget_parent () const
 return parent object
sc_objectget_parent_object () const
 return parent object

Protected Member Functions

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

Friends

class sc_object_manager
class sc_module_dynalloc_list
class sc_process_b


Detailed Description

Definition at line 71 of file sc_object.h.


Constructor & Destructor Documentation

sc_core::sc_object::sc_object (  )  [protected]

Definition at line 227 of file sc_object.cpp.

sc_core::sc_object::sc_object ( const char *  nm  )  [protected]

Definition at line 238 of file sc_object.cpp.

sc_core::sc_object::~sc_object (  )  [protected, virtual]

Definition at line 279 of file sc_object.cpp.


Member Function Documentation

const char* sc_core::sc_object::name (  )  const [inline]

return full name of sc_object

Definition at line 80 of file sc_object.h.

const char * sc_core::sc_object::basename (  )  const

return base name of sc_object (last part)

Definition at line 95 of file sc_object.cpp.

void sc_core::sc_object::print ( ::std::ostream &  os = ::std::cout  )  const [virtual]

void sc_core::sc_object::dump ( ::std::ostream &  os = ::std::cout  )  const [virtual]

void sc_core::sc_object::trace ( sc_trace_file tf  )  const [virtual]

virtual const char* sc_core::sc_object::kind (  )  const [inline, virtual]

Reimplemented in sc_core::sc_buffer< T >, sc_core::sc_clock, sc_core::sc_event_queue, sc_core::sc_export< IF >, sc_core::sc_fifo< T >, sc_core::sc_fifo_in< T >, sc_core::sc_fifo_out< T >, sc_core::sc_mutex, sc_core::sc_port_base, sc_core::sc_port< IF, N, P >, sc_core::sc_prim_channel, sc_core::sc_semaphore, sc_core::sc_signal< T >, sc_core::sc_core::sc_signal< bool >, sc_core::sc_core::sc_signal< sc_dt::sc_logic >, sc_core::sc_in< T >, sc_core::sc_core::sc_in< bool >, sc_core::sc_core::sc_in< sc_dt::sc_logic >, sc_core::sc_inout< T >, sc_core::sc_core::sc_inout< bool >, sc_core::sc_core::sc_inout< sc_dt::sc_logic >, sc_core::sc_out< T >, sc_core::sc_signal_resolved, sc_core::sc_in_resolved, sc_core::sc_inout_resolved, sc_core::sc_out_resolved, sc_core::sc_signal_rv< W >, sc_core::sc_in_rv< W >, sc_core::sc_inout_rv< W >, sc_core::sc_out_rv< W >, sc_core::sc_cthread_process, sc_core::sc_method_process, sc_core::sc_module, sc_core::sc_thread_process, sc_core::sc_port< sc_core::sc_signal_inout_if< bool >, 1, SC_ONE_OR_MORE_BOUND >, sc_core::sc_port< sc_core::sc_signal_inout_if< sc_dt::sc_logic >, 1, SC_ONE_OR_MORE_BOUND >, sc_core::sc_port< sc_core::sc_signal_inout_if< T >, 1, SC_ONE_OR_MORE_BOUND >, sc_core::sc_port< sc_core::sc_signal_in_if< T >, 1, SC_ONE_OR_MORE_BOUND >, sc_core::sc_port< sc_core::sc_core::sc_signal_in_if< bool >, 1, SC_ONE_OR_MORE_BOUND >, sc_core::sc_port< sc_core::sc_signal_in_if< sc_dt::sc_lv< W > >, 1, SC_ONE_OR_MORE_BOUND >, sc_core::sc_port< sc_core::sc_fifo_out_if< T >, 0, SC_ONE_OR_MORE_BOUND >, sc_core::sc_port< sc_core::sc_signal_inout_if< sc_dt::sc_lv< W > >, 1, SC_ONE_OR_MORE_BOUND >, sc_core::sc_port< sc_core::sc_fifo_in_if< T >, 0, SC_ONE_OR_MORE_BOUND >, sc_core::sc_port< sc_core::sc_core::sc_signal_in_if< sc_dt::sc_logic >, 1, SC_ONE_OR_MORE_BOUND >, sc_core::sc_signal< sc_dt::sc_lv< W > >, sc_core::sc_in< sc_dt::sc_lv< W > >, and sc_core::sc_inout< sc_dt::sc_lv< W > >.

Definition at line 93 of file sc_object.h.

sc_simcontext* sc_core::sc_object::simcontext (  )  const [inline]

Definition at line 95 of file sc_object.h.

bool sc_core::sc_object::add_attribute ( sc_attr_base attribute_  ) 

add attribute

Definition at line 311 of file sc_object.cpp.

sc_attr_base * sc_core::sc_object::get_attribute ( const std::string &  name_  ) 

get attribute by name

Definition at line 321 of file sc_object.cpp.

const sc_attr_base * sc_core::sc_object::get_attribute ( const std::string &  name_  )  const

get attribute by name

Definition at line 328 of file sc_object.cpp.

sc_attr_base * sc_core::sc_object::remove_attribute ( const std::string &  name_  ) 

remove attribute by name

Definition at line 338 of file sc_object.cpp.

void sc_core::sc_object::remove_all_attributes (  ) 

remove all attributes

Definition at line 350 of file sc_object.cpp.

int sc_core::sc_object::num_attributes (  )  const

get the number of attributes

Definition at line 360 of file sc_object.cpp.

sc_attr_cltn & sc_core::sc_object::attr_cltn (  ) 

get the attribute collection

Definition at line 372 of file sc_object.cpp.

const sc_attr_cltn & sc_core::sc_object::attr_cltn (  )  const

get the attribute collection

Definition at line 379 of file sc_object.cpp.

virtual const std::vector<sc_object*>& sc_core::sc_object::get_child_objects (  )  const [inline, virtual]

return child objects

Reimplemented in sc_core::sc_module, and sc_core::sc_process_b.

Definition at line 121 of file sc_object.h.

sc_object* sc_core::sc_object::get_parent (  )  const [inline]

return parent object

Definition at line 125 of file sc_object.h.

sc_object* sc_core::sc_object::get_parent_object (  )  const [inline]

return parent object

Definition at line 127 of file sc_object.h.


Friends And Related Function Documentation

friend class sc_object_manager [friend]

Definition at line 73 of file sc_object.h.

friend class sc_module_dynalloc_list [friend]

Definition at line 74 of file sc_object.h.

friend class sc_process_b [friend]

Reimplemented in sc_core::sc_module.

Definition at line 75 of file sc_object.h.


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

Generated on Wed Jan 21 15:32:14 2009 for SystemC by  doxygen 1.5.5