|
OpenGM
2.3.x
Discrete Graphical Model Library
|
set with O(n) insert and O(1) access More...
#include <randomaccessset.hxx>
Inheritance diagram for opengm::RandomAccessSet< Key, Compare, Alloc >:
Collaboration diagram for opengm::RandomAccessSet< Key, Compare, Alloc >:Public Types | |
| typedef Key | key_type |
| key type of the set More... | |
| typedef Key | ValueType |
| value type of the set More... | |
| typedef Key | value_type |
| value type of the set More... | |
| typedef Compare | key_compare |
| comperator More... | |
| typedef Compare | value_compare |
| value comperator More... | |
| typedef Alloc | allocator_type |
| acclocator More... | |
| typedef Alloc::const_reference | const_reference |
| const reference type More... | |
| typedef VectorType::iterator | iterator |
| iterator type More... | |
| typedef VectorType::const_iterator | const_iterator |
| const iterator type More... | |
| typedef VectorType::size_type | size_type |
| size type More... | |
| typedef VectorType::difference_type | difference_type |
| difference type More... | |
| typedef VectorType::const_pointer | const_pointer |
| const pointer type More... | |
| typedef VectorType::const_reverse_iterator | const_reverse_iterator |
| const reverse iterator More... | |
Public Member Functions | |
| RandomAccessSet (const size_t, const Compare &compare=Compare(), const Alloc &alloc=Alloc()) | |
| constructor More... | |
| RandomAccessSet (const Compare &compare=Compare(), const Alloc &alloc=Alloc()) | |
| constructor More... | |
| template<class InputIterator > | |
| RandomAccessSet (InputIterator, InputIterator, const Compare &compare=Compare(), const Alloc &alloc=Alloc()) | |
| constructor More... | |
| RandomAccessSet (const RandomAccessSet &) | |
| copy constructor More... | |
| RandomAccessSet & | operator= (const RandomAccessSet &) |
| assignment operator More... | |
| const value_type & | operator[] (const size_type) const |
| const access values More... | |
| const_iterator | begin () const |
| const begin iterator More... | |
| const_iterator | end () const |
| const end iterator More... | |
| const_iterator | rbegin () const |
| reverse const begin iterator More... | |
| const_iterator | rend () const |
| reverse const end iterator More... | |
| iterator | begin () |
| begin iterator More... | |
| iterator | end () |
| end iterator More... | |
| iterator | rbegin () |
| reverse begin iterator More... | |
| iterator | rend () |
| reverse end iterator More... | |
| bool | empty () const |
| query if the set is empty More... | |
| size_type | size () const |
| number of elements of the set More... | |
| size_type | max_size () const |
| maximum size of the underlying container More... | |
| std::pair< const_iterator, bool > | insert (const value_type &) |
| template<class InputIterator > | |
| void | insert (InputIterator, InputIterator) |
| insert a sequence of elements More... | |
| const_iterator | insert (const_iterator, const value_type &) |
| void | erase (iterator position) |
| size_type | erase (const key_type &) |
| void | erase (const_iterator, const_iterator) |
| void | swap (RandomAccessSet &) |
| swap random access sets More... | |
| void | clear () |
| clear the set More... | |
| key_compare | key_comp () const |
| key comparator More... | |
| value_compare | value_comp () const |
| value comparator More... | |
| const_iterator | find (const key_type &) const |
| iterator | find (const key_type &) |
| size_type | count (const key_type &) const |
| count elements More... | |
| const_iterator | lower_bound (const key_type &) const |
| const_iterator | upper_bound (const key_type &) const |
| std::pair< const_iterator, const_iterator > | equal_range (const key_type &) const |
| iterator | lower_bound (const key_type &) |
| iterator | upper_bound (const key_type &) |
| std::pair< iterator, iterator > | equal_range (const key_type &) |
| allocator_type | get_allocator () const |
| allocators More... | |
| void | reserve (const size_t size) |
| size_t | capacity () const |
| template<class SET > | |
| void | assignFromSet (const SET &set) |
set with O(n) insert and O(1) access
| Key | key and value type of the set |
| Alloc | allocator of the set RandomAccessSet has the same interface as std::set. In addition, there is operator[]. |
Definition at line 21 of file randomaccessset.hxx.
| typedef Alloc opengm::RandomAccessSet< Key, Compare, Alloc >::allocator_type |
acclocator
Definition at line 39 of file randomaccessset.hxx.
| typedef VectorType::const_iterator opengm::RandomAccessSet< Key, Compare, Alloc >::const_iterator |
const iterator type
Definition at line 45 of file randomaccessset.hxx.
| typedef VectorType::const_pointer opengm::RandomAccessSet< Key, Compare, Alloc >::const_pointer |
const pointer type
Definition at line 51 of file randomaccessset.hxx.
| typedef Alloc::const_reference opengm::RandomAccessSet< Key, Compare, Alloc >::const_reference |
const reference type
Definition at line 41 of file randomaccessset.hxx.
| typedef VectorType::const_reverse_iterator opengm::RandomAccessSet< Key, Compare, Alloc >::const_reverse_iterator |
const reverse iterator
Definition at line 53 of file randomaccessset.hxx.
| typedef VectorType::difference_type opengm::RandomAccessSet< Key, Compare, Alloc >::difference_type |
difference type
Definition at line 49 of file randomaccessset.hxx.
| typedef VectorType::iterator opengm::RandomAccessSet< Key, Compare, Alloc >::iterator |
iterator type
Definition at line 43 of file randomaccessset.hxx.
| typedef Compare opengm::RandomAccessSet< Key, Compare, Alloc >::key_compare |
comperator
Definition at line 35 of file randomaccessset.hxx.
| typedef Key opengm::RandomAccessSet< Key, Compare, Alloc >::key_type |
key type of the set
Definition at line 29 of file randomaccessset.hxx.
| typedef VectorType::size_type opengm::RandomAccessSet< Key, Compare, Alloc >::size_type |
size type
Definition at line 47 of file randomaccessset.hxx.
| typedef Compare opengm::RandomAccessSet< Key, Compare, Alloc >::value_compare |
value comperator
Definition at line 37 of file randomaccessset.hxx.
| typedef Key opengm::RandomAccessSet< Key, Compare, Alloc >::value_type |
value type of the set
Definition at line 33 of file randomaccessset.hxx.
| typedef Key opengm::RandomAccessSet< Key, Compare, Alloc >::ValueType |
value type of the set
Definition at line 31 of file randomaccessset.hxx.
|
inline |
constructor
| reserveSize | reserve /allocate space |
| compare | comperator |
| alloc | allocator |
Definition at line 127 of file randomaccessset.hxx.
|
inline |
constructor
| compare | comperator allocator |
Definition at line 156 of file randomaccessset.hxx.
|
inline |
constructor
| InputIterator | (key/value) input iterator |
| beginInput | |
| endInput |
Definition at line 172 of file randomaccessset.hxx.
|
inline |
copy constructor
| src | other random access set |
Definition at line 192 of file randomaccessset.hxx.
|
inline |
Definition at line 111 of file randomaccessset.hxx.
|
inline |
|
inline |
|
inline |
Definition at line 106 of file randomaccessset.hxx.
|
inline |
|
inline |
count elements
| element |
Definition at line 502 of file randomaccessset.hxx.
|
inline |
|
inline |
|
inline |
| std::pair<const_iterator,const_iterator> opengm::RandomAccessSet< Key, Compare, Alloc >::equal_range | ( | const key_type & | ) | const |
| std::pair<iterator,iterator> opengm::RandomAccessSet< Key, Compare, Alloc >::equal_range | ( | const key_type & | ) |
| void opengm::RandomAccessSet< Key, Compare, Alloc >::erase | ( | iterator | position | ) |
| size_type opengm::RandomAccessSet< Key, Compare, Alloc >::erase | ( | const key_type & | ) |
| void opengm::RandomAccessSet< Key, Compare, Alloc >::erase | ( | const_iterator | , |
| const_iterator | |||
| ) |
| const_iterator opengm::RandomAccessSet< Key, Compare, Alloc >::find | ( | const key_type & | ) | const |
| iterator opengm::RandomAccessSet< Key, Compare, Alloc >::find | ( | const key_type & | ) |
|
inline |
| std::pair< const_iterator,bool> opengm::RandomAccessSet< Key, Compare, Alloc >::insert | ( | const value_type & | ) |
|
inline |
insert a sequence of elements
| first | iterator to the first element |
| last | iterator to the last element |
Definition at line 343 of file randomaccessset.hxx.
| const_iterator opengm::RandomAccessSet< Key, Compare, Alloc >::insert | ( | const_iterator | , |
| const value_type & | |||
| ) |
|
inline |
| const_iterator opengm::RandomAccessSet< Key, Compare, Alloc >::lower_bound | ( | const key_type & | ) | const |
| iterator opengm::RandomAccessSet< Key, Compare, Alloc >::lower_bound | ( | const key_type & | ) |
|
inline |
maximum size of the underlying container
Definition at line 308 of file randomaccessset.hxx.
|
inline |
assignment operator
| src | other random access set |
Definition at line 204 of file randomaccessset.hxx.
|
inline |
const access values
| index | index of the value in the set |
Definition at line 143 of file randomaccessset.hxx.
|
inline |
reverse const begin iterator
Definition at line 236 of file randomaccessset.hxx.
|
inline |
reverse begin iterator
| reverse | begin iterator |
Definition at line 272 of file randomaccessset.hxx.
|
inline |
reverse const end iterator
| reverse | end iterator |
Definition at line 245 of file randomaccessset.hxx.
|
inline |
reverse end iterator
| reverse | end iterator |
Definition at line 281 of file randomaccessset.hxx.
|
inline |
|
inline |
number of elements of the set
Definition at line 299 of file randomaccessset.hxx.
|
inline |
swap random access sets
| rhs | set to swap with |
Definition at line 422 of file randomaccessset.hxx.
| const_iterator opengm::RandomAccessSet< Key, Compare, Alloc >::upper_bound | ( | const key_type & | ) | const |
| iterator opengm::RandomAccessSet< Key, Compare, Alloc >::upper_bound | ( | const key_type & | ) |
|
inline |
1.8.9.1