SystemC  2.3.2
Accellera SystemC proof-of-concept library
sc_core::sc_vector_base Class Referenceabstract

#include <sysc/utils/sc_vector.h>

Inheritance diagram for sc_core::sc_vector_base:
Collaboration diagram for sc_core::sc_vector_base:

Classes

class  context_scope
 

Public Types

typedef sc_vector_element * handle_type
 
typedef std::vector< handle_typestorage_type
 
typedef storage_type::size_type size_type
 
typedef storage_type::difference_type difference_type
 
typedef unsigned phase_cb_mask
 

Public Member Functions

const char * kind () const
 
std::vector< sc_object * > const & get_elements () const
 
size_type size () const
 
void report_empty_bind (const char *kind_, bool dst_range_) const
 
const char * name () const
 
const char * basename () const
 
virtual void print (::std::ostream &os=::std::cout) const
 
virtual void dump (::std::ostream &os=::std::cout) const
 
virtual void trace (sc_trace_file *tf) const
 
sc_simcontextsimcontext () const
 
bool add_attribute (sc_attr_base &)
 
sc_attr_baseget_attribute (const std::string &name_)
 
const sc_attr_baseget_attribute (const std::string &name_) const
 
sc_attr_baseremove_attribute (const std::string &name_)
 
void remove_all_attributes ()
 
int num_attributes () const
 
sc_attr_cltnattr_cltn ()
 
const sc_attr_cltnattr_cltn () const
 
virtual const std::vector< sc_event * > & get_child_events () const
 
virtual const std::vector< sc_object * > & get_child_objects () const
 
sc_objectget_parent () const
 
sc_objectget_parent_object () const
 

Protected Types

typedef storage_type::iterator iterator
 
typedef storage_type::const_iterator const_iterator
 

Protected Member Functions

 sc_vector_base ()
 
 sc_vector_base (const char *prefix)
 
 ~sc_vector_base ()
 
void * at (size_type i)
 
void const * at (size_type i) const
 
void reserve (size_type n)
 
void clear ()
 
void push_back (void *item)
 
void check_index (size_type i) const
 
bool check_init (size_type n) const
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
virtual sc_objectobject_cast (void *) const =0
 
sc_objectimplicit_cast (sc_object *p) const
 
sc_objectimplicit_cast (...) const
 
virtual void add_child_event (sc_event *event_p)
 
virtual void add_child_object (sc_object *object_p)
 
virtual bool remove_child_event (sc_event *event_p)
 
virtual bool remove_child_object (sc_object *object_p)
 
phase_cb_mask register_simulation_phase_callback (phase_cb_mask)
 
phase_cb_mask unregister_simulation_phase_callback (phase_cb_mask)
 

Static Protected Member Functions

static std::string make_name (const char *prefix, size_type index)
 

Friends

template<typename , typename >
class sc_vector_assembly
 
template<typename , typename >
class sc_vector_iter
 

Detailed Description

Definition at line 136 of file sc_vector.h.

Member Typedef Documentation

◆ const_iterator

typedef storage_type::const_iterator sc_core::sc_vector_base::const_iterator
protected

Definition at line 162 of file sc_vector.h.

◆ difference_type

typedef storage_type::difference_type sc_core::sc_vector_base::difference_type

Definition at line 148 of file sc_vector.h.

◆ handle_type

typedef sc_vector_element* sc_core::sc_vector_base::handle_type

Definition at line 145 of file sc_vector.h.

◆ iterator

typedef storage_type::iterator sc_core::sc_vector_base::iterator
protected

Definition at line 161 of file sc_vector.h.

◆ phase_cb_mask

typedef unsigned sc_core::sc_object::phase_cb_mask
inherited

Definition at line 75 of file sc_object.h.

◆ size_type

typedef storage_type::size_type sc_core::sc_vector_base::size_type

Definition at line 147 of file sc_vector.h.

◆ storage_type

Definition at line 146 of file sc_vector.h.

Constructor & Destructor Documentation

◆ sc_vector_base() [1/2]

sc_core::sc_vector_base::sc_vector_base ( )
protected

◆ sc_vector_base() [2/2]

sc_core::sc_vector_base::sc_vector_base ( const char *  prefix)
inlineprotected

Definition at line 166 of file sc_vector.h.

◆ ~sc_vector_base()

sc_core::sc_vector_base::~sc_vector_base ( )
inlineprotected

Definition at line 172 of file sc_vector.h.

Member Function Documentation

◆ add_attribute()

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

◆ add_child_event()

virtual void sc_core::sc_object::add_child_event ( sc_event event_p)
protectedvirtualinherited

◆ add_child_object()

virtual void sc_core::sc_object::add_child_object ( sc_object object_p)
protectedvirtualinherited

Reimplemented in sc_core::sc_process_b.

◆ at() [1/2]

void* sc_core::sc_vector_base::at ( size_type  i)
inlineprotected

Definition at line 175 of file sc_vector.h.

◆ at() [2/2]

void const* sc_core::sc_vector_base::at ( size_type  i) const
inlineprotected

Definition at line 178 of file sc_vector.h.

◆ attr_cltn() [1/2]

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

◆ attr_cltn() [2/2]

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

◆ basename()

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

◆ begin() [1/2]

iterator sc_core::sc_vector_base::begin ( )
inlineprotected

Definition at line 195 of file sc_vector.h.

◆ begin() [2/2]

const_iterator sc_core::sc_vector_base::begin ( ) const
inlineprotected

Definition at line 198 of file sc_vector.h.

◆ check_index()

void sc_core::sc_vector_base::check_index ( size_type  i) const
protected

◆ check_init()

bool sc_core::sc_vector_base::check_init ( size_type  n) const
protected

◆ clear()

void sc_core::sc_vector_base::clear ( )
inlineprotected

Definition at line 184 of file sc_vector.h.

◆ dump()

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

◆ end() [1/2]

iterator sc_core::sc_vector_base::end ( )
inlineprotected

Definition at line 196 of file sc_vector.h.

◆ end() [2/2]

const_iterator sc_core::sc_vector_base::end ( ) const
inlineprotected

Definition at line 199 of file sc_vector.h.

◆ get_attribute() [1/2]

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

◆ get_attribute() [2/2]

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

◆ get_child_events()

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

Definition at line 114 of file sc_object.h.

◆ get_child_objects()

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

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

Definition at line 117 of file sc_object.h.

◆ get_elements()

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

◆ get_parent()

sc_object* sc_core::sc_object::get_parent ( ) const
inherited

◆ get_parent_object()

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

Definition at line 121 of file sc_object.h.

◆ implicit_cast() [1/2]

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

Definition at line 203 of file sc_vector.h.

◆ implicit_cast() [2/2]

sc_object* sc_core::sc_vector_base::implicit_cast (   ...) const
protected

◆ kind()

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

Reimplemented from sc_core::sc_object.

Definition at line 150 of file sc_vector.h.

◆ make_name()

static std::string sc_core::sc_vector_base::make_name ( const char *  prefix,
size_type  index 
)
staticprotected

◆ name()

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

Definition at line 77 of file sc_object.h.

◆ num_attributes()

int sc_core::sc_object::num_attributes ( ) const
inherited

◆ object_cast()

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

Implemented in sc_core::sc_vector< T >.

◆ print()

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

◆ push_back()

void sc_core::sc_vector_base::push_back ( void *  item)
inlineprotected

Definition at line 187 of file sc_vector.h.

◆ register_simulation_phase_callback()

phase_cb_mask sc_core::sc_object::register_simulation_phase_callback ( phase_cb_mask  )
protectedinherited

◆ remove_all_attributes()

void sc_core::sc_object::remove_all_attributes ( )
inherited

◆ remove_attribute()

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

◆ remove_child_event()

virtual bool sc_core::sc_object::remove_child_event ( sc_event event_p)
protectedvirtualinherited

◆ remove_child_object()

virtual bool sc_core::sc_object::remove_child_object ( sc_object object_p)
protectedvirtualinherited

Reimplemented in sc_core::sc_process_b.

◆ report_empty_bind()

void sc_core::sc_vector_base::report_empty_bind ( const char *  kind_,
bool  dst_range_ 
) const

◆ reserve()

void sc_core::sc_vector_base::reserve ( size_type  n)
inlineprotected

Definition at line 181 of file sc_vector.h.

◆ simcontext()

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

Definition at line 91 of file sc_object.h.

◆ size()

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

Definition at line 154 of file sc_vector.h.

◆ trace()

virtual void sc_core::sc_object::trace ( sc_trace_file tf) const
virtualinherited

◆ unregister_simulation_phase_callback()

phase_cb_mask sc_core::sc_object::unregister_simulation_phase_callback ( phase_cb_mask  )
protectedinherited

Friends And Related Function Documentation

◆ sc_vector_assembly

template<typename , typename >
friend class sc_vector_assembly
friend

Definition at line 140 of file sc_vector.h.

◆ sc_vector_iter

template<typename , typename >
friend class sc_vector_iter
friend

Definition at line 141 of file sc_vector.h.


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