GH_Goo<T>
ReferencesNothing matches.
Base class for IGH_Goo implementation. Takes care of some default behaviour.
Remarks: Feel free to implement IGH_Goo directly though.
Type parameters:
| T |
Constructors
GH_Goo
#protected GH_Goo()
Blank constructor, m_value will be set to default (null for reference types, zeroes for value types)
GH_Goo
#protected GH_Goo(GH_Goo<T> other)
Copy constructor, copies the data from another GH_Goo(Of T) instance. Reference types will not be duplicated.
Parameters:
| other (GH_Goo<T>) | Goo instance to copy. |
GH_Goo
#protected GH_Goo(T internal_data)
Data constructor, m_value will be set to internal_data.
Parameters:
| internal_data (T) | Value to store inside this Goo instance. |
Fields
m_value
#protected T m_value
Properties
IsValidWhyNot
#Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
Implements: IsValidWhyNot
Methods
CastFrom
#Attempt a cast from generic data.
CastTo<Q>
#Attempt a cast to type Q.
Remarks: If false, the target instance contents are not guaranteed to be valid.
Parameters:
| target (ref Q) | Pointer to target of cast. |
Returns: True on success, false on failure.
Implements: CastTo
Duplicate
#Make a complete duplicate of this instance. No shallow copies.
Remarks: Classes which implement this interface should also provide type specific Duplicate methods
Implements: Duplicate
EmitProxy
#Create a new proxy for this instance. Return Null if this class does not support proxies.
Implements: EmitProxy
ScriptVariable
#This function will be called when the local IGH_Goo instance disappears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
Returns: The default implementation of this function returns the Value instance.
Implements: ScriptVariable
ToString
#Creates a string description of the current instance value.
Overrides: Object.ToString
Implements: ToString