Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
#include <bayeux/geomtools/geom_id.h>
Public Member Functions | |
bool | is_type (uint32_t) const |
Check if the type match a given value. More... | |
uint32_t | get_type () const |
Return the type. More... | |
void | set_type (uint32_t) |
Set the type. More... | |
void | set_depth (uint32_t depth_) |
Set the depth. More... | |
uint32_t | get_depth () const |
Returns the address' depth. More... | |
uint32_t | get (int) const |
Returns the subaddress value at given index. More... | |
void | set (int, uint32_t val_) |
Set the subaddress at given index to a given value. More... | |
void | set_any (int) |
Set the subaddress at given index to the any value. More... | |
void | set_invalid (int) |
Invalidate the subaddress at given index to 'any'. More... | |
bool | is_invalid (int) const |
Check if subaddress at given index is invalid. More... | |
bool | is_any (int) const |
Check if subaddress at given index is 'any'. More... | |
void | set_address (uint32_t si0_, uint32_t si1_=INVALID_ADDRESS, uint32_t si2_=INVALID_ADDRESS, uint32_t si3_=INVALID_ADDRESS, uint32_t si4_=INVALID_ADDRESS, uint32_t si5_=INVALID_ADDRESS, uint32_t si6_=INVALID_ADDRESS, uint32_t si7_=INVALID_ADDRESS, uint32_t si8_=INVALID_ADDRESS, uint32_t si9_=INVALID_ADDRESS) |
Set the addresses (up to depth = 10) More... | |
void | reset_address () |
Reset the address. More... | |
geom_id () | |
Default constructor. More... | |
geom_id (uint32_t type_, uint32_t si0_) | |
Constructor (depth=1) More... | |
geom_id (uint32_t type_, uint32_t si0_, uint32_t si1_) | |
Constructor (depth=2) More... | |
geom_id (uint32_t type_, uint32_t si0_, uint32_t si1_, uint32_t si2_) | |
Constructor (depth=3) More... | |
geom_id (uint32_t type_, uint32_t si0_, uint32_t si1_, uint32_t si2_, uint32_t si3_) | |
Constructor (depth=4) More... | |
geom_id (uint32_t type_, uint32_t si0_, uint32_t si1_, uint32_t si2_, uint32_t si3_, uint32_t si4_, uint32_t si5_=INVALID_ADDRESS, uint32_t si6_=INVALID_ADDRESS, uint32_t si7_=INVALID_ADDRESS, uint32_t si8_=INVALID_ADDRESS, uint32_t si9_=INVALID_ADDRESS) | |
Constructor (up to depth = 10) More... | |
virtual | ~geom_id () |
Destructor. More... | |
void | reset () |
Reset/invalidate the GID. More... | |
void | invalidate () |
Reset/invalidate the GID. More... | |
bool | is_valid () const |
Check if the GID is valid. More... | |
bool | is_complete () const |
Check if the GID is complete. More... | |
void | extract_to (geom_id &target_) const |
Fill the target GID's addresses with current GID's addresses up to the target GID's depth. More... | |
void | extract_from (const geom_id &source_) |
void | inherits_from (const geom_id &source_) |
bool | match_impl (const geom_id &id_, bool exact_) const |
Non-overloaded version for CAMP reflection tools: More... | |
bool | match (const geom_id &id_, bool exact_=false) const |
bool | operator== (const geom_id &id_) const |
bool | operator!= (const geom_id &id_) const |
bool | operator< (const geom_id &id_) const |
bool | operator<= (const geom_id &id_) const |
bool | operator>= (const geom_id &id_) const |
bool | operator> (const geom_id &id_) const |
void | make (int type_, int depth_) |
Initialize the GID with a given type and address' depth. More... | |
Public Member Functions inherited from datatools::i_serializable | |
i_serializable () | |
Default constructor. More... | |
virtual | ~i_serializable () |
Destructor. More... | |
virtual const std::string & | get_serial_tag () const =0 |
Return the serialization string identifier of the class. More... | |
Static Public Member Functions | |
static bool | match (const geom_id &id1_, const geom_id &id2_, bool exact_=false) |
static int | compare (const geom_id &id1_, const geom_id &id2_) |
static void | make (geom_id &id_, int type_, int depth_) |
static bool | sub_id_comp (uint32_t si1_, uint32_t si2_) |
Static Public Attributes | |
static const uint32_t | INVALID_TYPE = 0xFFFFFFFF |
static const uint32_t | INVALID_ADDRESS = 0xFFFFFFFF |
static const uint32_t | ANY_ADDRESS = 0xFFFFFFFE |
static const uint32_t | DEFAULT_ADDRESS_DEPTH = 10 |
static const uint32_t | UNIVERSE_TYPE = 0 |
static const uint32_t | WORLD_TYPE = geom_id::UNIVERSE_TYPE |
static const char | IO_ID_OPEN |
static const char | IO_ID_SEPARATOR |
static const char | IO_ADDRESS_SEPARATOR |
static const char | IO_TYPE_INVALID |
static const char | IO_ADDRESS_INVALID |
static const char | IO_ID_CLOSE |
static const char | IO_ADDRESS_ANY |
Friends | |
std::ostream & | operator<< (std::ostream &out_, const geom_id &id_) |
std::istream & | operator>> (std::istream &in_, geom_id &id_) |
geomtools::geom_id::geom_id | ( | ) |
Default constructor.
geomtools::geom_id::geom_id | ( | uint32_t | type_, |
uint32_t | si0_ | ||
) |
Constructor (depth=1)
geomtools::geom_id::geom_id | ( | uint32_t | type_, |
uint32_t | si0_, | ||
uint32_t | si1_ | ||
) |
Constructor (depth=2)
geomtools::geom_id::geom_id | ( | uint32_t | type_, |
uint32_t | si0_, | ||
uint32_t | si1_, | ||
uint32_t | si2_ | ||
) |
Constructor (depth=3)
geomtools::geom_id::geom_id | ( | uint32_t | type_, |
uint32_t | si0_, | ||
uint32_t | si1_, | ||
uint32_t | si2_, | ||
uint32_t | si3_ | ||
) |
Constructor (depth=4)
geomtools::geom_id::geom_id | ( | uint32_t | type_, |
uint32_t | si0_, | ||
uint32_t | si1_, | ||
uint32_t | si2_, | ||
uint32_t | si3_, | ||
uint32_t | si4_, | ||
uint32_t | si5_ = INVALID_ADDRESS , |
||
uint32_t | si6_ = INVALID_ADDRESS , |
||
uint32_t | si7_ = INVALID_ADDRESS , |
||
uint32_t | si8_ = INVALID_ADDRESS , |
||
uint32_t | si9_ = INVALID_ADDRESS |
||
) |
Constructor (up to depth = 10)
|
virtual |
Destructor.
void geomtools::geom_id::extract_from | ( | const geom_id & | source_ | ) |
void geomtools::geom_id::extract_to | ( | geom_id & | target_ | ) | const |
Fill the target GID's addresses with current GID's addresses up to the target GID's depth.
uint32_t geomtools::geom_id::get | ( | int | ) | const |
Returns the subaddress value at given index.
uint32_t geomtools::geom_id::get_depth | ( | ) | const |
Returns the address' depth.
uint32_t geomtools::geom_id::get_type | ( | ) | const |
Return the type.
void geomtools::geom_id::inherits_from | ( | const geom_id & | source_ | ) |
void geomtools::geom_id::invalidate | ( | ) |
Reset/invalidate the GID.
bool geomtools::geom_id::is_any | ( | int | ) | const |
Check if subaddress at given index is 'any'.
bool geomtools::geom_id::is_complete | ( | ) | const |
Check if the GID is complete.
bool geomtools::geom_id::is_invalid | ( | int | ) | const |
Check if subaddress at given index is invalid.
bool geomtools::geom_id::is_type | ( | uint32_t | ) | const |
Check if the type match a given value.
bool geomtools::geom_id::is_valid | ( | ) | const |
Check if the GID is valid.
void geomtools::geom_id::make | ( | int | type_, |
int | depth_ | ||
) |
Initialize the GID with a given type and address' depth.
|
static |
bool geomtools::geom_id::match | ( | const geom_id & | id_, |
bool | exact_ = false |
||
) | const |
|
static |
bool geomtools::geom_id::match_impl | ( | const geom_id & | id_, |
bool | exact_ | ||
) | const |
Non-overloaded version for CAMP reflection tools:
bool geomtools::geom_id::operator!= | ( | const geom_id & | id_ | ) | const |
bool geomtools::geom_id::operator< | ( | const geom_id & | id_ | ) | const |
bool geomtools::geom_id::operator<= | ( | const geom_id & | id_ | ) | const |
bool geomtools::geom_id::operator== | ( | const geom_id & | id_ | ) | const |
bool geomtools::geom_id::operator> | ( | const geom_id & | id_ | ) | const |
bool geomtools::geom_id::operator>= | ( | const geom_id & | id_ | ) | const |
void geomtools::geom_id::reset | ( | ) |
Reset/invalidate the GID.
void geomtools::geom_id::reset_address | ( | ) |
Reset the address.
void geomtools::geom_id::set | ( | int | , |
uint32_t | val_ | ||
) |
Set the subaddress at given index to a given value.
void geomtools::geom_id::set_address | ( | uint32_t | si0_, |
uint32_t | si1_ = INVALID_ADDRESS , |
||
uint32_t | si2_ = INVALID_ADDRESS , |
||
uint32_t | si3_ = INVALID_ADDRESS , |
||
uint32_t | si4_ = INVALID_ADDRESS , |
||
uint32_t | si5_ = INVALID_ADDRESS , |
||
uint32_t | si6_ = INVALID_ADDRESS , |
||
uint32_t | si7_ = INVALID_ADDRESS , |
||
uint32_t | si8_ = INVALID_ADDRESS , |
||
uint32_t | si9_ = INVALID_ADDRESS |
||
) |
Set the addresses (up to depth = 10)
void geomtools::geom_id::set_any | ( | int | ) |
Set the subaddress at given index to the any value.
void geomtools::geom_id::set_depth | ( | uint32_t | depth_ | ) |
Set the depth.
void geomtools::geom_id::set_invalid | ( | int | ) |
Invalidate the subaddress at given index to 'any'.
void geomtools::geom_id::set_type | ( | uint32_t | ) |
Set the type.
|
static |
|
friend |
|
friend |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |