Identifier for a unique basis including its prime level. More...
#include <sbasis.h>
Public Member Functions | |
SBasisId | cprime (int lvl=1) const |
Returns a copy of *this with increased prime level. More... | |
SBasisId | cunprime (int lvl=1) const |
Returns a copy of *this with decreased prime level. More... | |
void | init_ids () |
Helper function to initialise the identifiers. More... | |
bool | operator!= (SBasisId const &other) const |
Compares the identifiers of this basis with the other basis for inequality. More... | |
bool | operator== (SBasisId const &other) const |
Compares the identifiers of this basis with the other basis for equality. More... | |
SBasisId & | prime (int lvl=1) |
Increases the prime-level in-place. More... | |
template<typename Archive > | |
void | serialize (Archive &ar, unsigned int const in_version) |
Boost serialisation. More... | |
SBasisId & | unprime (int lvl=1) |
Decreases the prime-level in-place. More... | |
Public Attributes | |
std::uint32_t | cmemy = 0 |
initialised to a 32-bit rep of the creation address. More... | |
std::uint32_t | ctime = 0 |
initialised to a 32-bit rep of the creation time. More... | |
std::int8_t | prlvl = 0 |
Prime level of the basis. More... | |
std::uint32_t | rndid = 0 |
initialised to a 32-bit random number More... | |
Static Public Attributes | |
static constexpr unsigned int | version = 1 |
Boost serialisation version. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, SBasisId const &sb) |
Outputs the basis. More... | |
Identifier for a unique basis including its prime level.