diff options
author | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2018-08-11 20:21:34 +0200 |
commit | 0ea5fc66924303d1bf73ba283a383e2aadee02f2 (patch) | |
tree | 2568e71a7ccc44ec23b8bb3f0ff97fb6bf2ed709 /docs/doxygen/nel/a02241.html | |
download | nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.tar.xz nevrax-website-self-hostable-0ea5fc66924303d1bf73ba283a383e2aadee02f2.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | docs/doxygen/nel/a02241.html | 1215 |
1 files changed, 1215 insertions, 0 deletions
diff --git a/docs/doxygen/nel/a02241.html b/docs/doxygen/nel/a02241.html new file mode 100644 index 00000000..f600f928 --- /dev/null +++ b/docs/doxygen/nel/a02241.html @@ -0,0 +1,1215 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> +<title>NeL: CAutomataDesc class Reference</title> +<link href="doxygen.css" rel="stylesheet" type="text/css"> +</head><body> +<!-- Generated by Doxygen 1.3.6 --> +<div class="qindex"> <form class="search" action="search.php" method="get"> +<a class="qindex" href="main.html">Main Page</a> | <a class="qindex" href="namespaces.html">Namespace List</a> | <a class="qindex" href="hierarchy.html">Class Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical List</a> | <a class="qindex" href="annotated.html">Data Structures</a> | <a class="qindex" href="files.html">File List</a> | <a class="qindex" href="namespacemembers.html">Namespace Members</a> | <a class="qindex" href="functions.html">Data Fields</a> | <a class="qindex" href="globals.html">Globals</a> | <a class="qindex" href="pages.html">Related Pages</a> | <span class="search"><u>S</u>earch for <input class="search" type="text" name="query" value="" size="20" accesskey="s"/></span></form></div> +<h1>CAutomataDesc Class Reference</h1><code>#include <<a class="el" href="a05468.html">automata_desc.h</a>></code> +<p> +<p>Inheritance diagram for CAutomataDesc: +<p><center><img src="a02241.png" usemap="#CAutomataDesc_map" border="0" alt=""></center> +<map name="CAutomataDesc_map"> +<area href="a02867.html" alt="NLMISC::IStreamable" shape="rect" coords="0,56,131,80"> +<area href="a02540.html" alt="NLMISC::IClassable" shape="rect" coords="0,0,131,24"> +</map> +<hr><a name="_details"></a><h2>Detailed Description</h2> +A class which describe a simple success/fail automat. Each state is identified by an unique Id. The Id IDSUCCESS (-1) is the automat Success state Id. The Id IDFAIL (-2) is the automat Fail state Id. <dl compact><dt><b>Author:</b></dt><dd>Gabriel ROBERT <p> +Nevrax France </dd></dl> +<dl compact><dt><b>Date:</b></dt><dd>2001 </dd></dl> + +<p> + +<p> +Definition at line <a class="el" href="a05468.html#l00044">44</a> of file <a class="el" href="a05468.html">automata_desc.h</a>.<table border=0 cellpadding=0 cellspacing=0> +<tr><td></td></tr> +<tr><td colspan=2><br><h2>Public Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top> </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDesca0">CAutomataDesc</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Constructor. <a href="#CAutomataDesca0"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDesca1">generateScript</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDesca2">getAutomatName</a> () const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Give the automat name. <a href="#CAutomataDesca2"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const std::list< <a class="el" href="a04558.html#a10">sint32</a> > & </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDesca3">getEntryStates</a> () const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const std::list< <a class="el" href="a04558.html#a10">sint32</a> > & </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDesca4">getFailStates</a> (<a class="el" href="a04558.html#a10">sint32</a> stateId) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDesca5">getStateName</a> (<a class="el" href="a04558.html#a10">sint32</a> stateId) const </td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Gives the name of a state. <a href="#CAutomataDesca5"></a><br><br></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const std::list< <a class="el" href="a04558.html#a10">sint32</a> > & </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDesca6">getSuccessStates</a> (<a class="el" href="a04558.html#a10">sint32</a> stateId) const </td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDesca7">removeSpaces</a> (std::string &)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>virtual </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDesca8">~CAutomataDesc</a> ()</td></tr> + +<tr><td class="mdescLeft"> </td><td class="mdescRight">Destructor. <a href="#CAutomataDesca8"></a><br><br></td></tr> +<tr><td colspan="2"><div class="groupHeader">Build Fonctions</div></td></tr> +<tr><td colspan="2"><div class="groupText">Those functions are used for building a <a class="el" href="a02241.html">CAutomataDesc</a>. <br><br></div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescz1894_0">addEntryState</a> (<a class="el" href="a04558.html#a10">sint32</a> entryId)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescz1894_1">addFailState</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a564">id</a>, <a class="el" href="a04558.html#a10">sint32</a> faileId)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescz1894_2">addState</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a564">id</a>, std::string name)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescz1894_3">addSuccessState</a> (<a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a04223.html#a564">id</a>, <a class="el" href="a04558.html#a10">sint32</a> successId)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescz1894_4">setAutomatName</a> (std::string name)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescz1894_5">setExploredState</a> (<a class="el" href="a04558.html#a10">sint32</a> stateId)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescz1894_6">setVisitedState</a> (<a class="el" href="a04558.html#a10">sint32</a> stateId)</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescz1894_7">visitedState</a> (<a class="el" href="a04558.html#a10">sint32</a> stateId)</td></tr> + +<tr><td colspan="2"><div class="groupHeader">Derived from NLMISC::IStreamable</div></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescz1896_0">getClassName</a> ()</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>void </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescz1896_1">serial</a> (<a class="el" href="a02270.html">NLMISC::IStream</a> &f) throw (NLMISC::EStream)</td></tr> + +<tr><td colspan=2><br><h2>Static Public Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a10">sint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescs0">IDFAIL</a> = -2</td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>const <a class="el" href="a04558.html#a10">sint32</a> </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescs1">IDSUCCESS</a> = -1</td></tr> + +<tr><td colspan=2><br><h2>Private Member Functions</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>bool </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescd0">exploredState</a> (<a class="el" href="a04558.html#a10">sint32</a> stateId)</td></tr> + +<tr><td colspan=2><br><h2>Private Attributes</h2></td></tr> +<tr><td class="memItemLeft" nowrap align=right valign=top>std::string </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescr0">_AutomatName</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::list< <a class="el" href="a04558.html#a10">sint32</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescr1">_EntryStates</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::set< <a class="el" href="a04558.html#a10">sint32</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescr2">_ExploredState</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::map< <a class="el" href="a04558.html#a10">sint32</a>, <a class="el" href="a02242.html">CState</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescr3">_States</a></td></tr> + +<tr><td class="memItemLeft" nowrap align=right valign=top>std::set< <a class="el" href="a04558.html#a10">sint32</a> > </td><td class="memItemRight" valign=bottom><a class="el" href="a02241.html#CAutomataDescr4">_VisitedState</a></td></tr> + +</table> +<hr><h2>Constructor & Destructor Documentation</h2> +<a class="anchor" name="CAutomataDesca0" doxytag="CAutomataDesc::CAutomataDesc" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> CAutomataDesc::CAutomataDesc </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Constructor. +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00035">35</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05467.html#l00084">addState()</a>, <a class="el" href="a05467.html#l00030">IDFAIL</a>, and <a class="el" href="a05467.html#l00029">IDSUCCESS</a>. +<p> +<div class="fragment"><pre>00036 { +00037 <a class="code" href="a02241.html#CAutomataDescz1894_2">addState</a>(IDSUCCESS, <span class="stringliteral">"AUTOMAT SUCCESS STATE"</span>); +00038 <a class="code" href="a02241.html#CAutomataDescz1894_2">addState</a>(IDFAIL, <span class="stringliteral">"AUTOMAT FAIL STATE"</span>); +00039 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDesca8" doxytag="CAutomataDesc::~CAutomataDesc" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> virtual CAutomataDesc::~<a class="el" href="a02241.html">CAutomataDesc</a> </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Destructor. +<p> + +<p> +Definition at line <a class="el" href="a05468.html#l00053">53</a> of file <a class="el" href="a05468.html">automata_desc.h</a>. +<p> +<div class="fragment"><pre>00053 {} +</pre></div> </td> + </tr> +</table> +<hr><h2>Member Function Documentation</h2> +<a class="anchor" name="CAutomataDescz1894_0" doxytag="CAutomataDesc::addEntryState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void CAutomataDesc::addEntryState </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>entryId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00108">108</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00124">_EntryStates</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00109 { +00110 <a class="code" href="a02241.html#CAutomataDescr1">_EntryStates</a>.push_back(entryId); +00111 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescz1894_1" doxytag="CAutomataDesc::addFailState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void CAutomataDesc::addFailState </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname" nowrap> <em>id</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname" nowrap> <em>faileId</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00100">100</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00123">_States</a>, <a class="el" href="a05467.html#l00113">exploredState()</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00101 { +00102 <span class="keywordflow">if</span> (!<a class="code" href="a02241.html#CAutomataDescd0">exploredState</a>(<span class="keywordtype">id</span>)) +00103 { +00104 <a class="code" href="a02241.html#CAutomataDescr3">_States</a>[<span class="keywordtype">id</span>].FailStates.push_back(faileId); +00105 } +00106 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescz1894_2" doxytag="CAutomataDesc::addState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void CAutomataDesc::addState </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname" nowrap> <em>id</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap>std::string </td> + <td class="mdname" nowrap> <em>name</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00084">84</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00123">_States</a>, <a class="el" href="a05467.html#l00113">exploredState()</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00035">CAutomataDesc()</a>. +<p> +<div class="fragment"><pre>00085 { +00086 <span class="keywordflow">if</span> (!<a class="code" href="a02241.html#CAutomataDescd0">exploredState</a>(<span class="keywordtype">id</span>)) +00087 { +00088 <a class="code" href="a02241.html#CAutomataDescr3">_States</a>[<span class="keywordtype">id</span>].Name = name; +00089 } +00090 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescz1894_3" doxytag="CAutomataDesc::addSuccessState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void CAutomataDesc::addSuccessState </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname" nowrap> <em>id</em>, </td> + </tr> + <tr> + <td class="md" nowrap align="right"></td> + <td></td> + <td class="md" nowrap><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname" nowrap> <em>successId</em></td> + </tr> + <tr> + <td></td> + <td class="md">) </td> + <td class="md" colspan="2"></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00092">92</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00123">_States</a>, <a class="el" href="a05467.html#l00113">exploredState()</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00093 { +00094 <span class="keywordflow">if</span> (!<a class="code" href="a02241.html#CAutomataDescd0">exploredState</a>(<span class="keywordtype">id</span>)) +00095 { +00096 <a class="code" href="a02241.html#CAutomataDescr3">_States</a>[<span class="keywordtype">id</span>].SuccessStates.push_back(successId); +00097 } +00098 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescd0" doxytag="CAutomataDesc::exploredState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool CAutomataDesc::exploredState </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>stateId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [private]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00113">113</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00126">_ExploredState</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00100">addFailState()</a>, <a class="el" href="a05467.html#l00084">addState()</a>, and <a class="el" href="a05467.html#l00092">addSuccessState()</a>. +<p> +<div class="fragment"><pre>00114 { +00115 std::set<sint32>::const_iterator iSet = <a class="code" href="a02241.html#CAutomataDescr2">_ExploredState</a>.find(stateId); +00116 <span class="keywordflow">return</span> (iSet != <a class="code" href="a02241.html#CAutomataDescr2">_ExploredState</a>.end()); +00117 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDesca1" doxytag="CAutomataDesc::generateScript" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void CAutomataDesc::generateScript </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00129">129</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00123">_States</a>, <a class="el" href="a05467.html#l00041">getAutomatName()</a>, <a class="el" href="a05467.html#l00046">getEntryStates()</a>, <a class="el" href="a05467.html#l00058">getFailStates()</a>, <a class="el" href="a05467.html#l00065">getStateName()</a>, <a class="el" href="a05467.html#l00051">getSuccessStates()</a>, <a class="el" href="a05467.html#l00030">IDFAIL</a>, <a class="el" href="a05467.html#l00029">IDSUCCESS</a>, <a class="el" href="a05467.html#l00241">removeSpaces()</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00130 { +00131 ofstream tmp_script( <span class="stringliteral">"fsm_script.ras"</span>); +00132 +00133 <span class="comment">// Succes and failure states</span> +00134 <span class="comment">/* tmp_script << "From Actor : Define SuccessState" << endl << "{" << endl;</span> +00135 <span class="comment"> tmp_script << "}" << endl << endl;</span> +00136 <span class="comment"> tmp_script << "From Actor : Define FailureState" << endl << "{" << endl;</span> +00137 <span class="comment"> tmp_script << "}" << endl << endl;</span> +00138 <span class="comment">*/</span> +00139 +00140 tmp_script << <span class="stringliteral">"// "</span> << <a class="code" href="a02241.html#CAutomataDesca2">getAutomatName</a>() << <span class="stringliteral">" FSM definition generated script"</span> << endl << endl; +00141 std::string name; +00142 <span class="comment">// Generates states</span> +00143 std::map<sint32,CState>::const_iterator it_m = <a class="code" href="a02241.html#CAutomataDescr3">_States</a>.begin(); +00144 <span class="keywordflow">while</span> ( it_m != <a class="code" href="a02241.html#CAutomataDescr3">_States</a>.end() ) +00145 { +00146 <a class="code" href="a04558.html#a10">sint32</a> state_id = (*it_m).first; +00147 +00148 name = <a class="code" href="a02241.html#CAutomataDesca5">getStateName</a>( state_id ); +00149 <span class="comment">// State name</span> +00150 std::string state_name = <a class="code" href="a02241.html#CAutomataDesca7">removeSpaces</a>( name ); +00151 +00152 tmp_script << <span class="stringliteral">"From Actor : Define "</span> << <span class="stringliteral">"Actor"</span> << state_name << endl << <span class="stringliteral">"{"</span> << endl; +00153 +00154 <span class="keywordflow">if</span> ( state_id != <a class="code" href="a02241.html#CAutomataDescs1">IDSUCCESS</a> && state_id != <a class="code" href="a02241.html#CAutomataDescs0">IDFAIL</a> ) +00155 { +00156 <span class="preprocessor">#ifdef NL_DEBUG</span> +00157 <span class="preprocessor"></span> tmp_script << <span class="stringliteral">"\tOnActivate()"</span> << endl; +00158 tmp_script << <span class="stringliteral">"\t\tPrint('Etat "</span> << state_name << <span class="stringliteral">" actif');"</span> << endl; +00159 tmp_script << <span class="stringliteral">"\tEnd"</span> << endl << endl; +00160 <span class="preprocessor">#endif</span> +00161 <span class="preprocessor"></span> +00162 <span class="comment">// Success transitions</span> +00163 tmp_script << <span class="stringliteral">"\tRunTell(SuccessMsg msg)"</span> << endl; +00164 std::list<sint32>::const_iterator it_s = <a class="code" href="a02241.html#CAutomataDesca6">getSuccessStates</a>( state_id ).begin(); +00165 <span class="keywordflow">while</span> ( it_s != <a class="code" href="a02241.html#CAutomataDesca6">getSuccessStates</a>( state_id ).end() ) +00166 { +00167 name = <a class="code" href="a02241.html#CAutomataDesca5">getStateName</a>( *it_s ); +00168 state_name = <a class="code" href="a02241.html#CAutomataDesca7">removeSpaces</a>( name ); +00169 tmp_script << <span class="stringliteral">"\t\tswitch('"</span> << state_name << <span class="stringliteral">"');"</span> << endl; +00170 it_s++; +00171 } +00172 tmp_script << <span class="stringliteral">"\t\tReturn msg;"</span> << endl; +00173 tmp_script << <span class="stringliteral">"\tEnd"</span> << endl << endl; +00174 +00175 <span class="comment">// Failure transitions</span> +00176 tmp_script << <span class="stringliteral">"\tRunTell(FailureMsg msg)"</span> << endl; +00177 std::list<sint32>::const_iterator it_f = <a class="code" href="a02241.html#CAutomataDesca4">getFailStates</a>( state_id ).begin(); +00178 <span class="keywordflow">while</span> ( it_f != <a class="code" href="a02241.html#CAutomataDesca4">getFailStates</a>( state_id ).end() ) +00179 { +00180 name = <a class="code" href="a02241.html#CAutomataDesca5">getStateName</a>( *it_f ); +00181 state_name = <a class="code" href="a02241.html#CAutomataDesca7">removeSpaces</a>( name ); +00182 tmp_script << <span class="stringliteral">"\t\tswitch('"</span> << state_name << <span class="stringliteral">"');"</span> << endl; +00183 it_f++; +00184 } +00185 tmp_script << <span class="stringliteral">"\t\tReturn msg;"</span> << endl; +00186 tmp_script << <span class="stringliteral">"\tEnd"</span> << endl; +00187 } +00188 <span class="keywordflow">else</span> +00189 { +00190 tmp_script << <span class="stringliteral">"\tRun()"</span> << endl; +00191 <span class="keywordflow">if</span> ( state_id == <a class="code" href="a02241.html#CAutomataDescs1">IDSUCCESS</a> ) +00192 tmp_script << <span class="stringliteral">"\t\tFather().Send(TELL, new SuccessMsg(0.0));"</span> << endl; +00193 <span class="keywordflow">else</span> +00194 tmp_script << <span class="stringliteral">"\t\tFather().Send(TELL, new FailureMsg(0.0));"</span> << endl; +00195 tmp_script << <span class="stringliteral">"\tEnd"</span> << endl; +00196 } +00197 +00198 <span class="comment">// End of the State class</span> +00199 tmp_script << <span class="stringliteral">"}"</span> << endl << endl; +00200 +00201 it_m++; +00202 } +00203 +00204 <span class="comment">// Generates FSM</span> +00205 std::string automateName = <a class="code" href="a02241.html#CAutomataDesca2">getAutomatName</a>(); +00206 std::string fsm_name = <a class="code" href="a02241.html#CAutomataDesca7">removeSpaces</a>( automateName ); +00207 tmp_script << <span class="stringliteral">"From Fsm : Define "</span> << fsm_name << endl << <span class="stringliteral">"{"</span> << endl; +00208 +00209 <span class="comment">// Generates states as static components of the FSM</span> +00210 tmp_script << <span class="stringliteral">"\tComponent:"</span> << endl; +00211 +00212 it_m = <a class="code" href="a02241.html#CAutomataDescr3">_States</a>.begin(); +00213 <span class="keywordflow">while</span> ( it_m != <a class="code" href="a02241.html#CAutomataDescr3">_States</a>.end() ) +00214 { +00215 <span class="comment">// State name</span> +00216 name = <a class="code" href="a02241.html#CAutomataDesca5">getStateName</a>( (*it_m).first ); +00217 std::string state_name = <a class="code" href="a02241.html#CAutomataDesca7">removeSpaces</a>( name ); +00218 tmp_script << <span class="stringliteral">"\t\tActor"</span> << state_name << <span class="stringliteral">"<'"</span> << state_name << <span class="stringliteral">"'>;"</span> << endl; +00219 it_m++; +00220 } +00221 tmp_script << <span class="stringliteral">"\tEnd"</span> << endl << endl; +00222 +00223 <span class="comment">// Activates entry states</span> +00224 tmp_script << <span class="stringliteral">"\tConstructor()"</span> << endl; +00225 std::list<sint32>::const_iterator it_e = <a class="code" href="a02241.html#CAutomataDesca3">getEntryStates</a>().begin(); +00226 <span class="keywordflow">while</span> ( it_e != <a class="code" href="a02241.html#CAutomataDesca3">getEntryStates</a>().end() ) +00227 { +00228 name = <a class="code" href="a02241.html#CAutomataDesca5">getStateName</a>( *it_e ); +00229 std::string state_name = <a class="code" href="a02241.html#CAutomataDesca7">removeSpaces</a>( name ); +00230 tmp_script << <span class="stringliteral">"\t\t"</span> << state_name << <span class="stringliteral">".activate();"</span> << endl; +00231 it_e++; +00232 } +00233 tmp_script << <span class="stringliteral">"\tEnd"</span> << endl; +00234 +00235 <span class="comment">// End of the Fsm Class</span> +00236 tmp_script << <span class="stringliteral">"}"</span> << endl; +00237 +00238 tmp_script.close(); +00239 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDesca2" doxytag="CAutomataDesc::getAutomatName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string CAutomataDesc::getAutomatName </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Give the automat name. +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00041">41</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00127">_AutomatName</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00129">generateScript()</a>. +<p> +<div class="fragment"><pre>00042 { +00043 <span class="keywordflow">return</span> <a class="code" href="a02241.html#CAutomataDescr0">_AutomatName</a>; +00044 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescz1896_0" doxytag="CAutomataDesc::getClassName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string CAutomataDesc::getClassName </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap><code> [virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Implements <a class="el" href="a02540.html#NL3D_1_1ITrackKeyFramer_3_01CKeyVector_01_4a6">NLMISC::IClassable</a>. +<p> +Definition at line <a class="el" href="a05467.html#l00124">124</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +<div class="fragment"><pre>00125 { +00126 <span class="keywordflow">return</span> <span class="stringliteral">"CAutomataDesc"</span>; +00127 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDesca3" doxytag="CAutomataDesc::getEntryStates" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const std::list< <a class="el" href="a04558.html#a10">sint32</a> > & CAutomataDesc::getEntryStates </td> + <td class="md" valign="top">( </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Gives the States linked to the automat entry. <dl compact><dt><b>Returns:</b></dt><dd>A list of state Id.</dd></dl> + +<p> +Definition at line <a class="el" href="a05467.html#l00046">46</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00124">_EntryStates</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00129">generateScript()</a>. +<p> +<div class="fragment"><pre>00047 { +00048 <span class="keywordflow">return</span> <a class="code" href="a02241.html#CAutomataDescr1">_EntryStates</a>; +00049 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDesca4" doxytag="CAutomataDesc::getFailStates" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const std::list< <a class="el" href="a04558.html#a10">sint32</a> > & CAutomataDesc::getFailStates </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>stateId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Gives the States linked to the stateId fail output. <dl compact><dt><b>Returns:</b></dt><dd>A list of state Id.</dd></dl> + +<p> +Definition at line <a class="el" href="a05467.html#l00058">58</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00123">_States</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00129">generateScript()</a>. +<p> +<div class="fragment"><pre>00059 { +00060 std::map<sint32,CState>::const_iterator iStates; +00061 iStates = <a class="code" href="a02241.html#CAutomataDescr3">_States</a>.find(stateId); +00062 <span class="keywordflow">return</span> (*iStates).second.FailStates; +00063 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDesca5" doxytag="CAutomataDesc::getStateName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string CAutomataDesc::getStateName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>stateId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Gives the name of a state. +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00065">65</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00123">_States</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00129">generateScript()</a>. +<p> +<div class="fragment"><pre>00066 { +00067 std::map<sint32,CState>::const_iterator iStates; +00068 iStates = <a class="code" href="a02241.html#CAutomataDescr3">_States</a>.find(stateId); +00069 <span class="keywordflow">if</span> (iStates != <a class="code" href="a02241.html#CAutomataDescr3">_States</a>.end()) +00070 { +00071 <span class="keywordflow">return</span> (*iStates).second.Name; +00072 } +00073 <span class="keywordflow">else</span> +00074 { +00075 <span class="keywordflow">return</span> <span class="stringliteral">"ERROR : Invalid State ID"</span>; +00076 } +00077 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDesca6" doxytag="CAutomataDesc::getSuccessStates" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const std::list< <a class="el" href="a04558.html#a10">sint32</a> > & CAutomataDesc::getSuccessStates </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>stateId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> const</td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> +Gives the States linked to the stateId success output. <dl compact><dt><b>Returns:</b></dt><dd>A list of state Id.</dd></dl> + +<p> +Definition at line <a class="el" href="a05467.html#l00051">51</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00123">_States</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00129">generateScript()</a>. +<p> +<div class="fragment"><pre>00052 { +00053 std::map<sint32,CState>::const_iterator iStates; +00054 iStates = <a class="code" href="a02241.html#CAutomataDescr3">_States</a>.find(stateId); +00055 <span class="keywordflow">return</span> (*iStates).second.SuccessStates; +00056 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDesca7" doxytag="CAutomataDesc::removeSpaces" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string CAutomataDesc::removeSpaces </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string & </td> + <td class="mdname1" valign="top" nowrap> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00241">241</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05646.html#l00649">buffer</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00129">generateScript()</a>. +<p> +<div class="fragment"><pre>00242 { +00243 <span class="keywordtype">int</span> i = 0; +00244 <span class="keywordtype">char</span> <a class="code" href="a04223.html#a589">buffer</a>[1024]; +00245 <span class="keywordflow">while</span> ( i != (<span class="keywordtype">int</span>)txt.size() ) +00246 { +00247 <span class="keywordflow">if</span> ( txt[i] == <span class="charliteral">' '</span>) +00248 <a class="code" href="a04223.html#a589">buffer</a>[i] = <span class="charliteral">'_'</span>; +00249 <span class="keywordflow">else</span> +00250 <a class="code" href="a04223.html#a589">buffer</a>[i] = txt[i]; +00251 i++; +00252 } +00253 <a class="code" href="a04223.html#a589">buffer</a>[i] = 0; +00254 <span class="keywordflow">return</span> std::string( buffer ); +00255 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescz1896_1" doxytag="CAutomataDesc::serial" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void CAutomataDesc::serial </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a02270.html">NLMISC::IStream</a> & </td> + <td class="mdname1" valign="top" nowrap> <em>f</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap> throw (<a class="el" href="a03781.html">NLMISC::EStream</a>)<code> [inline, virtual]</code></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Implements <a class="el" href="a02867.html#NL3D_1_1ITrackDefaulta6">NLMISC::IStreamable</a>. +<p> +Definition at line <a class="el" href="a05468.html#l00095">95</a> of file <a class="el" href="a05468.html">automata_desc.h</a>. +<p> +References <a class="el" href="a05468.html#l00127">_AutomatName</a>, <a class="el" href="a05468.html#l00124">_EntryStates</a>, and <a class="el" href="a05468.html#l00123">_States</a>. +<p> +<div class="fragment"><pre>00096 { +00097 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_States); +00098 f.<a class="code" href="a02270.html#NLMISC_1_1IStreamz2033_9">serialCont</a>(_EntryStates); +00099 f.<a class="code" href="a02270.html#NLMISC_1_1IStreama5">serial</a>(_AutomatName); +00100 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescz1894_4" doxytag="CAutomataDesc::setAutomatName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void CAutomataDesc::setAutomatName </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top">std::string </td> + <td class="mdname1" valign="top" nowrap> <em>name</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00079">79</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00127">_AutomatName</a>. +<p> +<div class="fragment"><pre>00080 { +00081 <a class="code" href="a02241.html#CAutomataDescr0">_AutomatName</a> = name; +00082 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescz1894_5" doxytag="CAutomataDesc::setExploredState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void CAutomataDesc::setExploredState </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>stateId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00119">119</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +References <a class="el" href="a05468.html#l00126">_ExploredState</a>, and <a class="el" href="a05981.html#l00099">sint32</a>. +<p> +<div class="fragment"><pre>00120 { +00121 <a class="code" href="a02241.html#CAutomataDescr2">_ExploredState</a>.insert(stateId); +00122 } +</pre></div> </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescz1894_6" doxytag="CAutomataDesc::setVisitedState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> void CAutomataDesc::setVisitedState </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>stateId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescz1894_7" doxytag="CAutomataDesc::visitedState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> bool CAutomataDesc::visitedState </td> + <td class="md" valign="top">( </td> + <td class="md" nowrap valign="top"><a class="el" href="a04558.html#a10">sint32</a> </td> + <td class="mdname1" valign="top" nowrap> <em>stateId</em> </td> + <td class="md" valign="top"> ) </td> + <td class="md" nowrap></td> + </tr> + + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + </td> + </tr> +</table> +<hr><h2>Field Documentation</h2> +<a class="anchor" name="CAutomataDescr0" doxytag="CAutomataDesc::_AutomatName" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::string <a class="el" href="a02241.html#CAutomataDescr0">CAutomataDesc::_AutomatName</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05468.html#l00127">127</a> of file <a class="el" href="a05468.html">automata_desc.h</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00041">getAutomatName()</a>, <a class="el" href="a05468.html#l00095">serial()</a>, and <a class="el" href="a05467.html#l00079">setAutomatName()</a>. </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescr1" doxytag="CAutomataDesc::_EntryStates" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::list<<a class="el" href="a04558.html#a10">sint32</a>> <a class="el" href="a02241.html#CAutomataDescr1">CAutomataDesc::_EntryStates</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05468.html#l00124">124</a> of file <a class="el" href="a05468.html">automata_desc.h</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00108">addEntryState()</a>, <a class="el" href="a05467.html#l00046">getEntryStates()</a>, and <a class="el" href="a05468.html#l00095">serial()</a>. </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescr2" doxytag="CAutomataDesc::_ExploredState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::set<<a class="el" href="a04558.html#a10">sint32</a>> <a class="el" href="a02241.html#CAutomataDescr2">CAutomataDesc::_ExploredState</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05468.html#l00126">126</a> of file <a class="el" href="a05468.html">automata_desc.h</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00113">exploredState()</a>, and <a class="el" href="a05467.html#l00119">setExploredState()</a>. </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescr3" doxytag="CAutomataDesc::_States" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::map<<a class="el" href="a04558.html#a10">sint32</a>,<a class="el" href="a02242.html">CState</a>> <a class="el" href="a02241.html#CAutomataDescr3">CAutomataDesc::_States</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05468.html#l00123">123</a> of file <a class="el" href="a05468.html">automata_desc.h</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00100">addFailState()</a>, <a class="el" href="a05467.html#l00084">addState()</a>, <a class="el" href="a05467.html#l00092">addSuccessState()</a>, <a class="el" href="a05467.html#l00129">generateScript()</a>, <a class="el" href="a05467.html#l00058">getFailStates()</a>, <a class="el" href="a05467.html#l00065">getStateName()</a>, <a class="el" href="a05467.html#l00051">getSuccessStates()</a>, and <a class="el" href="a05468.html#l00095">serial()</a>. </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescr4" doxytag="CAutomataDesc::_VisitedState" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> std::set<<a class="el" href="a04558.html#a10">sint32</a>> <a class="el" href="a02241.html#CAutomataDescr4">CAutomataDesc::_VisitedState</a><code> [private]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05468.html#l00125">125</a> of file <a class="el" href="a05468.html">automata_desc.h</a>. </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescs0" doxytag="CAutomataDesc::IDFAIL" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a02241.html#CAutomataDescs0">CAutomataDesc::IDFAIL</a> = -2<code> [static]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00030">30</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00035">CAutomataDesc()</a>, and <a class="el" href="a05467.html#l00129">generateScript()</a>. </td> + </tr> +</table> +<a class="anchor" name="CAutomataDescs1" doxytag="CAutomataDesc::IDSUCCESS" ></a><p> +<table class="mdTable" width="100%" cellpadding="2" cellspacing="0"> + <tr> + <td class="mdRow"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="md" nowrap valign="top"> const <a class="el" href="a04558.html#a10">sint32</a> <a class="el" href="a02241.html#CAutomataDescs1">CAutomataDesc::IDSUCCESS</a> = -1<code> [static]</code> + </table> + </td> + </tr> +</table> +<table cellspacing=5 cellpadding=0 border=0> + <tr> + <td> + + </td> + <td> + +<p> + +<p> +Definition at line <a class="el" href="a05467.html#l00029">29</a> of file <a class="el" href="a05467.html">automata_desc.cpp</a>. +<p> +Referenced by <a class="el" href="a05467.html#l00035">CAutomataDesc()</a>, and <a class="el" href="a05467.html#l00129">generateScript()</a>. </td> + </tr> +</table> +<hr>The documentation for this class was generated from the following files:<ul> +<li><a class="el" href="a05468.html">automata_desc.h</a><li><a class="el" href="a05467.html">automata_desc.cpp</a></ul> +<hr size="1"><address style="align: right;"><small>Generated on Tue Mar 16 06:43:53 2004 for NeL by +<a href="http://www.doxygen.org/index.html"> +<img src="doxygen.png" alt="doxygen" align="middle" border=0 > +</a>1.3.6 </small></address> +</body> +</html> |