Sierra Toolkit
Version of the Day
|
A relation between two mesh entities with a relation identifier and kind . More...
#include <Relation.hpp>
Public Types | |
typedef uint32_t | raw_relation_id_type |
typedef uint32_t | attribute_type |
Public Member Functions | |
Relation () | |
Constructor. | |
Relation (Entity &entity, RelationIdentifier identifier) | |
Construct a relation from a referenced entity and local identifier. | |
attribute_type | attribute () const |
void | set_attribute (attribute_type attr) const |
raw_relation_id_type | raw_relation_id () const |
The encoded relation raw_relation_id. | |
unsigned | entity_rank () const |
The rank of the referenced entity. | |
RelationIdentifier | identifier () const |
The local relation identifier. | |
Entity * | entity () const |
The referenced entity. | |
bool | operator== (const Relation &r) const |
Equality operator. | |
bool | operator!= (const Relation &r) const |
Inequality operator. | |
bool | operator< (const Relation &r) const |
Ordering operator. | |
Static Public Member Functions | |
static raw_relation_id_type | raw_relation_id (unsigned rank, unsigned id) |
The encoded relation raw_relation_id. | |
A relation between two mesh entities with a relation identifier and kind .
Each entity owns a collection of relations to other entities. Each of these relations has a referenced entity, direction, relation identifier, and kind.
Relations are ordered by their
Definition at line 58 of file Relation.hpp.