Project OpenGeode
class RelationshipsBuilder
Class managing modification of Relationships
Functions
RelationshipsBuilder
cpp
public void RelationshipsBuilder(Relationships & relationships)public void RelationshipsBuilder(Relationships & relationships)unregister_component
cpp
public void unregister_component(const uuid & component_id)public void unregister_component(const uuid & component_id)Remove a component from the set of components registered by the Relationships and all its associated relationships
id [in] Unique index of the component to remove
add_boundary_relation
cpp
public index_t add_boundary_relation(const ComponentID & boundary, const ComponentID & incidence)public index_t add_boundary_relation(const ComponentID & boundary, const ComponentID & incidence)Add a new relationship of type boundary-incidence between two components
add_internal_relation
cpp
public index_t add_internal_relation(const ComponentID & internal, const ComponentID & embedding)public index_t add_internal_relation(const ComponentID & internal, const ComponentID & embedding)Add a new relationship of type internal-embedding between two components
add_item_in_collection
cpp
public index_t add_item_in_collection(const ComponentID & item, const ComponentID & collection)public index_t add_item_in_collection(const ComponentID & item, const ComponentID & collection)Add a new relationship of type item-collection between two components
remove_relation
cpp
public void remove_relation(const uuid & component_id1, const uuid & component_id2)public void remove_relation(const uuid & component_id1, const uuid & component_id2)Remove a relationship between two components
copy_relationships
cpp
public void copy_relationships(const ModelCopyMapping & mapping, const Relationships & relationships)public void copy_relationships(const ModelCopyMapping & mapping, const Relationships & relationships)load_relationships
cpp
public void load_relationships(basic_string_view directory)public void load_relationships(basic_string_view directory)