SystemC 3.0.0
Accellera SystemC proof-of-concept library
Public Types | Public Member Functions | Protected Attributes | List of all members
sc_core::sc_pvector< T > Class Template Reference

#include <sysc/utils/sc_pvector.h>

Public Types

typedef const T * const_iterator
 
typedef T * iterator
 

Public Member Functions

 sc_pvector ()
 
 sc_pvector (const sc_pvector< T > &rhs)
 
 ~sc_pvector ()
 
std::size_t size () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
sc_pvector< T > & operator= (const sc_pvector< T > &rhs)
 
T & operator[] (unsigned int i)
 
const T & operator[] (unsigned int i) const
 
T & fetch (int i)
 
const T & fetch (int i) const
 
T * raw_data ()
 
const T * raw_data () const
 
 operator const ::std::vector< T > & () const
 
void push_back (T item)
 
void erase_all ()
 
void sort (CFT compar)
 
void put (T item, int i)
 
void decr_count ()
 
void decr_count (int k)
 

Protected Attributes

mutable ::std::vector< T > m_vector
 

Detailed Description

template<class T>
class sc_core::sc_pvector< T >

Definition at line 52 of file sc_pvector.h.

Member Typedef Documentation

◆ const_iterator

template<class T >
typedef const T* sc_core::sc_pvector< T >::const_iterator

Definition at line 56 of file sc_pvector.h.

◆ iterator

template<class T >
typedef T* sc_core::sc_pvector< T >::iterator

Definition at line 57 of file sc_pvector.h.

Constructor & Destructor Documentation

◆ sc_pvector() [1/2]

template<class T >
sc_core::sc_pvector< T >::sc_pvector ( )
inline

Definition at line 61 of file sc_pvector.h.

◆ sc_pvector() [2/2]

template<class T >
sc_core::sc_pvector< T >::sc_pvector ( const sc_pvector< T > &  rhs)
inline

Definition at line 65 of file sc_pvector.h.

◆ ~sc_pvector()

template<class T >
sc_core::sc_pvector< T >::~sc_pvector ( )
inline

Definition at line 69 of file sc_pvector.h.

Member Function Documentation

◆ begin() [1/2]

template<class T >
iterator sc_core::sc_pvector< T >::begin ( )
inline

Definition at line 77 of file sc_pvector.h.

◆ begin() [2/2]

template<class T >
const_iterator sc_core::sc_pvector< T >::begin ( ) const
inline

Definition at line 80 of file sc_pvector.h.

◆ decr_count() [1/2]

template<class T >
void sc_core::sc_pvector< T >::decr_count ( )
inline

Definition at line 140 of file sc_pvector.h.

◆ decr_count() [2/2]

template<class T >
void sc_core::sc_pvector< T >::decr_count ( int  k)
inline

Definition at line 143 of file sc_pvector.h.

◆ end() [1/2]

template<class T >
iterator sc_core::sc_pvector< T >::end ( )
inline

Definition at line 83 of file sc_pvector.h.

◆ end() [2/2]

template<class T >
const_iterator sc_core::sc_pvector< T >::end ( ) const
inline

Definition at line 86 of file sc_pvector.h.

◆ erase_all()

template<class T >
void sc_core::sc_pvector< T >::erase_all ( )
inline

Definition at line 129 of file sc_pvector.h.

◆ fetch() [1/2]

template<class T >
T & sc_core::sc_pvector< T >::fetch ( int  i)
inline

Definition at line 108 of file sc_pvector.h.

◆ fetch() [2/2]

template<class T >
const T & sc_core::sc_pvector< T >::fetch ( int  i) const
inline

Definition at line 111 of file sc_pvector.h.

◆ operator const ::std::vector< T > &()

template<class T >
sc_core::sc_pvector< T >::operator const ::std::vector< T > & ( ) const
inline

Definition at line 122 of file sc_pvector.h.

◆ operator=()

template<class T >
sc_pvector< T > & sc_core::sc_pvector< T >::operator= ( const sc_pvector< T > &  rhs)
inline

Definition at line 92 of file sc_pvector.h.

◆ operator[]() [1/2]

template<class T >
T & sc_core::sc_pvector< T >::operator[] ( unsigned int  i)
inline

Definition at line 96 of file sc_pvector.h.

◆ operator[]() [2/2]

template<class T >
const T & sc_core::sc_pvector< T >::operator[] ( unsigned int  i) const
inline

Definition at line 102 of file sc_pvector.h.

◆ push_back()

template<class T >
void sc_core::sc_pvector< T >::push_back ( item)
inline

Definition at line 125 of file sc_pvector.h.

◆ put()

template<class T >
void sc_core::sc_pvector< T >::put ( item,
int  i 
)
inline

Definition at line 137 of file sc_pvector.h.

◆ raw_data() [1/2]

template<class T >
T * sc_core::sc_pvector< T >::raw_data ( )
inline

Definition at line 115 of file sc_pvector.h.

◆ raw_data() [2/2]

template<class T >
const T * sc_core::sc_pvector< T >::raw_data ( ) const
inline

Definition at line 118 of file sc_pvector.h.

◆ size()

template<class T >
std::size_t sc_core::sc_pvector< T >::size ( ) const
inline

Definition at line 73 of file sc_pvector.h.

◆ sort()

template<class T >
void sc_core::sc_pvector< T >::sort ( CFT  compar)
inline

Definition at line 132 of file sc_pvector.h.

Member Data Documentation

◆ m_vector

template<class T >
mutable ::std::vector<T> sc_core::sc_pvector< T >::m_vector
protected

Definition at line 149 of file sc_pvector.h.


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