Definition
- class HPS.Definition : public HPS.Object
The Definition class is a smart pointer to a database object. It is the base class for all definition objects.
Subclassed by HPS.CubeMapDefinition, HPS.GlyphDefinition, HPS.ImageDefinition, HPS.LegacyShaderDefinition, HPS.LinePatternDefinition, HPS.MaterialPaletteDefinition, HPS.NamedStyleDefinition, HPS.ShapeDefinition, HPS.TextureDefinition
Public Functions
- void Assign (HPS.Definition in_that)
Associate this Definition with the same underlying impl as the source Definition.
- Param in_that
The source Definition for the assignment.
- Definition ()
The default constructor creates an uninitialized Definition object. The Type() function will return Type.None.
- Definition (HPS.Definition in_that)
The copy constructor creates a Definition object that shares the underlying smart-pointer of the source Definition.
- Param in_that
The source Definition to copy.
- override void Dispose ()
- bool Equals (HPS.Definition in_that)
Check if the source Definition is equivalent to this Definition.
- Param in_that
The source Definition to compare to this Definition.
- Return
true if the objects are equivalent, false otherwise.
- override bool Equals (Object obj)
- override int GetHashCode ()
- string Name ()
Get the name given to this Definition when it was defined.
- Return
UTF8-encoded name of this Definition.
- override HPS.Type ObjectType ()
This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).
- Return
The declared type of the object in question, which may differ from the true, underlying type.
- HPS.PortfolioKey Owner ()
Get the portfolio that owns this Definition.
- Return
The portfolio that owns this Definition.
- void Undefine ()
Removes this definition from the owning portfolio.
Public Static Functions
- bool operator!= (HPS.Definition a, HPS.Definition b)
- bool operator== (HPS.Definition a, HPS.Definition b)