FrameIT
FactWrappedCRTP< T > Class Template Referenceabstract

Implements CRTP for Fact; Escalates constructors; More...

Inheritance diagram for FactWrappedCRTP< T >:
Fact

Public Member Functions

override bool Equivalent (Fact f2)
 Compares this against f2 . More...
 
override bool Equivalent (Fact f1, Fact f2)
 Compares f1 against f2 . More...
 
- Public Member Functions inherited from Fact
string GetLabel (FactRecorder name_space)
 
bool SetLabel (string value, FactRecorder name_space)
 
Fact ReInitializeMe (Dictionary< string, string > old_to_new, FactRecorder organizer)
 Copies fact by initiating new MMT Fact. More...
 
bool rename (string newLabel, FactRecorder name_space)
 Assignes a custom GetLabel, if newLabel is not yet taken; or clears custom GetLabel. More...
 
abstract MMTFact MakeMMTDeclaration ()
 
abstract SOMDoc Defines ()
 
virtual new int GetHashCode ()
 canonical More...
 
virtual SOMDoc GetMMTType ()
 
void freeAutoLabel (FactRecorder name_space)
 Tells a FactRecorder that this no longer uses auto-generated GetLabel, but remembers current generation variable(s). More...
 
void SendToMMT ()
 

Protected Member Functions

 FactWrappedCRTP ()
 
abstract bool EquivalentWrapped (T f1, T f2)
 CRTP step of Equivalent(Fact) and Equivalent(Fact, Fact) More...
 
bool DependentFactsEquivalent (T f1, T f2)
 
- Protected Member Functions inherited from Fact
virtual object GetCompiledValue ()
 
object CompileValue (SOMDoc compile_me)
 
abstract string[] GetDependentFactIds ()
 
 Fact ()
 Only being used by JsonReader to initiate empty Facts.

See also
SOMDocManager
More...
 
abstract Fact _ReInitializeMe (Dictionary< string, string > old_to_new)
 
abstract void RecalculateTransform ()
 
virtual string generateLabel (FactRecorder name_space)
 auto-generates GetLabel using generation variable(s) e.g. LabelId; if custom GetLabel is set, tries to restore original generated GetLabel without resetting _CustomLabel. If original GetLabel is already taken, a new one will be generated. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from Fact
static IEnumerator parseFact (List< Fact > ret, MMTFact fact)
 Parses MMTFact to actual Fact More...
 
static SOMDoc SendToMMT (MMTFact mmtDecl)
 
static void MakeFact (List< Fact > ret, object payload, SOMDoc ServerDefinition, bool BypassServer, SOMDoc BypassURI=null)
 Tries to parse payload into Fact(s) More...
 
static List< FactMMTFactory (MMTFact ingredient)
 Compiles/Executes ingredient and parses result into @Fact s More...
 
- Public Attributes inherited from Fact
FactWrapper WorldRepresentation
 Reference to GameObject that represents this Fact in the GameWorld. More...
 
- Static Public Attributes inherited from Fact
static readonly Type[] Types = TypeExtensions<Fact>.UAssemblyInheritenceTypes
 Collection of Types of all available Facts to choose from. More...
 
- Protected Attributes inherited from Fact
string s_type
 
string _CustomLabel = null
 Stores custom GetLabel if set. More...
 
- Package Attributes inherited from Fact
string _LastLabel = "NaN"
 
- Properties inherited from Fact
Expression? CompileBase [getprotected set]
 
object CompiledValue [getprotected set]
 
virtual bool HasDependentFacts [get]
 
Returns
true if Fact depends on other Facts; equivalent to getDependentFactIds returns non empty array
More...
 
string[] DependentFactIds [get]
 
string??? Id [get]
 Unique Id. e.g.: MMT URI More...
 
SOMDoc ServerDefinition [getprotected set]
 AST which the Server understands. e.g.: OMS(MMT URI) More...
 
MMTFact ScalaFact [getprotected set]
 
bool HasServerTwin [get]
 
bool hasCustomLabel [get]
 
int LabelId [getset]
 Counter to organize auto generated GetLabel. Set to negative, if custom Label is assigned. More...
 
Vector3 Position [getprotected set]
 
Quaternion Rotation [getprotected set]
 
Vector3 LocalScale [getprotected set]
 

Detailed Description

Implements CRTP for Fact; Escalates constructors;

Template Parameters
Tclass, which inherits from FactWrappedCRTP
Type Constraints
T :FactWrappedCRTP<T> 

Constructor & Destructor Documentation

◆ FactWrappedCRTP()

FactWrappedCRTP< T >.FactWrappedCRTP ( )
protected

Only being used by JsonReader to initiate empty Facts.

See also
SOMDocManager

Member Function Documentation

◆ DependentFactsEquivalent()

bool FactWrappedCRTP< T >.DependentFactsEquivalent ( f1,
f2 
)
protected

◆ Equivalent() [1/2]

override bool FactWrappedCRTP< T >.Equivalent ( Fact  f1,
Fact  f2 
)
virtual

Compares f1 against f2 .

Parameters
f1Fact to compare to
f2Fact to compare to
Returns
true if f2 is semantical very similar to f1

Implements Fact.

◆ Equivalent() [2/2]

override bool FactWrappedCRTP< T >.Equivalent ( Fact  f2)
virtual

Compares this against f2 .

Parameters
f2Fact to compare to
Returns
true if f2 is semantical very similar to this

Implements Fact.

◆ EquivalentWrapped()

abstract bool FactWrappedCRTP< T >.EquivalentWrapped ( f1,
f2 
)
protectedpure virtual

The documentation for this class was generated from the following file: