#include <sc_vector.h>
Public 型 | |
| typedef const T * | const_iterator |
| typedef T * | iterator |
Public メソッド | |
| sc_pvector (int alloc_n=0) | |
| sc_pvector (const sc_pvector< T > &rhs) | |
| ~sc_pvector () | |
| int | 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 変数 | |
| mutable::std::vector< T > | m_vector |
sc_vector.h の 68 行で定義されています。
| typedef const T* sc_core::sc_pvector< T >::const_iterator |
sc_vector.h の 72 行で定義されています。
| typedef T* sc_core::sc_pvector< T >::iterator |
sc_vector.h の 73 行で定義されています。
| sc_core::sc_pvector< T >::sc_pvector | ( | int | alloc_n = 0 |
) | [inline] |
| sc_core::sc_pvector< T >::sc_pvector | ( | const sc_pvector< T > & | rhs | ) | [inline] |
| sc_core::sc_pvector< T >::~sc_pvector | ( | ) | [inline] |
| int sc_core::sc_pvector< T >::size | ( | ) | const [inline] |
| iterator sc_core::sc_pvector< T >::begin | ( | ) | [inline] |
| const_iterator sc_core::sc_pvector< T >::begin | ( | ) | const [inline] |
| iterator sc_core::sc_pvector< T >::end | ( | ) | [inline] |
| const_iterator sc_core::sc_pvector< T >::end | ( | ) | const [inline] |
sc_vector.h の 102 行で定義されています。
00103 { return static_cast<const_iterator> (&ACCESS(m_vector.size()-1)+1); }
| sc_pvector<T>& sc_core::sc_pvector< T >::operator= | ( | const sc_pvector< T > & | rhs | ) | [inline] |
| T& sc_core::sc_pvector< T >::operator[] | ( | unsigned int | i | ) | [inline] |
sc_vector.h の 110 行で定義されています。
00111 { 00112 if ( i >= m_vector.size() ) m_vector.resize(i+1); 00113 return (T&) m_vector.operator [] ( i ); 00114 }
| const T& sc_core::sc_pvector< T >::operator[] | ( | unsigned int | i | ) | const [inline] |
sc_vector.h の 116 行で定義されています。
00117 { 00118 if ( i >= m_vector.size() ) m_vector.resize(i+1); 00119 return (const T&) m_vector.operator [] ( i ); 00120 }
| T& sc_core::sc_pvector< T >::fetch | ( | int | i | ) | [inline] |
| const T& sc_core::sc_pvector< T >::fetch | ( | int | i | ) | const [inline] |
| T* sc_core::sc_pvector< T >::raw_data | ( | ) | [inline] |
| const T* sc_core::sc_pvector< T >::raw_data | ( | ) | const [inline] |
| sc_core::sc_pvector< T >::operator const ::std::vector< T > & | ( | ) | const [inline] |
| void sc_core::sc_pvector< T >::push_back | ( | T | item | ) | [inline] |
| void sc_core::sc_pvector< T >::erase_all | ( | ) | [inline] |
| void sc_core::sc_pvector< T >::sort | ( | CFT | compar | ) | [inline] |
sc_vector.h の 146 行で定義されています。
00147 {qsort( (void*)&m_vector[0], m_vector.size(), sizeof(void*), compar );}
| void sc_core::sc_pvector< T >::put | ( | T | item, | |
| int | i | |||
| ) | [inline] |
| void sc_core::sc_pvector< T >::decr_count | ( | ) | [inline] |
| void sc_core::sc_pvector< T >::decr_count | ( | int | k | ) | [inline] |
mutable ::std::vector<T> sc_core::sc_pvector< T >::m_vector [protected] |
sc_vector.h の 163 行で定義されています。
1.5.6