A data type similar to Basis which is suitable to quickly check the existence of sectors. More...
#include <basis_map.h>
Public Member Functions | |
template<typename Type > | |
void | add (Index size, Type &&reps) |
Adds an element to the basis. More... | |
bool | compatible (BasisMap const &other) const |
True iff all basis elements that are both in *this and in other have the same size in both. More... | |
Index | elementSize (Sector const &sym) const |
Returns the element size of the specified sector or 0 if it doesn't exist. More... | |
bool | hasSymmetry (Sector const &sym) const |
Returns true if this basis contains the specified sector. More... | |
Public Member Functions inherited from std::unordered_map< Sector, Index > | |
Index | at (Index ... args) |
Index | begin (Index ... args) |
Index | begin(int) (Index ... args) |
Index | bucket (Index ... args) |
Index | bucket_count (Index ... args) |
Index | bucket_size (Index ... args) |
Index | cbegin (Index ... args) |
Index | cbegin(int) (Index ... args) |
Index | cend (Index ... args) |
Index | cend(int) (Index ... args) |
Index | clear (Index ... args) |
Index | count (Index ... args) |
Index | emplace (Index ... args) |
Index | emplace_hint (Index ... args) |
Index | empty (Index ... args) |
Index | end (Index ... args) |
Index | end(int) (Index ... args) |
Index | equal_range (Index ... args) |
Index | erase (Index ... args) |
Index | find (Index ... args) |
Index | get_allocator (Index ... args) |
Index | hash_function (Index ... args) |
Index | insert (Index ... args) |
Index | key_eq (Index ... args) |
Index | load_factor (Index ... args) |
Index | max_bucket_count (Index ... args) |
Index | max_load_factor (Index ... args) |
Index | max_size (Index ... args) |
Index | operator= (Index ... args) |
Index | operator[] (Index ... args) |
Index | rehash (Index ... args) |
Index | reserve (Index ... args) |
Index | size (Index ... args) |
Index | swap (Index ... args) |
Index | unordered_map (Index ... args) |
Index | ~unordered_map (Index ... args) |
Additional Inherited Members | |
Public Attributes inherited from std::unordered_map< Sector, Index > | |
Index | elements |
STL member. More... | |
Sector | keys |
STL member. More... | |
A data type similar to Basis which is suitable to quickly check the existence of sectors.
Only supported operations are add(), hasSymmetry() and elementSize(). Do not use for permanent storage.