FrameIT
FactRecorder.GlobalFactDictionary Class Reference

Static Public Member Functions

static IReadOnlyDictionary< string, FactMyFactSpace (FactRecorder me)
 
static void NewFactSpace (FactRecorder me)
 
static void FactSpaceClear (FactRecorder me)
 
static void FactSpaceDelete (FactRecorder me)
 
static void FactSpaceAdd (FactRecorder me, Fact fact)
 
static void FactSpaceRemove (FactRecorder me, string key)
 
static bool FindEquivalent (IReadOnlyDictionary< string, Fact > FactSpace, Fact search, out string found_key, out Fact found_value, out bool exact, bool allow_exact=true, bool allow_equivalent=true)
 Looks for existent Fact (found_key ) which is very similar or identical (exact ) to prposed Fact (search ) More...
 

Properties

static IReadOnlyDictionary< string, FactAllFacts [get]
 
static IReadOnlyDictionary< FactRecorder, Dictionary< string, Fact > > AllFactSpaces [get]
 

Static Private Attributes

static readonly Dictionary< string, FactFactDict = new()
 
static readonly Dictionary< string, uint > FactReferences = new()
 
static readonly Dictionary< FactRecorder, Dictionary< string, Fact > > FactSpaces = new()
 

Member Function Documentation

◆ FactSpaceAdd()

static void FactRecorder.GlobalFactDictionary.FactSpaceAdd ( FactRecorder  me,
Fact  fact 
)
static

◆ FactSpaceClear()

static void FactRecorder.GlobalFactDictionary.FactSpaceClear ( FactRecorder  me)
static

◆ FactSpaceDelete()

static void FactRecorder.GlobalFactDictionary.FactSpaceDelete ( FactRecorder  me)
static

◆ FactSpaceRemove()

static void FactRecorder.GlobalFactDictionary.FactSpaceRemove ( FactRecorder  me,
string  key 
)
static

◆ FindEquivalent()

static bool FactRecorder.GlobalFactDictionary.FindEquivalent ( IReadOnlyDictionary< string, Fact FactSpace,
Fact  search,
out string  found_key,
out Fact  found_value,
out bool  exact,
bool  allow_exact = true,
bool  allow_equivalent = true 
)
static

Looks for existent Fact (found_key ) which is very similar or identical (exact ) to prposed Fact (search )

does not check active state

Parameters
FactSpaceto search in
searchto be searched for
found_keyFact.Id if return value is true
found_valueFact if return value is true
exacttrue iff found_key == search .Id
allow_exactif set to false: ignores cases where exact returns true
Returns
true iff the exact same or an equivalent Fact to search was found in MyFactSpace

◆ MyFactSpace()

static IReadOnlyDictionary< string, Fact > FactRecorder.GlobalFactDictionary.MyFactSpace ( FactRecorder  me)
static

◆ NewFactSpace()

static void FactRecorder.GlobalFactDictionary.NewFactSpace ( FactRecorder  me)
static

Member Data Documentation

◆ FactDict

readonly Dictionary<string, Fact> FactRecorder.GlobalFactDictionary.FactDict = new()
staticprivate

◆ FactReferences

readonly Dictionary<string, uint> FactRecorder.GlobalFactDictionary.FactReferences = new()
staticprivate

◆ FactSpaces

readonly Dictionary<FactRecorder, Dictionary<string, Fact> > FactRecorder.GlobalFactDictionary.FactSpaces = new()
staticprivate

Property Documentation

◆ AllFacts

IReadOnlyDictionary<string, Fact> FactRecorder.GlobalFactDictionary.AllFacts
staticget

◆ AllFactSpaces

IReadOnlyDictionary<FactRecorder, Dictionary<string, Fact> > FactRecorder.GlobalFactDictionary.AllFactSpaces
staticget

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