|
|
||||||
|
cfl_generator.cpp
Go to the documentation of this file.
395 FD_DG("vGenerator(" << this << ")::operator = types " << typeid(*this).name() << " <= " << typeid(rOtherGen).name());
452 void vGenerator::Version(const std::string& rPattern, const std::string& rReplacement, vGenerator& rResGen) const {
762 // if(MaxStateIndex()==Size()) return; tmoor 201206: dont bail out to be consistent with token IO
1595 bool vGenerator::SetTransition(const std::string& rX1, const std::string& rEv, const std::string& rX2) {
2413 void vGenerator::DoWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
2453 void vGenerator::DoDWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
2483 void vGenerator::DoXWrite(TokenWriter& rTw, const std::string& rLabel, const Type* pContext) const {
2495 FD_DG("vGenerator(" << this << ")::DoXWrite(..): section " << btag.StringValue() << " #" << Size());
2749 void vGenerator::XWriteStateSet(TokenWriter& rTw, const StateSet& rStateSet, const std::string& rLabel) const {
3020 stream << " dot_dummyinit_" << i << " [shape=none, label=\"\", width=\"0.0\", height=\"0.0\" ];" << std::endl;
3157 FD_DG("vGenerator(" << this << ")::DoRead(): file " << rTr.FileName() << " section " << label);
3285 FD_DG("vGenerator(" << this << ")::ReadStates(\"" << rTr.FileName() << "\"): by index " << index);
3306 FD_DG("vGenerator(" << this << ")::ReadStates(\"" << rTr.FileName() << "\"): by name " << token.StringValue());
3317 FD_DG("vGenerator(" << this << ")::ReadStates(\"" << rTr.FileName() << "\"): extracted suffix from " << token.StringValue() << ": " << statename << " idx " << index);
3344 FD_DG("vGenerator(" << this << ")::ReadStates(\"" << rTr.FileName() << "\"): consecutive range");
3386 void vGenerator::ReadStateSet(TokenReader& rTr, const std::string& rLabel, StateSet& rStateSet) const {
3391 FD_DG("vGenerator(" << this << ")::ReadStateSet(..): attribute type " << typeid(*attrp).name());
3486 void vGenerator::XReadStateSet(TokenReader& rTr, StateSet& rStateSet, const std::string& rLabel) const {
3489 FD_DG("vGenerator(" << this << ")::ReadStateSet(..): attribute type " << typeid(*attrp).name());
3523 FD_DG("vGenerator(" << this << ")::XReadStates(\"" << rTr.FileName() << "\"): consecutive range " << idx1 << " to " << idx2);
3622 FD_DG("vGenerator(" << this << ")::ReadTransRel(..): attribute type " << typeid(*attrp).name());
3735 FD_DG("vGenerator(" << this << ")::ReadTransRel(..): attribute type " << typeid(*attrp).name());
3995 // FD_WARN("AlphabetExtract(): gen id " << typeid(rGen).name() << " sig id " << typeid(rRes).name());
#define FD_DC(message) Debug: optional report on container operations. Definition: cfl_definitions.h:153 #define FD_DG(message) Debug: optional report on generator operations. Definition: cfl_definitions.h:146 #define FD_DV(message) Debug: optional low-level report on iterations and token IO. Definition: cfl_definitions.h:174 #define FD_ERR(message) Debug: report more errors with file/line info. Definition: cfl_definitions.h:91 #define FAUDES_OBJCOUNT_INC(type) Debug: count objects, report on exit. Definition: cfl_definitions.h:182 #define FD_CONSECUTIVE Min number of states to use consecutive section in file output. Definition: cfl_definitions.h:64 Class vGenerator. virtual void Clear(void) Synonym for SetDefault to match std interface. Definition: cfl_attributes.h:81 Idx MaxIndex(void) const Get maximum index used in this set (0 for emptyset) Definition: cfl_indexset.cpp:298 NameSet::Iterator Find(const Idx &rIndex) const Find iterator for index. Definition: cfl_nameset.cpp:443 virtual void InsertSet(const NameSet &rOtherSet) Inserts all elements of rOtherSet. Definition: cfl_nameset.cpp:295 void RestrictSet(const NameSet &rOtherSet) Restrict to elements specified by rOtherSet. Definition: cfl_nameset.cpp:383 A SymbolTable associates sybolic names with indices. Definition: cfl_symboltable.h:61 void RestrictDomain(const IndexSet &rDomain) Restrict to specified indicees. Definition: cfl_symboltable.cpp:228 static SymbolTable * GlobalEventSymbolTablep(void) Get Static Symboltable ref (initialize on first use pattern) Definition: cfl_symboltable.cpp:277 std::string UniqueSymbol(const std::string &rName) const Create unique symbolic name by adding an underscore and extra digits. Definition: cfl_symboltable.cpp:114 void SetEntry(Idx index, const std::string &rName) Set symbolic name for existing entry. Definition: cfl_symboltable.cpp:178 Iterator class for high-level api to TBaseSet. Definition: cfl_baseset.h:387 std::vector< int >::size_type Position convenience typedef for positions Definition: cfl_basevector.h:623 Iterator Find(Idx x1, Idx ev, Idx x2) const Find transition given by x1, ev, x2. Definition: cfl_transset.h:1647 void EraseByX1(Idx x1) Remove all transitions containing predecessor state x1. Definition: cfl_transset.h:1510 void RestrictStates(const StateSet &rStateSet) Restrict to transitions with states as specified. Definition: cfl_transset.h:1615 Iterator BeginByX2(Idx x2) const Iterator to first Transition specified by successor state x2. Definition: cfl_transset.h:1385 void EraseByX1Ev(Idx x1, Idx ev) Remove all transitions containing predecessor state x1 and event ev. Definition: cfl_transset.h:1530 Iterator EndByX2(Idx x2) const Iterator to first Transition after specified successor state x2. Definition: cfl_transset.h:1396 Iterator Inject(const Iterator &pos, const Transition &rTransition) Add a Transition. Definition: cfl_transset.h:1481 StateSet SuccessorStates(Idx x1) const Get set of successor states for specified current state. Definition: cfl_transset.h:1734 void RestrictEvents(const EventSet &rEventSet) Restrict to transitions with events as specified. Definition: cfl_transset.h:1631 void EraseByX1OrX2(Idx x) Remove all transitions containing state x, This function iterates over all transitions to work with a... Definition: cfl_transset.h:1582 TBaseSet< Transition, TransSort::X1EvX2 >::Iterator Iterator Iterator on transition. Definition: cfl_transset.h:269 void ReSort(TTransSet< OtherCmp > &res) const Get copy of trantision relation sorted by other compare operator, e.g. Definition: cfl_transset.h:1714 A TokenReader reads sequential tokens from a file or string. Definition: cfl_tokenreader.h:63 bool Eos(const std::string &rLabel) Peek a token and check whether it ends the specified section. Definition: cfl_tokenreader.cpp:439 bool Reset(int level=-1) Reset to the begining of the specified level of section nesting. Definition: cfl_tokenreader.cpp:412 void ReadEnd(const std::string &rLabel) Close the current section by matching the previous ReadBegin(). Definition: cfl_tokenreader.cpp:364 void ReadBegin(const std::string &rLabel) Open a section by specified label. Definition: cfl_tokenreader.cpp:249 A TokenWriter writes sequential tokens to a file, a string or stdout. Definition: cfl_tokenwriter.h:51 std::string Str(void) Retrieve output as string (if in String mode) Definition: cfl_tokenwriter.cpp:160 void WriteComment(const std::string &rComment) Write comment in faudes format. Definition: cfl_tokenwriter.cpp:460 const std::string & StringValue(void) const Get string value of a name token. Definition: cfl_token.cpp:177 Int AttributeIntegerValue(const std::string &name) Access attribute value. Definition: cfl_token.cpp:396 bool ExistsAttributeString(const std::string &name) Test attibute existence. Definition: cfl_token.cpp:355 bool ExistsAttributeInteger(const std::string &name) Test attibute existence. Definition: cfl_token.cpp:365 void InsAttributeInteger(const std::string &name, Int value) Insert named attribute with integer value. Definition: cfl_token.cpp:318 void InsAttributeString(const std::string &name, const std::string &value) Insert named attribute with string value. Definition: cfl_token.cpp:309 const std::string & AttributeStringValue(const std::string &name) Access attribute value. Definition: cfl_token.cpp:385 Triple (X1,Ev,X2) to represent current state, event and next state. Definition: cfl_transset.h:57 Base class of all libFAUDES objects that participate in the run-time interface. Definition: cfl_types.h:239 void DWrite(const Type *pContext=0) const Write configuration data to console, debugging format. Definition: cfl_types.cpp:225 void Read(const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0) Read configuration data from file with label specified. Definition: cfl_types.cpp:261 std::string ToString(const std::string &rLabel="", const Type *pContext=0) const Write configuration data to a string. Definition: cfl_types.cpp:169 virtual void XWrite(const std::string &pFileName, const std::string &rLabel="", const Type *pContext=0) const Write configuration data to an XML file. Definition: cfl_types.cpp:200 virtual Type & Assign(const Type &rSrc) Assign configuration data from other object. Definition: cfl_types.cpp:77 virtual void DoSWrite(TokenWriter &rTw) const Write statistical data as a comment to TokenWriter. Definition: cfl_types.cpp:299 void Write(const Type *pContext=0) const Write configuration data to console. Definition: cfl_types.cpp:139 virtual const std::string & TypeName(void) const Get objects's type name. Definition: cfl_types.cpp:132 static bool ReindexOnWriteDefault(void) Enable/disable reindexing states for file-i/o. Definition: cfl_generator.cpp:2406 const EventSet * pAlphabetPrototype Pointer to alphabet prototype (incl. Definition: cfl_generator.h:2959 virtual void TransAttribute(const Transition &rTrans, const Type &rAttr) Set attribute for existing transition. Definition: cfl_generator.cpp:1693 StateSet::Iterator StatesBegin(void) const Iterator to Begin() of state set. Definition: cfl_generator.cpp:1057 StateSet::Iterator InitStatesBegin(void) const Iterator to Begin() of mInitStates. Definition: cfl_generator.cpp:1150 const TransSet & TransRel(void) const Return reference to transition relation. Definition: cfl_generator.cpp:1888 bool SetTransition(Idx x1, Idx ev, Idx x2) Add a transition to generator by indices. Definition: cfl_generator.cpp:1626 const StateSet & MarkedStates(void) const Return const ref of marked states. Definition: cfl_generator.cpp:1913 void WriteStates(TokenWriter &rTw) const Write generators stateset to TokenWriter. Definition: cfl_generator.cpp:2557 static const StateSet & StatesVoid(void) Static default state set prototype (incl. Definition: cfl_generator.cpp:45 const EventSet & Alphabet(void) const Return const reference to alphabet. Definition: cfl_generator.cpp:1878 Idx InsMarkedState(void) Create new anonymous state and set as marked state. Definition: cfl_generator.cpp:1318 void XReadStateSet(TokenReader &rTr, StateSet &rStateSet, const std::string &rLabel="") const Read a stateset from TokenReader in XML format. Definition: cfl_generator.cpp:3486 std::string TransRelToString(void) const Write transition relation to string (no re-indexing) Definition: cfl_generator.cpp:2841 virtual void DDotWrite(const std::string &rFileName) const Writes generator to dot input format (no re-indexing). Definition: cfl_generator.cpp:3061 static void StateNamesEnabledDefault(bool flag) Sets the default for automatic state name generation. Definition: cfl_generator.cpp:1010 virtual void Move(vGenerator &rGen) Destructive copy to other vGenerator. Definition: cfl_generator.cpp:333 const AttributeVoid * pGlobalPrototype Pointer to global attribute prototype (configures global attribute type) Definition: cfl_generator.h:2968 std::string MarkedStatesToString(void) const Write set of marked states to a string (no re-indexing) Definition: cfl_generator.cpp:2824 virtual vGenerator & Assign(const Type &rSrc) Copy from other faudes type. Definition: cfl_generator.cpp:287 bool InitStatesEmpty(void) const Check if set of initial states are empty. Definition: cfl_generator.cpp:663 std::string StatesToString(void) const Write stateset of this generator to a string (no re-indexing) Definition: cfl_generator.cpp:2814 EventSet ActiveEventSet(Idx x1) const Return active event set at state x1. Definition: cfl_generator.cpp:1938 void DelEvents(const EventSet &rEvents) Delete a set of events from generator. Definition: cfl_generator.cpp:1230 const StateSet & InitStates(void) const Const ref to initial states. Definition: cfl_generator.cpp:1908 const SymbolTable & StateSymbolTable(void) const Get StateSymbolTable. Definition: cfl_generator.cpp:933 TransSet::Iterator TransRelBegin(void) const Iterator to Begin() of transition relation. Definition: cfl_generator.cpp:1067 void ClrTransition(Idx x1, Idx ev, Idx x2) Remove a transition by indices. Definition: cfl_generator.cpp:1660 EventSet * mpAlphabet Pointer to alphabet (actual type depends on attributes) Definition: cfl_generator.h:2947 EventSet * NewEventSetp(void) const Create EventSet with generator's EventSymbolTable (on heap). Definition: cfl_generator.cpp:925 EventSet NewEventSet(void) const Create EventSet with generator's EventSymbolTable (on stack). Definition: cfl_generator.cpp:918 SymbolTable * EventSymbolTablep(void) const Get Pointer to EventSymbolTable currently used by this vGenerator. Definition: cfl_generator.cpp:813 void WriteAlphabet(void) const Write generators alphabet to console. Definition: cfl_generator.cpp:2517 AttributeVoid * mpGlobalAttribute Pointer to lobal attribute (actual type depends on attributes) Definition: cfl_generator.h:2956 void InjectState(Idx index) Inject an existing state index into generators mStates Use with care! For use in performance optimize... Definition: cfl_generator.cpp:1272 static const AttributeVoid & GlobalVoid(void) Static default global attribute prototype (configures global attribute type) Definition: cfl_generator.cpp:53 virtual void EventAttribute(Idx index, const Type &rAttr) Set attribute for existing event. Definition: cfl_generator.cpp:1722 void SetMinStateIndexMap(void) const Set minimal index map for file io of generator states. Definition: cfl_generator.cpp:688 virtual void StateAttribute(Idx index, const Type &rAttr) Set attribute for existing state. Definition: cfl_generator.cpp:1743 virtual vGenerator & AssignWithoutAttributes(const vGenerator &rGen) Copy from other vGenerator, ignore attributes. Definition: cfl_generator.cpp:303 StateSet::Iterator FindInitState(Idx index) const Iterator to state index in mInitStates. Definition: cfl_generator.cpp:1801 void ReadAlphabet(TokenReader &rTr) Read the generator's alphabet from a TokenReader. Definition: cfl_generator.cpp:3245 void ClrTransitions(Idx x1, Idx ev) Remove a transitions by state and event. Definition: cfl_generator.cpp:1679 void RestrictStates(const StateSet &rStates) Restrict states Cleans mpStates, mInitStates, mMarkedStates, mpTransrel, and mpStateSymboltable. Definition: cfl_generator.cpp:1412 EventSet::Iterator FindEvent(Idx index) const Returns a iterator to event index in alphabet. Definition: cfl_generator.cpp:1766 static bool msReindexOnWriteDefault Default for automatic statenames. Definition: cfl_generator.h:2944 void ClearStates(void) Clear all states and transitions, maintain alphabet. Definition: cfl_generator.cpp:624 virtual void ClearTransAttributes(void) Clear transition attributes. Definition: cfl_generator.cpp:610 void ReadStates(TokenReader &rTr) Read the generator's stateset from a TokenReader. Definition: cfl_generator.cpp:3257 void InsEvents(const EventSet &events) Add new named events to generator. Definition: cfl_generator.cpp:1210 void ClrMarkedState(Idx index) Unset an existing state as marked state by index. Definition: cfl_generator.cpp:1543 void InjectStates(const StateSet &rNewStates) Inject a complete state set without consistency checks (without attributes) Definition: cfl_generator.cpp:1278 static SymbolTable * GlobalEventSymbolTablep(void) Get Pointer to global EventSymbolTable. Definition: cfl_generator.cpp:818 virtual AttributeVoid * GlobalAttributep(void) Get attribute pointer The global attribute allways exits. Definition: cfl_generator.cpp:1871 bool EventRename(Idx event, const std::string &rNewName) Rename event in this generator. Definition: cfl_generator.cpp:867 virtual void GlobalAttribute(const Type &rAttr) Set global attribute. Definition: cfl_generator.cpp:1846 virtual AttributeVoid * TransAttributep(const Transition &rTrans) Transition attribute pointer to access Attribute methods. Definition: cfl_generator.cpp:1700 EventSet::Iterator AlphabetBegin(void) const Iterator to Begin() of alphabet. Definition: cfl_generator.cpp:1047 SymbolTable mStateSymbolTable State symbol table (local per Generator) Definition: cfl_generator.h:2926 void WriteStateSet(const StateSet &rStateSet) const Write a stateset to console (no re-indexing). Definition: cfl_generator.cpp:2535 virtual void DeleteCore(void) Free my heap members (attribute dependent types) Definition: cfl_generator.cpp:239 StateSet TransRelStates(void) const Return the states covered by transitions. Definition: cfl_generator.cpp:1958 static const EventSet & AlphabetVoid(void) Static default alphabet prototype (incl. Definition: cfl_generator.cpp:41 virtual void DoWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write generator to TokenWriter, see Type::Write for public wrappers. Definition: cfl_generator.cpp:2413 StateSet BlockingStates(void) const Compute set of blocking states. Definition: cfl_generator.cpp:2148 bool MarkedStatesEmpty(void) const Check if set of marked states are empty. Definition: cfl_generator.cpp:668 StateSet::Iterator FindMarkedState(Idx index) const Returns a iterator to state index in mMarkedStates. Definition: cfl_generator.cpp:1811 virtual AttributeVoid * EventAttributep(Idx index) Event attribute pointer to access Attribute methods. Definition: cfl_generator.cpp:1821 const std::map< Idx, Idx > & MinStateIndexMap(void) const Get state index translation map. Definition: cfl_generator.cpp:682 StateSet * mpStates Pointer to state set (actual type depends on attributes) Definition: cfl_generator.h:2950 void DWriteStateSet(TokenWriter &rTw, const StateSet &rStateSet) const Write a stateset to TokenWriter (debug version, no re-indexing) Definition: cfl_generator.cpp:2736 Idx MaxStateIndex(void) const Get maximum state index used in this generator. Definition: cfl_generator.cpp:754 TransSet * mpTransRel Pointer to ransition relation (actual type depends on attributes) Definition: cfl_generator.h:2953 bool ExistsTransition(const std::string &rX1, const std::string &rEv, const std::string &rX2) const Test for transition given by x1, ev, x2. Definition: cfl_generator.cpp:1124 void EnforceStateNames(const std::string &rTemplate) For all states without a symbolic name, assign a name based on suggested template and the index. Definition: cfl_generator.cpp:1027 void InjectMarkedStates(const StateSet &rNewMarkedStates) Replace mMarkedStates with StateSet given as parameter without consistency checks. Definition: cfl_generator.cpp:1535 virtual void DoDWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write generator in debugging format to TokenWriter, see Type::DWrite for public wrappers. Definition: cfl_generator.cpp:2453 void SetInitState(Idx index) Set an existing state as initial state by index. Definition: cfl_generator.cpp:1432 virtual void DoSWrite(TokenWriter &rTw) const Write generator statistics as comment to TokenWriter, see Type::SWrite for public wrappers. Definition: cfl_generator.cpp:2984 void InsStates(const StateSet &rStates) Add anonymous states to generator. Definition: cfl_generator.cpp:1267 virtual void GlobalAttributeTry(const Type &rAttr) Set global attribute. Definition: cfl_generator.cpp:1858 void ClearStateNames(void) Remove all names from generator's StateSymbolTable. Definition: cfl_generator.cpp:970 TransSet ActiveTransSet(Idx x1) const Return active transition set at state x1. Definition: cfl_generator.cpp:1948 void WriteTransRel(void) const Write transition relation to console (no re-indexing) Definition: cfl_generator.cpp:2835 void XWriteStateSet(TokenWriter &rTw, const StateSet &rStateSet, const std::string &rLabel="") const Write a stateset to TokenWriter in XML format. Definition: cfl_generator.cpp:2749 void InsMarkedStates(const StateSet &rStates) Add (perhaps new) anonymous initial states to generator Definition: cfl_generator.cpp:1343 bool TransRelEmpty(void) const Check if transition relation is empty. Definition: cfl_generator.cpp:658 std::string InitStatesToString(void) const Write set of initial states to a string (no re-indexing) Definition: cfl_generator.cpp:2829 StateSet AccessibleSet(void) const Compute set of accessible states. Definition: cfl_generator.cpp:1998 bool ExistsState(Idx index) const Test existence of state in state set. Definition: cfl_generator.cpp:1776 virtual const AttributeVoid & GlobalAttribute(void) const Global attribute lookup. Definition: cfl_generator.cpp:1865 virtual AttributeVoid * StateAttributep(Idx index) State attribute pointer to access Attribute methods. Definition: cfl_generator.cpp:1841 virtual void ClrTransAttribute(const Transition &rTrans) Clear attribute for existing transition. Definition: cfl_generator.cpp:1711 bool IsCoaccessible(void) const Check if generator is Coaccessible. Definition: cfl_generator.cpp:2103 void ConfigureAttributeTypes(const AttributeVoid *pNewGlobalPrototype, const StateSet *pNewStatesPrototype, const EventSet *pNewAlphabetPrototype, const TransSet *pNewTransRelPrototype) Configure attribute types. Definition: cfl_generator.cpp:201 StateSet::Iterator MarkedStatesBegin(void) const Iterator to Begin() of mMarkedStates. Definition: cfl_generator.cpp:1160 virtual void DoRead(TokenReader &rTr, const std::string &rLabel="", const Type *pContext=0) Read generator object from TokenReader, see Type::Read for public wrappers. Definition: cfl_generator.cpp:3153 const TransSet * pTransRelPrototype Pointer to transition relation prototype (incl. Definition: cfl_generator.h:2965 void XWriteTransRel(TokenWriter &rTw) const Write transition relation to tokenwriter in XML format. Definition: cfl_generator.cpp:2946 bool DelEventFromAlphabet(Idx index) Delete event from alphabet without consistency check. Definition: cfl_generator.cpp:1240 void InjectTransition(const Transition &rTrans) Set transition without consistency check. Definition: cfl_generator.cpp:1582 StateSet::Iterator FindState(Idx index) const Returns a iterator to state index in state set. Definition: cfl_generator.cpp:1791 std::string StateSetToString(const StateSet &rStateSet) const Write a stateset to string (no re-indexing). Definition: cfl_generator.cpp:2541 std::string UniqueEventName(const std::string &rName) const Create a new unique symbolic event name. Definition: cfl_generator.cpp:859 void RestrictAlphabet(const EventSet &rNewalphabet) Restricts mpAlphabet incl removing resp. Definition: cfl_generator.cpp:1184 std::string TStr(const Transition &rTrans) const Return pretty printable transition (eg for debugging) Definition: cfl_generator.cpp:3841 bool DelStateFromStates(Idx index) Delete a state from generator without consistency check. Definition: cfl_generator.cpp:1399 static bool msStateNamesEnabledDefault Default for automatic statenames. Definition: cfl_generator.h:2938 virtual void DotWrite(const std::string &rFileName) const Writes generator to dot input format. Definition: cfl_generator.cpp:3000 void XReadTransRel(TokenReader &rTr) Read the generator's transition relation from a TokenReader. Definition: cfl_generator.cpp:3732 virtual void XDotWrite(const std::string &rFileName) const Writes generator to dot input format for export to VioLib. Definition: cfl_generator.cpp:3112 StateSet::Iterator StatesEnd(void) const Iterator to End() of state set. Definition: cfl_generator.cpp:1062 void ClrInitState(Idx index) Unset an existing state as initial state by index. Definition: cfl_generator.cpp:1468 void DelStates(const StateSet &rDelStates) Delete a set of states Cleans mpStates, mInitStates, mMarkedStates, mpTransrel, and mpStateSymboltabl... Definition: cfl_generator.cpp:1381 TransSet::Iterator TransRelEnd(void) const Iterator to End() of transition relation. Definition: cfl_generator.cpp:1072 Idx SuccessorState(Idx x1, Idx ev) const Return the successor state of state x1 with event ev. Definition: cfl_generator.cpp:1980 bool IsDeterministic(void) const Check if generator is deterministic. Definition: cfl_generator.cpp:2367 bool ExistsEvent(Idx index) const Test existence of event in alphabet. Definition: cfl_generator.cpp:1756 std::string EStr(Idx index) const Pretty printable event name for index (eg for debugging). Definition: cfl_generator.cpp:3828 std::map< Idx, Idx > mMinStateIndexMap Map State indices to consecutive indices. Definition: cfl_generator.h:2989 StateSet TerminalStates(void) const Compute set of terminal states. Definition: cfl_generator.cpp:2328 StateSet::Iterator MarkedStatesEnd(void) const Iterator to End() of mMarkedStates. Definition: cfl_generator.cpp:1165 void InjectTransRel(const TransSet &rNewtransrel) Set transition relation without consistency check (no attributes) Definition: cfl_generator.cpp:1588 void SetMarkedState(Idx index) Set an existing state as marked state by index. Definition: cfl_generator.cpp:1507 Transition TransitionByNames(const std::string &rX1, const std::string &rEv, const std::string &rX2) const Convebience function. Definition: cfl_generator.cpp:1902 Idx InsInitState(void) Create new anonymous state and set as initial state. Definition: cfl_generator.cpp:1287 std::string StateSetToText(const StateSet &rStateSet) const Write a stateset to formated text (no re-indexing). Definition: cfl_generator.cpp:2548 void ReadStateSet(TokenReader &rTr, const std::string &rLabel, StateSet &rStateSet) const Read a state set. Definition: cfl_generator.cpp:3386 bool ReindexOnWrite(void) const Test whether file-i/o uses minimal state indicees. Definition: cfl_generator.cpp:2391 virtual void EventAttributes(const EventSet &rEventSet) Set attributes for existing events. Definition: cfl_generator.cpp:1730 void InsInitStates(const StateSet &rStates) Add (perhaps new) anonymous initial states to generator Definition: cfl_generator.cpp:1312 void InjectInitStates(const StateSet &rNewInitStates) Replace mInitStates with StateSet given as parameter without consistency checks. Definition: cfl_generator.cpp:1460 bool StateNamesEnabled(void) const Whether libFAUEDS functions are requested to generate state names. Definition: cfl_generator.cpp:999 bool InsEvent(Idx index) Add an existing event to alphabet by index. Definition: cfl_generator.cpp:1198 std::string TransRelToText(void) const Write transition relation to formated text (no re-indexing) Definition: cfl_generator.cpp:2848 StateSet::Iterator InitStatesEnd(void) const Iterator to End() of mInitStates. Definition: cfl_generator.cpp:1155 virtual void NewCore(void) Allocate my heap members (attribute dependent types) Definition: cfl_generator.cpp:223 void SetDefaultStateNames(void) Assign each state a default name based on its index. Definition: cfl_generator.cpp:1015 void GraphWrite(const std::string &rFileName, const std::string &rOutFormat="", const std::string &rDotExec="dot") const Produce graphical representation of this generator. Definition: cfl_generator.cpp:3847 static const TransSet & TransRelVoid(void) Static default transition relation prototype (incl. Definition: cfl_generator.cpp:49 virtual void ClrStateAttribute(Idx index) Clear attribute for existing state. Definition: cfl_generator.cpp:1750 virtual void Version(const std::string &rVersion, vGenerator &rResGen) const Create another version of this generator. Definition: cfl_generator.cpp:408 EventSet UsedEvents(void) const Return used events (executed in transitions) Definition: cfl_generator.cpp:1923 void ClearMinStateIndexMap(void) const Clear minimal index map for 1:1 file io. Definition: cfl_generator.cpp:674 const StateSet * pStatesPrototype Pointer to state set prototype (incl. Definition: cfl_generator.h:2962 EventSet::Iterator AlphabetEnd(void) const Iterator to End() of alphabet. Definition: cfl_generator.cpp:1052 std::string StatesToText(void) const Write stateset of this generator to formated text (no re-indexing) Definition: cfl_generator.cpp:2819 virtual void DoXWrite(TokenWriter &rTw, const std::string &rLabel="", const Type *pContext=0) const Write generator to TokenWriter, see Type::XWrite for public wrappers. Definition: cfl_generator.cpp:2483 StateSet CoaccessibleSet(void) const Compute set of Coaccessible states. Definition: cfl_generator.cpp:2054 virtual vGenerator & operator=(const vGenerator &rOtherGen) Assignment operator (uses Assign method) Definition: cfl_generator.cpp:393 virtual void ClrEventAttribute(Idx index) Clear attribute for existing event. Definition: cfl_generator.cpp:1737 bool ExistsInitState(Idx index) const Test existence of state in mInitStates. Definition: cfl_generator.cpp:1796 std::string SStr(Idx index) const Return pretty printable state name for index (eg for debugging) Definition: cfl_generator.cpp:3834 bool ExistsMarkedState(Idx index) const Test existence of state in mMarkedStates. Definition: cfl_generator.cpp:1806 TransSet::Iterator FindTransition(const std::string &rX1, const std::string &rEv, const std::string &rX2) const iterator to transition given by x1, ev, x2 Definition: cfl_generator.cpp:1107 std::string AlphabetToString(void) const Write generators alphabet to string. Definition: cfl_generator.cpp:2523 std::string UniqueStateName(const std::string &rName) const Create a new unique symbolic state name. Definition: cfl_generator.cpp:1039 void ReadTransRel(const std::string &rFileName) Read the generator's transition relation from a file. void DWriteTransRel(TokenWriter &rTw) const Write transition relation to tokenwriter (debug version) Definition: cfl_generator.cpp:2904 void InjectAlphabet(const EventSet &rNewalphabet) Set mpAlphabet without consistency check. Definition: cfl_generator.cpp:1170 StateSet SuccessorStates(Idx x1) const Return the successor states of state x1. Definition: cfl_generator.cpp:1969 virtual const AttributeVoid * AttributeType(void) const Attribute typeinfo. Definition: cfl_baseset.h:2171 virtual TBaseSet & AssignWithoutAttributes(const TBaseSet &rSourceSet) Attribute access. Definition: cfl_baseset.h:2237 void SetDifference(const TBaseSet< T, Cmp > &rSetA, const TBaseSet< T, Cmp > &rSetB, TBaseSet< T, Cmp > &rRes) Definition: cfl_baseset.h:1078 TTransSet< TransSort::X1EvX2 > TransSet Type definition for default sorted TTransSet. Definition: cfl_transset.h:954 TTransSet< TransSort::X2EvX1 > TransSetX2EvX1 Type definition for x2, ev, x1 sorted TTransSet. Definition: cfl_transset.h:966 TTransSet< TransSort::X1X2Ev > TransSetX1X2Ev Type definition for x1, x2, ev sorted TTransSet. Definition: cfl_transset.h:972 virtual void RestrictSet(const TBaseSet &rOtherSet) Restrict elements given by other set. Definition: cfl_baseset.h:2064 virtual void InsertSet(const TBaseSet &rOtherSet) Insert elements given by rOtherSet. Definition: cfl_baseset.h:1987 TTransSet< TransSort::X2X1Ev > TransSetX2X1Ev Type definition for x2, x1, ev sorted TTransSet. Definition: cfl_transset.h:969 virtual const AttributeVoid & Attribute(const T &rElem) const Attribute access. Definition: cfl_baseset.h:2290 void SetUnion(const TBaseSet< T, Cmp > &rSetA, const TBaseSet< T, Cmp > &rSetB, TBaseSet< T, Cmp > &rRes) Definition: cfl_baseset.h:1019 void SetIntersection(const TBaseSet< T, Cmp > &rSetA, const TBaseSet< T, Cmp > &rSetB, TBaseSet< T, Cmp > &rRes) Definition: cfl_baseset.h:1049 virtual void EraseSet(const TBaseSet &rOtherSet) Erase elements given by other set. Definition: cfl_baseset.h:2042 void AlphabetExtract(const vGenerator &rGen, EventSet &rRes) RTI wrapper function. Definition: cfl_generator.cpp:3992 void ProcessDot(const std::string &rDotFile, const std::string &rOutFile, const std::string &rOutFormat, const std::string &rDotExec) Convenience function: process dot file to graphics output. Definition: cfl_helper.cpp:148 libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |