#include <vector.h>
Inheritance diagram for gslib::static_container::vector< Value, MaxSize >:


Public Types | |
| typedef boost::call_traits< Value >::param_type | param_type |
| typedef pointer | iterator |
| typedef const_pointer | const_iterator |
Public Member Functions | |
| BOOST_STATIC_CONSTANT (size_type, const_max=MaxSize) | |
| 最大サイズ | |
| size_type | size () const |
| サイズ取得 | |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| void | push_back (param_type v) |
| 末尾に対する要素追加 | |
| void | pop_back () |
| 末尾要素削除 | |
| vector () | |
| デフォルトコンストラクタ | |
| vector (size_type s) | |
| 各要素に対しては、デフォルトコンストラクタを呼び出す | |
| vector (size_type s, param_type v) | |
| 各要素に対しては、コピーコンストラクタを呼び出す | |
| vector (const vector &other) | |
| コピーコンストラクタ | |
| ~vector () | |
| vector & | operator= (const vector &other) |
| 代入演算子 | |
| template<typename InputIt> void | assign (InputIt first, InputIt last) |
| 代入 | |
| void | erase (iterator it) |
| it を削除します | |
| void | erase (iterator first, iterator last) |
| 現在、非常に重い動作です。 要望があれば高速化します。 | |
| void | clear () |
| 空ベクトル化 | |
| Value & | operator[] (size_type i) |
| const Value & | operator[] (size_type i) const |
| bool | empty () const |
| reference | at (size_type i) |
| param_type | at (size_type i) const |
| reference | front () |
| param_type | front () const |
| reference | back () |
| param_type | back () const |
| void | swap (vector &other) |
| 置換 | |
| void | assign (param_type value) |
Static Public Member Functions | |
| size_type | max_size () |
| 最大サイズ取得 | |
| size_type | capaciry () |
| 容量取得 | |
Private Member Functions | |
| pointer | top () |
| 実装用。 先頭要素のアドレスを得る | |
| const_pointer | top () const |
| 実装用。 先頭要素のアドレスを得る | |
Static Private Member Functions | |
| void | destruct (reference v) |
Private Attributes | |
| size_type | size_ |
| uint8_t | buffer_ [MaxSize *sizeof(Value)] |
Definition at line 85 of file vector.h.
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||||||
|
デフォルトコンストラクタ
Definition at line 141 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::size_.
00141 : size_( 0 ) { 00142 } |
|
||||||||||
|
各要素に対しては、デフォルトコンストラクタを呼び出す
Definition at line 148 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::max_size(), gslib::static_container::vector< Value, MaxSize >::size_, and STATIC_VECTOR_FOREACH.
00148 : size_( s ) { 00149 BOOST_ASSERT( s <= max_size() ); 00150 STATIC_VECTOR_FOREACH( new( it ) Value() ) 00151 } |
Here is the call graph for this function:

|
||||||||||||||||
|
各要素に対しては、コピーコンストラクタを呼び出す
Definition at line 156 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::max_size(), gslib::static_container::vector< Value, MaxSize >::size_, and STATIC_VECTOR_FOREACH.
00156 : size_( s ) { 00157 BOOST_ASSERT( s <= max_size() ); 00158 STATIC_VECTOR_FOREACH( new( it ) Value( v ) ) 00159 } |
Here is the call graph for this function:

|
||||||||||
|
コピーコンストラクタ
Definition at line 161 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::begin(), gslib::static_container::vector< Value, MaxSize >::size_, and STATIC_VECTOR_FOREACH.
00161 : size_( other.size_ ) { 00162 const_iterator otherIt = other.begin(); 00163 STATIC_VECTOR_FOREACH( new( it ) Value( *( otherIt++ ) ) ) 00164 } |
Here is the call graph for this function:

|
|||||||||
|
Definition at line 166 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::clear().
00166 {
00167 clear();
00168 }
|
Here is the call graph for this function:

|
||||||||||
|
Definition at line 241 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::begin(), and gslib::static_container::vector< Value, MaxSize >::size().
|
Here is the call graph for this function:

|
||||||||||||||||||||
|
代入
Definition at line 179 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::begin(), gslib::static_container::vector< Value, MaxSize >::clear(), and gslib::static_container::vector< Value, MaxSize >::size_. Referenced by gslib::static_container::vector< Value, MaxSize >::operator=().
|
Here is the call graph for this function:

|
||||||||||
|
Definition at line 227 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::operator[]().
00227 { return operator [] ( i ); }
|
Here is the call graph for this function:

|
||||||||||
|
Definition at line 226 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::operator[]().
00226 { return operator [] ( i ); }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 233 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::end().
00233 { return *( end() - 1 ); }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 232 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::end().
00232 { return *( end() - 1 ); }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 122 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::top().
00122 { return reinterpret_cast< const_iterator >( top() ); }
|
Here is the call graph for this function:

|
|||||||||
Here is the call graph for this function:

|
||||||||||||||||
|
最大サイズ
|
|
|||||||||
|
容量取得
Definition at line 116 of file vector.h.
00116 { return const_max; }
|
|
|||||||||
Here is the call graph for this function:

|
||||||||||
|
Definition at line 95 of file vector.h. Referenced by gslib::static_container::vector< Value, MaxSize >::clear(), and gslib::static_container::vector< Value, MaxSize >::pop_back().
00095 {
00096 static_container::destruct< Value >( v );
00097 }
|
|
|||||||||
|
Definition at line 223 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::size(). Referenced by gslib::static_container::vector< Value, MaxSize >::pop_back().
00223 {
00224 return 0 == size();
00225 }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 124 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::begin(), and gslib::static_container::vector< Value, MaxSize >::size().
|
Here is the call graph for this function:

|
|||||||||
Here is the call graph for this function:

|
||||||||||||||||
|
現在、非常に重い動作です。 要望があれば高速化します。
Definition at line 199 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::end(), and gslib::static_container::vector< Value, MaxSize >::pop_back().
|
Here is the call graph for this function:

|
||||||||||
|
it を削除します
Definition at line 189 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::end(), and gslib::static_container::vector< Value, MaxSize >::pop_back().
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 231 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::begin().
00231 { return *begin(); }
|
Here is the call graph for this function:

|
|||||||||
|
Definition at line 230 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::begin().
00230 { return *begin(); }
|
Here is the call graph for this function:

|
|||||||||
|
最大サイズ取得
Definition at line 113 of file vector.h. Referenced by gslib::static_container::vector< Value, MaxSize >::push_back(), and gslib::static_container::vector< Value, MaxSize >::vector().
00113 { return const_max; }
|
|
||||||||||
|
代入演算子
Definition at line 170 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::assign(), gslib::static_container::vector< Value, MaxSize >::begin(), and gslib::static_container::vector< Value, MaxSize >::end().
00170 {
00171 if ( this != &other ) {
00172 assign( other.begin(), other.end() );
00173 }
00174 return *this;
00175 }
|
Here is the call graph for this function:

|
||||||||||
|
Definition at line 219 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::begin(), and gslib::static_container::vector< Value, MaxSize >::size().
|
Here is the call graph for this function:

|
||||||||||
|
Definition at line 215 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::begin(), and gslib::static_container::vector< Value, MaxSize >::size(). Referenced by gslib::static_container::vector< Value, MaxSize >::at().
|
Here is the call graph for this function:

|
|||||||||
Here is the call graph for this function:

|
||||||||||
|
末尾に対する要素追加
Definition at line 127 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::max_size(), gslib::static_container::vector< Value, MaxSize >::size(), gslib::static_container::vector< Value, MaxSize >::size_, and gslib::static_container::vector< Value, MaxSize >::top().
|
Here is the call graph for this function:

|
|||||||||
|
||||||||||
|
置換
Definition at line 236 of file vector.h. References gslib::static_container::vector< Value, MaxSize >::begin(), and gslib::static_container::vector< Value, MaxSize >::end().
|
Here is the call graph for this function:

|
|||||||||
|
実装用。 先頭要素のアドレスを得る
Definition at line 105 of file vector.h.
00105 {
00106 return reinterpret_cast< const_pointer >( buffer_ );
00107 }
|
|
|||||||||
|
実装用。 先頭要素のアドレスを得る
Definition at line 100 of file vector.h. Referenced by gslib::static_container::vector< Value, MaxSize >::begin(), gslib::static_container::vector< Value, MaxSize >::pop_back(), and gslib::static_container::vector< Value, MaxSize >::push_back().
00100 {
00101 return reinterpret_cast< pointer >( buffer_ );
00102 }
|
|
|||||
|
|
|
|||||
1.3.6