SystemC  Recoding Infrastructure for SystemC v0.6.0 derived from Accellera SystemC 2.3.1
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
sc_core::sc_vector< T > Class Template Reference

#include <sysc/utils/sc_vector.h>

Inheritance diagram for sc_core::sc_vector< T >:
Inheritance graph
[legend]
Collaboration diagram for sc_core::sc_vector< T >:
Collaboration graph
[legend]

Public Types

typedef T element_type
 
typedef sc_vector_iter
< element_type
iterator
 
typedef sc_vector_iter< const
element_type
const_iterator
 
- Public Types inherited from sc_core::sc_vector_base
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

 sc_vector ()
 
 sc_vector (const char *prefix)
 
 sc_vector (const char *prefix, size_type n)
 
template<typename Creator >
 sc_vector (const char *prefix, size_type n, Creator creator)
 
virtual ~sc_vector ()
 
element_typeoperator[] (size_type i)
 
element_typeat (size_type i)
 
const element_typeoperator[] (size_type i) const
 
const element_typeat (size_type i) const
 
void init (size_type n)
 
template<typename Creator >
void init (size_type n, Creator c)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
const_iterator cbegin () const
 
const_iterator cend () const
 
template<typename ContainerType , typename ArgumentType >
iterator bind (sc_vector_assembly< ContainerType, ArgumentType > c)
 
template<typename BindableContainer >
iterator bind (BindableContainer &c)
 
template<typename BindableIterator >
iterator bind (BindableIterator first, BindableIterator last)
 
template<typename BindableIterator >
iterator bind (BindableIterator first, BindableIterator last, iterator from)
 
template<typename ContainerType , typename ArgumentType >
iterator operator() (sc_vector_assembly< ContainerType, ArgumentType > c)
 
template<typename ArgumentContainer >
iterator operator() (ArgumentContainer &c)
 
template<typename ArgumentIterator >
iterator operator() (ArgumentIterator first, ArgumentIterator last)
 
template<typename ArgumentIterator >
iterator operator() (ArgumentIterator first, ArgumentIterator last, iterator from)
 
template<typename MT >
sc_vector_assembly< T, MT > assemble (MT(T::*member_ptr))
 
- Public Member Functions inherited from sc_core::sc_vector_base
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
 

Static Public Member Functions

static element_typecreate_element (const char *prefix, size_type index)
 

Protected Member Functions

void clear ()
 
virtual sc_objectobject_cast (void *p) const
 
- Protected Member Functions inherited from sc_core::sc_vector_base
 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
 
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)
 

Additional Inherited Members

- Protected Types inherited from sc_core::sc_vector_base
typedef storage_type::iterator iterator
 
typedef
storage_type::const_iterator 
const_iterator
 
- Static Protected Member Functions inherited from sc_core::sc_vector_base
static std::string make_name (const char *prefix, size_type index)
 

Detailed Description

template<typename T>
class sc_core::sc_vector< T >

Definition at line 86 of file sc_vector.h.

Member Typedef Documentation

template<typename T >
typedef sc_vector_iter< const element_type > sc_core::sc_vector< T >::const_iterator

Definition at line 362 of file sc_vector.h.

template<typename T >
typedef T sc_core::sc_vector< T >::element_type

Definition at line 360 of file sc_vector.h.

template<typename T >
typedef sc_vector_iter< element_type > sc_core::sc_vector< T >::iterator

Definition at line 361 of file sc_vector.h.

Constructor & Destructor Documentation

template<typename T >
sc_core::sc_vector< T >::sc_vector ( )
inline

Definition at line 364 of file sc_vector.h.

template<typename T >
sc_core::sc_vector< T >::sc_vector ( const char *  prefix)
inlineexplicit

Definition at line 366 of file sc_vector.h.

template<typename T >
sc_core::sc_vector< T >::sc_vector ( const char *  prefix,
size_type  n 
)
inlineexplicit

Definition at line 370 of file sc_vector.h.

template<typename T >
template<typename Creator >
sc_core::sc_vector< T >::sc_vector ( const char *  prefix,
size_type  n,
Creator  creator 
)
inline

Definition at line 375 of file sc_vector.h.

template<typename T >
sc_core::sc_vector< T >::~sc_vector ( )
virtual

Definition at line 694 of file sc_vector.h.

Member Function Documentation

template<typename T >
template<typename MT >
sc_vector_assembly<T,MT> sc_core::sc_vector< T >::assemble ( MT T::*  member_ptr)
inline

Definition at line 449 of file sc_vector.h.

template<typename T >
element_type& sc_core::sc_vector< T >::at ( size_type  i)
inline

Definition at line 386 of file sc_vector.h.

template<typename T >
const element_type& sc_core::sc_vector< T >::at ( size_type  i) const
inline

Definition at line 392 of file sc_vector.h.

template<typename T >
iterator sc_core::sc_vector< T >::begin ( )
inline

Definition at line 403 of file sc_vector.h.

template<typename T >
const_iterator sc_core::sc_vector< T >::begin ( ) const
inline

Definition at line 406 of file sc_vector.h.

template<typename T >
template<typename ContainerType , typename ArgumentType >
iterator sc_core::sc_vector< T >::bind ( sc_vector_assembly< ContainerType, ArgumentType >  c)
inline

Definition at line 413 of file sc_vector.h.

template<typename T >
template<typename BindableContainer >
iterator sc_core::sc_vector< T >::bind ( BindableContainer &  c)
inline

Definition at line 417 of file sc_vector.h.

template<typename T >
template<typename BindableIterator >
iterator sc_core::sc_vector< T >::bind ( BindableIterator  first,
BindableIterator  last 
)
inline

Definition at line 421 of file sc_vector.h.

template<typename T >
template<typename BindableIterator >
iterator sc_core::sc_vector< T >::bind ( BindableIterator  first,
BindableIterator  last,
iterator  from 
)
inline

Definition at line 425 of file sc_vector.h.

template<typename T >
const_iterator sc_core::sc_vector< T >::cbegin ( ) const
inline

Definition at line 409 of file sc_vector.h.

template<typename T >
const_iterator sc_core::sc_vector< T >::cend ( ) const
inline

Definition at line 410 of file sc_vector.h.

template<typename T >
void sc_core::sc_vector< T >::clear ( )
protected

Definition at line 648 of file sc_vector.h.

template<typename T >
sc_vector< T >::element_type * sc_core::sc_vector< T >::create_element ( const char *  prefix,
size_type  index 
)
static

Definition at line 613 of file sc_vector.h.

template<typename T >
iterator sc_core::sc_vector< T >::end ( )
inline

Definition at line 404 of file sc_vector.h.

template<typename T >
const_iterator sc_core::sc_vector< T >::end ( ) const
inline

Definition at line 407 of file sc_vector.h.

template<typename T >
void sc_core::sc_vector< T >::init ( size_type  n)
inline

Definition at line 395 of file sc_vector.h.

template<typename T >
template<typename Creator >
void sc_core::sc_vector< T >::init ( size_type  n,
Creator  c 
)

Definition at line 621 of file sc_vector.h.

template<typename T >
virtual sc_object* sc_core::sc_vector< T >::object_cast ( void *  p) const
inlineprotectedvirtual

Implements sc_core::sc_vector_base.

Definition at line 456 of file sc_vector.h.

template<typename T >
template<typename ContainerType , typename ArgumentType >
iterator sc_core::sc_vector< T >::operator() ( sc_vector_assembly< ContainerType, ArgumentType >  c)
inline

Definition at line 430 of file sc_vector.h.

template<typename T >
template<typename ArgumentContainer >
iterator sc_core::sc_vector< T >::operator() ( ArgumentContainer &  c)
inline

Definition at line 434 of file sc_vector.h.

template<typename T >
template<typename ArgumentIterator >
iterator sc_core::sc_vector< T >::operator() ( ArgumentIterator  first,
ArgumentIterator  last 
)
inline

Definition at line 438 of file sc_vector.h.

template<typename T >
template<typename ArgumentIterator >
iterator sc_core::sc_vector< T >::operator() ( ArgumentIterator  first,
ArgumentIterator  last,
iterator  from 
)
inline

Definition at line 442 of file sc_vector.h.

template<typename T >
element_type& sc_core::sc_vector< T >::operator[] ( size_type  i)
inline

Definition at line 383 of file sc_vector.h.

template<typename T >
const element_type& sc_core::sc_vector< T >::operator[] ( size_type  i) const
inline

Definition at line 389 of file sc_vector.h.


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