Backtrackable set.
More...
#include </home/soonhokong/work/dreal4/dreal/util/scoped_unordered_set.h>
|
enum | ActionKind { INSERT
} |
| To backtrack, we need to record the actions applied to this container. More...
|
|
using | UnorderedSetType = std::unordered_set< Key, Hash, KeyEqual, Allocator > |
| Aliases.
|
|
using | key_type = typename UnorderedSetType::key_type |
|
using | value_type = typename UnorderedSetType::value_type |
|
using | size_type = typename UnorderedSetType::size_type |
|
using | const_iterator = typename UnorderedSetType::const_iterator |
|
using | Action = std::tuple< ActionKind, Key > |
|
template<class Key, class Hash = std::hash<Key>, class KeyEqual = std::equal_to<Key>, class Allocator = std::allocator<Key>>
class dreal::ScopedUnorderedSet< Key, Hash, KeyEqual, Allocator >
Backtrackable set.
◆ ActionKind
To backtrack, we need to record the actions applied to this container.
Enumerator |
---|
INSERT | Insert(k) means that k is inserted.
|
◆ begin()
const_iterator begin |
( |
| ) |
const |
|
inline |
Iterators.
- Note
- We only provide 'const' iterators because any modification should be done explicitly via its APIs so that we can keep track of changes and undo when pop() is called.
◆ find()
const_iterator find |
( |
const Key & |
key | ) |
const |
|
inline |
- Note
- It returns 'const' iterator.
The documentation for this class was generated from the following file: