SystemC  2.3.1
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Friends | List of all members
sc_core::sc_vector_base Class Referenceabstract

#include <sysc/utils/sc_vector.h>

Inheritance diagram for sc_core::sc_vector_base:
Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_vector_base:
Collaboration graph
[legend]

Public Types

typedef std::vector< void * > storage_type
 
typedef storage_type::size_type size_type
 
typedef
storage_type::difference_type 
difference_type
 
- Public Types inherited from sc_core::sc_object
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
 
- Public Member Functions inherited from sc_core::sc_object
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
 
- Protected Member Functions inherited from sc_core::sc_object
 sc_object ()
 
 sc_object (const char *nm)
 
 sc_object (const sc_object &)
 
sc_objectoperator= (const sc_object &)
 
virtual ~sc_object ()
 
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 106 of file sc_vector.h.

Member Typedef Documentation

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

Definition at line 131 of file sc_vector.h.

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

Definition at line 117 of file sc_vector.h.

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

Definition at line 130 of file sc_vector.h.

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

Definition at line 116 of file sc_vector.h.

typedef std::vector< void* > sc_core::sc_vector_base::storage_type

Definition at line 115 of file sc_vector.h.

Constructor & Destructor Documentation

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

Definition at line 135 of file sc_vector.h.

sc_core::sc_vector_base::~sc_vector_base ( )
inlineprotected

Definition at line 141 of file sc_vector.h.

Member Function Documentation

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

Definition at line 144 of file sc_vector.h.

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

Definition at line 147 of file sc_vector.h.

iterator sc_core::sc_vector_base::begin ( )
inlineprotected

Definition at line 164 of file sc_vector.h.

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

Definition at line 167 of file sc_vector.h.

void sc_core::sc_vector_base::check_index ( size_type  i) const
protected
bool sc_core::sc_vector_base::check_init ( size_type  n) const
protected
void sc_core::sc_vector_base::clear ( )
inlineprotected

Definition at line 153 of file sc_vector.h.

iterator sc_core::sc_vector_base::end ( )
inlineprotected

Definition at line 165 of file sc_vector.h.

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

Definition at line 168 of file sc_vector.h.

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

Definition at line 172 of file sc_vector.h.

sc_object* sc_core::sc_vector_base::implicit_cast (   ...) const
protected
const char* sc_core::sc_vector_base::kind ( ) const
inlinevirtual

Reimplemented from sc_core::sc_object.

Definition at line 119 of file sc_vector.h.

static std::string sc_core::sc_vector_base::make_name ( const char *  prefix,
size_type  index 
)
staticprotected
virtual sc_object* sc_core::sc_vector_base::object_cast ( void *  ) const
protectedpure virtual

Implemented in sc_core::sc_vector< T >.

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

Definition at line 156 of file sc_vector.h.

void sc_core::sc_vector_base::report_empty_bind ( const char *  kind_,
bool  dst_range_ 
) const
void sc_core::sc_vector_base::reserve ( size_type  n)
inlineprotected

Definition at line 150 of file sc_vector.h.

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

Definition at line 123 of file sc_vector.h.

Friends And Related Function Documentation

template<typename , typename >
friend class sc_vector_assembly
friend

Definition at line 110 of file sc_vector.h.

template<typename , typename >
friend class sc_vector_iter
friend

Definition at line 111 of file sc_vector.h.


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