gem5 v24.0.0.0
Loading...
Searching...
No Matches
sc_core::sc_vector_base Class Referenceabstract

#include <sc_vector.hh>

Inheritance diagram for sc_core::sc_vector_base:
sc_core::sc_object sc_core::sc_vector< svp_gicv3_comms::gicv3_comms_target_socket<> > sc_core::sc_vector< T >

Public Types

typedef size_t size_type
 

Public Member Functions

 sc_vector_base (const char *_name)
 
virtual const char * kind () const
 
size_type size () const
 
const std::vector< sc_object * > & get_elements () const
 
- Public Member Functions inherited from sc_core::sc_object
const char * name () const
 
const char * basename () 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_objectimplicitCast (sc_object *p) const
 
sc_objectimplicitCast (...) const
 
virtual sc_objectobjectCast (void *) const =0
 
void checkIndex (size_type index) const
 
void forceParent () const
 
void unforceParent () const
 
void reportEmpty (const char *kind_, bool empty_dest) const
 
- Protected Member Functions inherited from sc_core::sc_object
 sc_object ()
 
 sc_object (const char *)
 
 sc_object (const sc_object &)
 
sc_objectoperator= (const sc_object &)
 
virtual ~sc_object ()
 

Protected Attributes

std::vector< void * > objs
 
std::vector< sc_object * > elements
 

Detailed Description

Definition at line 164 of file sc_vector.hh.

Member Typedef Documentation

◆ size_type

Definition at line 167 of file sc_vector.hh.

Constructor & Destructor Documentation

◆ sc_vector_base()

sc_core::sc_vector_base::sc_vector_base ( const char * _name)
inline

Definition at line 169 of file sc_vector.hh.

Member Function Documentation

◆ checkIndex()

void sc_core::sc_vector_base::checkIndex ( size_type index) const
protected

◆ forceParent()

void sc_core::sc_vector_base::forceParent ( ) const
protected

◆ get_elements()

const std::vector< sc_object * > & sc_core::sc_vector_base::get_elements ( ) const

Definition at line 61 of file sc_vector.cc.

References elements, objectCast(), and objs.

◆ implicitCast() [1/2]

sc_object * sc_core::sc_vector_base::implicitCast ( ...) const
inlineprotected

Definition at line 183 of file sc_vector.hh.

References sc_core::sc_object::name(), and SC_REPORT_ERROR.

◆ implicitCast() [2/2]

sc_object * sc_core::sc_vector_base::implicitCast ( sc_object * p) const
inlineprotected

Definition at line 182 of file sc_vector.hh.

Referenced by sc_core::sc_vector< T >::objectCast().

◆ kind()

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

Reimplemented from sc_core::sc_object.

Definition at line 171 of file sc_vector.hh.

Referenced by sc_core::sc_vector< T >::bind(), and sc_core::sc_vector< T >::operator()().

◆ objectCast()

virtual sc_object * sc_core::sc_vector_base::objectCast ( void * ) const
protectedpure virtual

◆ reportEmpty()

void sc_core::sc_vector_base::reportEmpty ( const char * kind_,
bool empty_dest ) const
protected

◆ size()

sc_vector_base::size_type sc_core::sc_vector_base::size ( ) const

◆ unforceParent()

void sc_core::sc_vector_base::unforceParent ( ) const
protected

Definition at line 90 of file sc_vector.cc.

References sc_gem5::popParentObj().

Referenced by sc_core::sc_vector< T >::init().

Member Data Documentation

◆ elements

std::vector<sc_object *> sc_core::sc_vector_base::elements
mutableprotected

Definition at line 180 of file sc_vector.hh.

Referenced by get_elements().

◆ objs


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

Generated on Tue Jun 18 2024 16:24:55 for gem5 by doxygen 1.11.0