gem5 v24.0.0.0
|
#include <sc_vector.hh>
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_object * | get_parent_object () const |
bool | add_attribute (sc_attr_base &) |
sc_attr_base * | get_attribute (const std::string &) |
sc_attr_base * | remove_attribute (const std::string &) |
void | remove_all_attributes () |
int | num_attributes () const |
sc_attr_cltn & | attr_cltn () |
const sc_attr_cltn & | attr_cltn () const |
sc_simcontext * | simcontext () const |
Protected Member Functions | |
sc_object * | implicitCast (sc_object *p) const |
sc_object * | implicitCast (...) const |
virtual sc_object * | objectCast (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_object & | operator= (const sc_object &) |
virtual | ~sc_object () |
Protected Attributes | |
std::vector< void * > | objs |
std::vector< sc_object * > | elements |
Definition at line 164 of file sc_vector.hh.
typedef size_t sc_core::sc_vector_base::size_type |
Definition at line 167 of file sc_vector.hh.
|
inline |
Definition at line 169 of file sc_vector.hh.
|
protected |
Definition at line 73 of file sc_vector.cc.
References gem5::ccprintf(), sc_core::sc_object::name(), sc_core::sc_abort(), sc_core::SC_ID_OUT_OF_BOUNDS_, SC_REPORT_ERROR, size(), and ss.
Referenced by sc_core::sc_vector< T >::at(), and sc_core::sc_vector< T >::at().
|
protected |
Definition at line 84 of file sc_vector.cc.
References sc_core::sc_object::get_parent_object(), and sc_gem5::pushParentObj().
Referenced by sc_core::sc_vector< T >::init().
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.
|
inlineprotected |
Definition at line 183 of file sc_vector.hh.
References sc_core::sc_object::name(), and SC_REPORT_ERROR.
Definition at line 182 of file sc_vector.hh.
Referenced by sc_core::sc_vector< T >::objectCast().
|
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()().
|
protectedpure virtual |
Implemented in sc_core::sc_vector< T >, and sc_core::sc_vector< svp_gicv3_comms::gicv3_comms_target_socket<> >.
Referenced by get_elements().
|
protected |
Definition at line 96 of file sc_vector.cc.
References sc_core::sc_object::name(), SC_REPORT_WARNING, size(), and ss.
Referenced by sc_core::sc_vector< T >::bind(), and sc_core::sc_vector< T >::operator()().
sc_vector_base::size_type sc_core::sc_vector_base::size | ( | ) | const |
Definition at line 58 of file sc_vector.cc.
References objs.
Referenced by sc_core::sc_vector< T >::bind(), checkIndex(), sc_core::sc_vector< T >::operator()(), and reportEmpty().
|
protected |
Definition at line 90 of file sc_vector.cc.
References sc_gem5::popParentObj().
Referenced by sc_core::sc_vector< T >::init().
|
mutableprotected |
Definition at line 180 of file sc_vector.hh.
Referenced by get_elements().
|
protected |
Definition at line 176 of file sc_vector.hh.
Referenced by sc_core::sc_vector< T >::at(), sc_core::sc_vector< T >::at(), sc_core::sc_vector< T >::begin(), sc_core::sc_vector< T >::begin(), sc_core::sc_vector< T >::cbegin(), sc_core::sc_vector< T >::cend(), sc_core::sc_vector< T >::clear(), sc_core::sc_vector< T >::end(), sc_core::sc_vector< T >::end(), get_elements(), sc_core::sc_vector< T >::init(), sc_core::sc_vector< T >::operator[](), sc_core::sc_vector< T >::operator[](), and size().