gem5 v25.0.0.1
Loading...
Searching...
No Matches
sc_object Class Reference

#include <sc_object.hh>

Inheritance diagram for sc_object:
tlm_utils::peq_with_cb_and_phase< MultiSocketSimpleSwitchAT > tlm_utils::peq_with_cb_and_phase< sc_gem5::TlmToGem5Bridge< BITWIDTH > > tlm_utils::peq_with_get< tlm::tlm_generic_payload > tlm_utils::peq_with_get< transaction_type > sc_core::sc_export_base sc_core::sc_module sc_core::sc_mutex sc_core::sc_port_base sc_core::sc_prim_channel sc_core::sc_process_b sc_core::sc_semaphore sc_core::sc_vector_base tlm::tlm_analysis_port< T > tlm_utils::peq_with_cb_and_phase< OWNER, TYPES > tlm_utils::peq_with_get< PAYLOAD >

Public Member Functions

const char * name () const
const char * basename () const
virtual const char * kind () const
virtual void print (std::ostream &=std::cout) const
virtual void dump (std::ostream &=std::cout) const
virtual const std::vector< sc_object * > & get_child_objects () const
virtual const std::vector< sc_event * > & get_child_events () const
sc_objectget_parent_object () const
bool add_attribute (sc_attr_base &)
sc_attr_baseget_attribute (const std::string &)
sc_attr_baseremove_attribute (const std::string &)
void remove_all_attributes ()
int num_attributes () const
sc_attr_cltnattr_cltn ()
const sc_attr_cltnattr_cltn () const
sc_simcontextsimcontext () const

Protected Member Functions

 sc_object ()
 sc_object (const char *)
 sc_object (const sc_object &)
sc_objectoperator= (const sc_object &)
virtual ~sc_object ()

Private Attributes

sc_gem5::Object_gem5_object

Friends

class sc_gem5::Object

Detailed Description

Definition at line 50 of file sc_object.hh.

Constructor & Destructor Documentation

◆ sc_object() [1/3]

sc_core::sc_object::sc_object ( )
protected

Definition at line 133 of file sc_object.cc.

◆ sc_object() [2/3]

sc_core::sc_object::sc_object ( const char * name)
protected

Definition at line 138 of file sc_object.cc.

◆ sc_object() [3/3]

sc_core::sc_object::sc_object ( const sc_object & other)
protected

Definition at line 143 of file sc_object.cc.

◆ ~sc_object()

sc_core::sc_object::~sc_object ( )
protectedvirtual

Definition at line 155 of file sc_object.cc.

Member Function Documentation

◆ add_attribute()

bool sc_core::sc_object::add_attribute ( sc_attr_base & attr)

Definition at line 86 of file sc_object.cc.

◆ attr_cltn() [1/2]

sc_attr_cltn & sc_core::sc_object::attr_cltn ( )

Definition at line 116 of file sc_object.cc.

◆ attr_cltn() [2/2]

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

Definition at line 122 of file sc_object.cc.

◆ basename()

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

Definition at line 50 of file sc_object.cc.

◆ dump()

void sc_core::sc_object::dump ( std::ostream & out = std::cout) const
virtual

Definition at line 62 of file sc_object.cc.

◆ get_attribute()

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

Definition at line 92 of file sc_object.cc.

◆ get_child_events()

const std::vector< sc_event * > & sc_core::sc_object::get_child_events ( ) const
virtual

Definition at line 74 of file sc_object.cc.

◆ get_child_objects()

const std::vector< sc_object * > & sc_core::sc_object::get_child_objects ( ) const
virtual

Definition at line 68 of file sc_object.cc.

◆ get_parent_object()

sc_object * sc_core::sc_object::get_parent_object ( ) const

Definition at line 80 of file sc_object.cc.

◆ kind()

virtual const char * sc_core::sc_object::kind ( ) const
inlinevirtual

Definition at line 56 of file sc_object.hh.

◆ name()

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

Definition at line 44 of file sc_object.cc.

◆ num_attributes()

int sc_core::sc_object::num_attributes ( ) const

Definition at line 110 of file sc_object.cc.

◆ operator=()

sc_object & sc_core::sc_object::operator= ( const sc_object & other)
protected

Definition at line 149 of file sc_object.cc.

◆ print()

void sc_core::sc_object::print ( std::ostream & out = std::cout) const
virtual

Definition at line 56 of file sc_object.cc.

◆ remove_all_attributes()

void sc_core::sc_object::remove_all_attributes ( )

Definition at line 104 of file sc_object.cc.

◆ remove_attribute()

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

Definition at line 98 of file sc_object.cc.

◆ simcontext()

sc_simcontext * sc_core::sc_object::simcontext ( ) const

Definition at line 128 of file sc_object.cc.

◆ sc_gem5::Object

friend class sc_gem5::Object
friend

Definition at line 84 of file sc_object.hh.

Member Data Documentation

◆ _gem5_object

sc_gem5::Object* sc_core::sc_object::_gem5_object
private

Definition at line 85 of file sc_object.hh.


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

Generated on Sat Oct 18 2025 08:06:48 for gem5 by doxygen 1.14.0