Properties
Branch
#Gets a limited access pointer to the data list associated with a certain path.
Parameters:
| path (GH_Path) | Path of data to retrieve. |
Branch
#Gets a limited access pointer to the data list at the specified index.
Parameters:
| index (int) | Index of data to retrieve. |
IsEmpty
#Gets the Empty state of the structure. If the structure is Empty when it contains no paths and no branches.
Path
#Gets the data path at the specified index.
Parameters:
| index (int) | Index of path to retrieve. |
Exceptions:
| IndexOutOfRangeException | Thrown if the index does not represent a valid path. |
StructureProxy
#Gets a proxy list of all the data-arrays in this structure
Methods
DataDescription
#Gets a description of the data contained in this structure.
Returns: A string describing the data.
ExpandPath
#Expand a path in this structure by appending an element.
void ExpandPath()
path,
Path to expand, if the path doesn't exist, nothing will happen.
element,
Element to append to the path.
mode
Expansion mode.
Graft
#Grafts all paths by reallocating all data into child paths.
obsoletethis method has been replaced by Graft(GH_GraftMode)
Graft
#Grafts a specific path by reallocating all data into child paths. If a grafted path coincides with an existing path, the data item in question will be appended to the existing path.
Graft
#Grafts a specific path by reallocating all data into child paths. If a grafted path coincides with an existing path, the data item in question will be appended to the existing path.
obsoletethis method has been replaced by Graft(GH_GraftMode, GH_Path)
LongestPathIndex
#Finds the path in this structure with the most dimensions. In case of multiple equally long longest paths, the last one will be returned.
Returns: The index of the longest path or -1 if there are no paths.
PathExists
#Returns True if the specified path is already defined inside the structure.
PathIndex
#Find the indices that delineate the given path domain.
RemovePath
#Removes a path and all associated data from the structure. If the path doesn't exist, nothing will happen.
ReplacePath
#Replace an existing path with a different one. If the operation is successfull, then the 'find' path will be deleted. If the 'replace' path is already defined, the items in 'find' will be appended to the existing path.
ShortestPathIndex
#Finds the path in this structure with the least dimensions. In case of multiple equally long longest paths, the first one will be returned.
Returns: The index of the shortest path or -1 if there are no paths.