gem5  v21.2.1.1
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sc_core::sc_vector_base Class Referenceabstract

#include <sc_vector.hh>

Inheritance diagram for sc_core::sc_vector_base:
sc_core::sc_object

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 163 of file sc_vector.hh.

Member Typedef Documentation

◆ size_type

Definition at line 166 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 168 of file sc_vector.hh.

Member Function Documentation

◆ checkIndex()

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

Definition at line 90 of file sc_vector.cc.

References sc_gem5::popParentObj().

◆ forceParent()

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

Definition at line 101 of file sc_vector.cc.

◆ get_elements()

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

Definition at line 78 of file sc_vector.cc.

◆ implicitCast() [1/2]

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

◆ implicitCast() [2/2]

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

Definition at line 181 of file sc_vector.hh.

References gem5::MipsISA::p.

◆ kind()

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

Reimplemented from sc_core::sc_object.

Definition at line 170 of file sc_vector.hh.

◆ 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

Definition at line 113 of file sc_vector.cc.

◆ size()

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

Definition at line 75 of file sc_vector.cc.

References gem5::ccprintf(), gem5::MipsISA::index, sc_core::sc_object::name(), and ss.

◆ unforceParent()

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

Definition at line 107 of file sc_vector.cc.

Member Data Documentation

◆ elements

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

Definition at line 179 of file sc_vector.hh.

◆ objs

std::vector<void *> sc_core::sc_vector_base::objs
protected

Definition at line 175 of file sc_vector.hh.


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

Generated on Wed May 4 2022 12:16:39 for gem5 by doxygen 1.8.17