#include <sprk.h>
Public Member Functions | |
| ComponentPath () | |
| ComponentPath (ComponentArray const &in_components) | |
| ComponentPath (size_t in_count, Component const in_components[]) | |
| ComponentPath (ComponentPath const &in_that) | |
| ComponentPath (ComponentPath &&in_that) | |
| ComponentPath & | operator= (ComponentPath &&in_that) |
| virtual | ~ComponentPath () |
| HPS::Type | ObjectType () const |
| ComponentPath & | operator+= (Component const &in_component) |
| ComponentPath & | operator+= (ComponentPath const &in_path) |
| ComponentPath & | operator+= (ComponentArray const &in_components) |
| ComponentPath & | Append (Component const &in_component) |
| ComponentPath & | Append (ComponentPath const &in_path) |
| ComponentPath & | Append (ComponentArray const &in_components) |
| ComponentPath & | operator= (ComponentPath const &in_that) |
| ComponentPath & | operator= (ComponentArray const &in_path) |
| void | Set (ComponentPath const &in_that) |
| bool | Equals (ComponentPath const &in_that) const |
| bool | operator!= (ComponentPath const &in_that) const |
| bool | operator== (ComponentPath const &in_that) const |
| ComponentPath & | SetComponents (ComponentArray const &in_components) |
| ComponentPath & | SetComponents (size_t in_count, Component const in_components[]) |
| ComponentArray | GetComponents () const |
| KeyPathArray | GetKeyPaths () const |
| KeyPathArray | GetKeyPaths (Canvas const &in_canvas, size_t in_layer=0) const |
| void | Highlight (Canvas const &in_canvas, HighlightOptionsKit const &in_options) const |
| void | Highlight (Canvas const &in_canvas, size_t in_layer, HighlightOptionsKit const &in_options) const |
| void | Unhighlight (Canvas const &in_canvas, HighlightOptionsKit const &in_options) const |
| void | Unhighlight (Canvas const &in_canvas, size_t in_layer, HighlightOptionsKit const &in_options) const |
| void | Hide (Canvas const &in_canvas, size_t in_layer=0) |
| void | Show (Canvas const &in_canvas, size_t in_layer=0) |
| void | Isolate (Canvas const &in_canvas, size_t in_layer=0) |
Public Member Functions inherited from HPS::Sprocket | |
| Sprocket (Sprocket &&in_that) | |
Public Member Functions inherited from HPS::Object | |
| Object & | operator= (Object const &other_object) |
| Object (Object &&in_that) | |
| Object & | operator= (Object &&in_that) |
| HPS::Type | Type () const |
| virtual bool | Empty () const |
| virtual void | Reset () |
| bool | HasType (HPS::Type in_mask) const |
| intptr_t | GetClassID () const |
| intptr_t | GetInstanceID () const |
Static Public Member Functions | |
| static void | Isolate (HPS::ComponentPathArray &in_components_to_be_isolated, Canvas const &in_canvas, size_t in_layer=0) |
Static Public Member Functions inherited from HPS::Object | |
| template<typename T > | |
| static intptr_t | ClassID () |
Additional Inherited Members | |
Public Types inherited from HPS::Sprocket | |
| enum | UpdateType { Synchronous, Asynchronous } |
The ComponentPath contains an array of keys, organized from leaf to root. It allows the user to perform a number of queries along that path including accumulating net attributes and converting coordinates.
| HPS::ComponentPath::ComponentPath | ( | ) |
Creates an uninitialized key path that refers to no database objects.
| HPS::ComponentPath::ComponentPath | ( | ComponentArray const & | in_components | ) |
Creates a new ComponentPath object based on the supplied path.
| in_path | An array of keys arranged from leaf to root. |
| HPS::ComponentPath::ComponentPath | ( | size_t | in_count, |
| Component const | in_components[] | ||
| ) |
Creates a new ComponentPath object based on the supplied path.
| in_path_count | The number of keys in the array. |
| in_path | An array of keys arranged from leaf to root. |
| HPS::ComponentPath::ComponentPath | ( | ComponentPath const & | in_that | ) |
Copies in_that into this key path.
| HPS::ComponentPath::ComponentPath | ( | ComponentPath && | in_that | ) |
The move constructor creates a ComponentPath by transferring the underlying impl of the rvalue reference to this ComponentPath thereby avoiding a copy and allocation.
| in_that | An rvalue reference to a ComponentPath to take the impl from. |
|
virtual |
Releases a reference to the database object this object is tied to.
| ComponentPath& HPS::ComponentPath::Append | ( | Component const & | in_component | ) |
| ComponentPath& HPS::ComponentPath::Append | ( | ComponentPath const & | in_path | ) |
Appends the supplied key into this object. Same as operator+= function.
| in_key_path | The ComponentPath to be appended to this. |
| ComponentPath& HPS::ComponentPath::Append | ( | ComponentArray const & | in_components | ) |
Appends the supplied key into this object. Same as operator+= function.
| in_key_array | The ComponentArray to be appended to this. |
| bool HPS::ComponentPath::Equals | ( | ComponentPath const & | in_that | ) | const |
Check if the source ComponentPath is equivalent to this object.
| in_kit | The source ComponentPath to compare to this object. |
| ComponentArray HPS::ComponentPath::GetComponents | ( | ) | const |
Gets the components defining this ComponentPath.
| KeyPathArray HPS::ComponentPath::GetKeyPaths | ( | ) | const |
| KeyPathArray HPS::ComponentPath::GetKeyPaths | ( | Canvas const & | in_canvas, |
| size_t | in_layer = 0 |
||
| ) | const |
Gets the KeyPath objects corresponding to this ComponentPath which are included by the specified Canvas and layer.
| void HPS::ComponentPath::Hide | ( | Canvas const & | in_canvas, |
| size_t | in_layer = 0 |
||
| ) |
Hides this ComponentPath under the given Canvas in the specified layer.
| in_canvas | The Canvas in which to hide the ComponentPath. |
| in_layer | The layer under the provided Canvas in which to hide the ComponentPath. |
| void HPS::ComponentPath::Highlight | ( | Canvas const & | in_canvas, |
| HighlightOptionsKit const & | in_options | ||
| ) | const |
Highlights this ComponentPath with the provided options under the given Canvas in layer zero.
| in_canvas | The Canvas in which to perform the highlight. |
| in_options | The options to use to perform the highlight. |
| void HPS::ComponentPath::Highlight | ( | Canvas const & | in_canvas, |
| size_t | in_layer, | ||
| HighlightOptionsKit const & | in_options | ||
| ) | const |
Highlights this ComponentPath with the provided options under the given Canvas in the specified layer.
| void HPS::ComponentPath::Isolate | ( | Canvas const & | in_canvas, |
| size_t | in_layer = 0 |
||
| ) |
Shows only this ComponentPath and hides all other Component objects under the given Canvas in the specified layer.
| in_canvas | The Canvas in which to isolate the ComponentPath. |
| in_layer | The layer under the provided Canvas in which to isolate the ComponentPath. |
|
inlinevirtual |
This function returns the type the object, as declared. This does not necessarily give the true type of the underlying object.
Reimplemented from HPS::Object.
| bool HPS::ComponentPath::operator!= | ( | ComponentPath const & | in_that | ) | const |
Check if the source ComponentPath is not equivalent to this object.
| in_kit | The source ComponentPath to compare to this object. |
| ComponentPath& HPS::ComponentPath::operator+= | ( | Component const & | in_component | ) |
Appends the supplied Component into this object. Same as Append function.
| in_key | The key to be appended to this. |
| ComponentPath& HPS::ComponentPath::operator+= | ( | ComponentPath const & | in_path | ) |
Appends the supplied ComponentPath into this object. Same as Append function.
| in_key_path | The ComponentPath to be appended to this. |
| ComponentPath& HPS::ComponentPath::operator+= | ( | ComponentArray const & | in_components | ) |
Appends the supplied ComponentArray into this object. Same as Append function.
| in_key_array | The ComponentArray to be appended to this. |
| ComponentPath& HPS::ComponentPath::operator= | ( | ComponentPath && | in_that | ) |
The move assignment operator transfers the underlying impl of the rvalue reference to this ComponentPath thereby avoiding a copy.
| in_that | An rvalue reference to a ComponentPath to take the impl from. |
| ComponentPath& HPS::ComponentPath::operator= | ( | ComponentPath const & | in_that | ) |
Copies the supplied path into this object.
| in_that | The source of the copy. |
| ComponentPath& HPS::ComponentPath::operator= | ( | ComponentArray const & | in_path | ) |
Copies an array of keys into this object.
| in_path | The source array, assumed to be arranged from leaf to root. |
| bool HPS::ComponentPath::operator== | ( | ComponentPath const & | in_that | ) | const |
Check if the source ComponentPath is equivalent to this object.
| in_kit | The source ComponentPath to compare to this object. |
| void HPS::ComponentPath::Set | ( | ComponentPath const & | in_that | ) |
Copies the supplied path into this object.
| in_that | The source of the copy. |
| ComponentPath& HPS::ComponentPath::SetComponents | ( | ComponentArray const & | in_components | ) |
Copies an array of components into this object.
| in_keys | The source array, assumed to be arranged from leaf to root. |
| ComponentPath& HPS::ComponentPath::SetComponents | ( | size_t | in_count, |
| Component const | in_components[] | ||
| ) |
Copies an array of components into this object.
| in_count | the number of components in the array. |
| in_components | The source array, assumed to arranged from leaf to root. |
| void HPS::ComponentPath::Show | ( | Canvas const & | in_canvas, |
| size_t | in_layer = 0 |
||
| ) |
Shows this ComponentPath under the given Canvas in the specified layer.
| in_canvas | The Canvas in which to show the ComponentPath. |
| in_layer | The layer under the provided Canvas in which to show the ComponentPath. |
| void HPS::ComponentPath::Unhighlight | ( | Canvas const & | in_canvas, |
| HighlightOptionsKit const & | in_options | ||
| ) | const |
Unhighlights this ComponentPath with the provided options under the given Canvas in layer zero.
| in_canvas | The Canvas in which to perform the unhighlight. |
| in_options | The options to use to perform the unhighlight. |
| void HPS::ComponentPath::Unhighlight | ( | Canvas const & | in_canvas, |
| size_t | in_layer, | ||
| HighlightOptionsKit const & | in_options | ||
| ) | const |
Unhighlights this ComponentPath with the provided options under the given Canvas in the specified layer.