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
#Blank constructor, m_value will be set to default (null for reference types, zeroes for value types)
protected GH_Goo()
GH_Goo
#Copy constructor, copies the data from another GH_Goo(Of T) instance. Reference types will not be duplicated.
protected GH_Goo()
GH_Goo<T>
other
Goo instance to copy.
GH_Goo
#Data constructor, m_value will be set to internal_data.
protected GH_Goo()
T
internal_data
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.
Remarks: If False, the contents of this instance are not to be trusted.
Returns: True on success, false on failure.
Implements: CastFrom
CastTo<Q>
#Attempt a cast to type Q.
Remarks: If false, the target instance contents are not guaranteed to be valid.
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