ORIGINAL
|
Implementation of set containers with different underlying data structures. More...
#include "allocator.h"
#include "couple.h"
#include "hash.h"
#include "hashTable.h"
#include "set.h"
#include "ownerPtr.h"
#include "comparator.h"
#include "RBTree.h"
#include "skipList.h"
Go to the source code of this file.
Classes | |
class | original::hashSet< TYPE, HASH, ALLOC > |
Hash table based implementation of the set interface. More... | |
class | original::hashSet< TYPE, HASH, ALLOC >::Iterator |
Forward iterator for hashSet. More... | |
class | original::treeSet< TYPE, Compare, ALLOC > |
Red-Black Tree based implementation of the set interface. More... | |
class | original::treeSet< TYPE, Compare, ALLOC >::Iterator |
Bidirectional iterator for treeSet. More... | |
class | original::JSet< TYPE, Compare, ALLOC > |
Skip List based implementation of the set interface. More... | |
class | original::JSet< TYPE, Compare, ALLOC >::Iterator |
Forward iterator for JSet. More... | |
Namespaces | |
namespace | original |
Main namespace for the project Original. | |
namespace | std |
Standard namespace extensions for original::alternative. | |
Functions | |
template<typename TYPE , typename HASH , typename ALLOC > | |
void | std::swap (original::hashSet< TYPE, HASH, ALLOC > &lhs, original::hashSet< TYPE, HASH, ALLOC > &rhs) noexcept |
std::swap specialization for hashSet | |
template<typename TYPE , typename COMPARE , typename ALLOC > | |
void | std::swap (original::treeSet< TYPE, COMPARE, ALLOC > &lhs, original::treeSet< TYPE, COMPARE, ALLOC > &rhs) noexcept |
std::swap specialization for treeSet | |
template<typename TYPE , typename COMPARE , typename ALLOC > | |
void | std::swap (original::JSet< TYPE, COMPARE, ALLOC > &lhs, original::JSet< TYPE, COMPARE, ALLOC > &rhs) noexcept |
std::swap specialization for JSet | |
Implementation of set containers with different underlying data structures.
Provides three set implementations with different performance characteristics and iteration capabilities:
Common Features:
Performance Characteristics:
Container | Insertion | Lookup | Deletion | Ordered | Memory Usage |
---|---|---|---|---|---|
hashSet | O(1) avg | O(1) | O(1) | No | Medium-High |
treeSet | O(log n) | O(log n) | O(log n) | Yes | Low |
JSet | O(log n) avg | O(log n) | O(log n) | Yes | Medium |
Usage Guidelines:
Iterator Invalidation:
Exception Safety: