|
CppGraph Application Framework©
Copyright © 2004-202x Geoff Goldberg
|
A property link ia a named connector between a node and a property, or between a node link and a property, in the graph. More...
#include <property_link.h>

Public Member Functions | |
| property_link_handle | detach_from_parent () |
| link_name_t const & | get_name () const |
| id_t | get_parent_id () const |
| property_handle | get_property () const |
| template<typename T > | |
| property_handle_t< T > | get_property_t (error_action_enum error_action_type) const |
| Returns a handle to this property link's property, specified by type. More... | |
| property_handle | set_property (property_handle const &h_property) |
| Replaces this property link's property with a specified property. More... | |
Static Public Member Functions | |
| static property_link_handle | create_property_link (link_name_t const &name, property_handle const &h_property) |
| Creates and returns a handle to an instance of a property link with a specified name and child property, and no parent (node or node link). More... | |
A property link ia a named connector between a node and a property, or between a node link and a property, in the graph.
When a property link is created, its reference count is incremented. When the property link is destroyed, its reference count is decremented.
A property link has a parent node ID, a child property handle, and a name.
A property link has 0 or 1 (non-null) node or node link parents and 1 (non-null) property child.
|
static |
Creates and returns a handle to an instance of a property link with a specified name and child property, and no parent (node or node link).
| name | Name to assign as the property link's name. |
| h_property | A property to be assigned to the property link. |
nullptr is returned if h_property is nullptr. | property_link_handle cppgraph::property_link::detach_from_parent | ( | ) |
Detaches this property link from its parent node or node link.
If this property link does not have a parent, no actions are performed. Otherwise, this property link is removed from its parent node or node link.
| link_name_t const & cppgraph::property_link::get_name | ( | ) | const |
Returns the property link's name.
| id_t cppgraph::property_link::get_parent_id | ( | ) | const |
Returns this property link's parent ID.
| property_handle cppgraph::property_link::get_property | ( | ) | const |
Returns a handle to the property link's property.
nullptr. | property_handle_t< T > cppgraph::property_link::get_property_t | ( | error_action_enum | error_action_type | ) | const |
Returns a handle to this property link's property, specified by type.
| T | Type of the property. |
| error_action_type | Specifies whether or not to assert if this node link's property is not of type T. |
nullptr is returned.| exception | he property is not of type T AND error_action_type == error_action_enum::e_assert |
| property_handle cppgraph::property_link::set_property | ( | property_handle const & | h_property | ) |
Replaces this property link's property with a specified property.
| h_property | A property to replace this property link's property. If it is nullptr, the existing property is not replaced. |
nullptr.| exception | h_property is nullptr.` |
1.8.14