#include <deque2.h>


Public Types | |
| typedef deque2< _Ty, _Alloc > | _Myt | 
| typedef deque< _Ty, _Alloc > | _Mybase | 
Public Member Functions | |
| virtual void | limit (size_type _Limit) | 
| pair< size_type, bool > | position (const _Ty &_Val) const | 
| bool | contains (const _Ty &_Val) const | 
| bool | contains_no (const _Ty &_Val) const | 
| virtual bool | add_if_new (const _Ty &_Val) | 
| operator bool () | |
| void | sort () | 
Static Public Member Functions | |
| static _Myt __cdecl | dyn_create (size_type _Count,...) | 
Related Functions | |
| (Note that these are not member functions.)  | |
| template<class _Ty_a, class _Alloc_a, class _Ty_b, class _Alloc_b> | |
| deque2< _Ty_a, _Alloc_a > & | operator+= (deque2< _Ty_a, _Alloc_a > &container, const deque< _Ty_b, _Alloc_b > &values) | 
| template<class _Ty_a, class _Alloc_a, class _Ty_b, class _Alloc_b> | |
| deque2< _Ty_a, _Alloc_a > & | operator<< (deque2< _Ty_a, _Alloc_a > &container, const deque< _Ty_b, _Alloc_b > &values) | 
This specialisation supports:
| _Ty | element/value type | |
| _Alloc | element/value allocator | 
Definition at line 65 of file deque2.h.
| typedef deque2<_Ty, _Alloc> std::deque2< _Ty, _Alloc >::_Myt | 
| typedef deque<_Ty, _Alloc> std::deque2< _Ty, _Alloc >::_Mybase | 
| virtual void std::deque2< _Ty, _Alloc >::limit | ( | size_type | _Limit | ) |  [inline, virtual] | 
        
| pair<size_type, bool> std::deque2< _Ty, _Alloc >::position | ( | const _Ty & | _Val | ) |  const [inline] | 
        
Brute force evaluation of element index in container. -1 is returned if element is not contained.
| _Val | element to search for | 
Definition at line 93 of file deque2.h.
00096 { 00097 size_type _Index = 0; 00098 for (const_iterator iter = begin(); iter != end(); ++iter, ++_Index) 00099 { 00100 if (*iter == _Val) 00101 { 00102 return pair<size_type, bool>(_Index, true); 00103 } 00104 } 00105 return pair<size_type,bool>(static_cast<size_type>(-1), false); 00106 }
| bool std::deque2< _Ty, _Alloc >::contains | ( | const _Ty & | _Val | ) |  const [inline] | 
        
Brute force test to check whether or not a specific value is contained in the vector.
| _Val | element to check for | 
Definition at line 114 of file deque2.h.
Referenced by std::deque2< std::basic_string >::add_if_new().
| bool std::deque2< _Ty, _Alloc >::contains_no | ( | const _Ty & | _Val | ) |  const [inline] | 
        
Brute force test to check whether or not a specific value is contained in the vector. The inverted result is returned this can be used for map2 values(check_fun_t) to return a unique list.
| _Val | element to check for | 
Definition at line 128 of file deque2.h.
| virtual bool std::deque2< _Ty, _Alloc >::add_if_new | ( | const _Ty & | _Val | ) |  [inline, virtual] | 
        
Add _Val if it is not already contained in the vector Returns wether or not _Val was added
| _Val | element to add | 
Definition at line 141 of file deque2.h.
00144 { 00145 if (!contains(_Val)) 00146 { 00147 push_back(_Val); 00148 return true; 00149 } 00150 return false; 00151 }
| std::deque2< _Ty, _Alloc >::operator bool | ( | ) |  [inline] | 
        
| void std::deque2< _Ty, _Alloc >::sort | ( | ) |  [inline] | 
        
| static _Myt __cdecl std::deque2< _Ty, _Alloc >::dyn_create | ( | size_type | _Count, | |
| ... | ||||
| ) |  [inline, static] | 
        
Dynamic deque creation.
| _Count | number of elemnts to put into deque2 | |
| ... | elements to put into the vector each of type _Ty (_Count times) | 
Definition at line 180 of file deque2.h.
00184 { 00185 _Myt _Deque; 00186 va_list _Args; 00187 00188 va_start(_Args, _Count); 00189 while(_Count--) 00190 { 00191 _Deque.push_back(va_arg(_Args, const _Ty)); 00192 } 00193 va_end(_Args); 00194 return _Deque; 00195 }
| deque2< _Ty_a, _Alloc_a > & operator+= | ( | deque2< _Ty_a, _Alloc_a > & | container, | |
| const deque< _Ty_b, _Alloc_b > & | values | |||
| ) |  [related] | 
        
add (not store) the values of a container to another container
_Ty_b to _Ty_a exists | _Ty_a | element/value type of receiver container | |
| _Alloc_a | element/value allocator of receiver container | |
| _Ty_b | element/value type of input container | |
| _Alloc_b | element/value allocator of input container | |
| container | container that receives th e input values | |
| values | container input values | 
Definition at line 216 of file deque2.h.
00220 { 00221 // NO clear 00222 for (deque2<_Ty_b, _Alloc_b>::const_iterator it = values.begin(); it != values.end(); ++it) 00223 { 00224 container.push_back((_Ty_a)*it); 00225 } 00226 return container; 00227 };
| deque2< _Ty_a, _Alloc_a > & operator<< | ( | deque2< _Ty_a, _Alloc_a > & | container, | |
| const deque< _Ty_b, _Alloc_b > & | values | |||
| ) |  [related] | 
        
store (not add) the values of a container to another containert
_Ty_b to _Ty_a exists | _Ty_a | element/value type of receiver container | |
| _Alloc_a | element/value allocator of receiver container | |
| _Ty_b | element/value type of input container | |
| _Alloc_b | element/value allocator of input container | |
| container | container that receives th e input values | |
| values | container input values | 
Definition at line 247 of file deque2.h.
| Hosted on code.google.com | © Marcus Börger | Generated on Fri Jan 18 21:21:15 2008 for MBO-lib by   1.5.4 |