This attribute describes sorting state.
More...
#include <TheWarehouse.h>
This attribute describes sorting state.
Definition at line 112 of file TheWarehouse.h.
◆ Key
◆ AttribSorted() [1/4]
Definition at line 118 of file TheWarehouse.h.
Attribute(TheWarehouse &w, const std::string name)
Constructs/initializes a new attribute with the specified name for use in warehouse w...
◆ AttribSorted() [2/4]
AttribSorted::AttribSorted |
( |
TheWarehouse & |
w, |
|
|
bool |
is_sorted |
|
) |
| |
|
inline |
Definition at line 119 of file TheWarehouse.h.
Attribute(TheWarehouse &w, const std::string name)
Constructs/initializes a new attribute with the specified name for use in warehouse w...
constexpr bool is_sorted()
Check if the given index sequence is sorted ()internal function)
◆ AttribSorted() [3/4]
◆ AttribSorted() [4/4]
◆ clone()
virtual std::unique_ptr<Attribute> Attribute::clone |
( |
| ) |
const |
|
pure virtualinherited |
clone creates and returns and identical (deep) copy of this attribute - i.e.
the result of clone should return true if passed into isMatch.
Referenced by TheWarehouse::update().
◆ clonefunc()
◆ hash()
virtual std::size_t Attribute::hash |
( |
| ) |
const |
|
pure virtualinherited |
This function must return a deterministic value that is uniquely determined by the data the attribute holds (i.e.
is initialized with). Ideally, the data should be uniformly and randomly distributed across the domain of size_t values - e.g. 1 and 2 should hash to completely unrelated values. Use of std::hash for POD is encouraged. A convenience hash_combine function is also provided to combine the results an existing hash with one or more other values.
Referenced by std::hash< Attribute >::operator()().
◆ hashfunc()
AttribSorted::hashfunc |
( |
_val |
| ) |
|
◆ id()
unsigned int Attribute::id |
( |
| ) |
const |
|
inlineinherited |
returns the unique attribute ID associated with all attributes that have the same (mose derived) class as this object.
This ID is determined at construction time this
Definition at line 67 of file TheWarehouse.h.
Referenced by std::hash< Attribute >::operator()().
◆ initFrom()
initFrom reads and stores the desired meta-data from obj for later matching comparisons.
Implements Attribute.
Definition at line 39 of file TheWarehouse.C.
◆ isEqual()
bool AttribSorted::isEqual |
( |
const Attribute & |
other | ) |
const |
|
overridevirtual |
isEqual returns true if the meta-data stored in this attribute is identical to that stored in other.
isEqual does not need to check/compare the values from the instances' id() functions.
Implements Attribute.
Definition at line 51 of file TheWarehouse.C.
virtual bool isMatch(const Attribute &other) const override
isMatch returns true if the meta-data stored in this attribute is equivalent to that stored in other...
◆ isMatch()
bool AttribSorted::isMatch |
( |
const Attribute & |
other | ) |
const |
|
overridevirtual |
isMatch returns true if the meta-data stored in this attribute is equivalent to that stored in other.
This is is for query matching - not exact equivalence. isMatch does not need to check/compare the values from the instances' id() functions.
Implements Attribute.
Definition at line 44 of file TheWarehouse.C.
Referenced by isEqual().
47 return _initd && a && a->_initd && (a->_val ==
_val);
This attribute describes sorting state.
◆ operator!=()
bool Attribute::operator!= |
( |
const Attribute & |
other | ) |
const |
|
inlineinherited |
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ operator==()
bool Attribute::operator== |
( |
const Attribute & |
other | ) |
const |
|
inlineinherited |
Definition at line 58 of file TheWarehouse.h.
virtual bool isEqual(const Attribute &other) const =0
isEqual returns true if the meta-data stored in this attribute is identical to that stored in other...
◆ setFrom()
void AttribSorted::setFrom |
( |
const Key & |
k | ) |
|
|
inline |
◆ _initd
bool AttribSorted::_initd |
|
private |
◆ _val
The documentation for this class was generated from the following files: