|
FAUST compiler
0.9.9.6b8
|
#include <lateq.hh>
Public Member Functions | |
| Lateq (const int &numInputs, const int &numOutputs) | |
| ~Lateq () | |
| void | addInputSigFormula (const string &str) |
| Add a line of a latex equation code corresponding to a signal. More... | |
| void | addConstSigFormula (const string &str) |
| void | addParamSigFormula (const string &str) |
| void | addStoreSigFormula (const string &str) |
| void | addRecurSigFormula (const string &str) |
| void | addRDTblSigFormula (const string &str) |
| void | addRWTblSigFormula (const string &str) |
| void | addSelectSigFormula (const string &str) |
| void | addPrefixSigFormula (const string &str) |
| void | addOutputSigFormula (const string &str) |
| void | addUISigFormula (const string &path, const string &str) |
| void | println (ostream &docout) |
| Top-level method to print a whole set of compiled LaTeX formulas. More... | |
| int | inputs () const |
| int | outputs () const |
Private Member Functions | |
| string | makeItemTitle (const unsigned int formulasListSize, const string &titleName) |
| string | makeSignamesList (const list< string > &formulasList, const string &ending) |
| string | makeSignamesList (const vector< list< string > > &formulasListsVector, const string &ending) |
| For all "internal" signals. More... | |
| string | getSigName (const string &s) |
| string | makeSigDomain (const list< string > &formulasList) |
| string | getUISigName (const string &s) |
| char | getUISigType (const string &s) |
| vector< list< string > > | makeUISignamesVector (const multimap< string, string > &field) |
| void | printOneLine (const string §ion, ostream &docout) |
| Print a sorted list of input signals names ("x_i"), on a single line, separated by commas. More... | |
| void | printHierarchy (const string §ion, multimap< string, string > &field, ostream &docout) |
| Print formulas for user interface signals. More... | |
| void | printDGroup (const string §ion, list< string > &field, ostream &docout) |
| Print a dgroup environment to auto-break long formulas. More... | |
| void | printMath (const string §ion, list< string > &field, ostream &docout) |
| Print formulas for select2, select3 and prefix signals. More... | |
| bool | hasNotOnlyEmptyKeys (multimap< string, string > &mm) |
| Find out whether all keys of the multimap are empty or not. More... | |
| void | tab (int n, ostream &docout) const |
| Simple handling of indentation. More... | |
Private Attributes | |
| const int | fNumInputs |
| const int | fNumOutputs |
| list< string > | fInputSigsFormulas |
| LaTeX formulas to print. More... | |
| list< string > | fConstSigsFormulas |
| list< string > | fParamSigsFormulas |
| list< string > | fStoreSigsFormulas |
| list< string > | fRecurSigsFormulas |
| list< string > | fRDTblSigsFormulas |
| list< string > | fRWTblSigsFormulas |
| list< string > | fSelectSigsFormulas |
| list< string > | fPrefixSigsFormulas |
| list< string > | fOutputSigsFormulas |
| multimap< string, string > | fUISigsFormulas |
|
inline |
|
inline |
Definition at line 68 of file lateq.hh.
Referenced by DocCompiler::generateVariableStore().

|
inline |
Add a line of a latex equation code corresponding to a signal.
Definition at line 67 of file lateq.hh.
Referenced by DocCompiler::generateInput().

|
inline |
Definition at line 76 of file lateq.hh.
Referenced by DocCompiler::compileLateq(), and DocCompiler::generateOutput().

|
inline |
Definition at line 69 of file lateq.hh.
Referenced by DocCompiler::generateVariableStore().

|
inline |
Definition at line 75 of file lateq.hh.
Referenced by DocCompiler::generatePrefix().

|
inline |
Definition at line 72 of file lateq.hh.
Referenced by DocCompiler::generateDocConstantTbl().

|
inline |
Definition at line 71 of file lateq.hh.
Referenced by DocCompiler::generateDelayLine(), and DocCompiler::generateDelayVecNoTemp().

|
inline |
Definition at line 73 of file lateq.hh.
Referenced by DocCompiler::generateDocWriteTbl().

|
inline |
Definition at line 74 of file lateq.hh.
Referenced by DocCompiler::generateSelect2(), and DocCompiler::generateSelect3().

|
inline |
Definition at line 70 of file lateq.hh.
Referenced by DocCompiler::generateVariableStore().

|
inline |
Definition at line 77 of file lateq.hh.
Referenced by DocCompiler::generateButton(), DocCompiler::generateCheckbox(), DocCompiler::generateHSlider(), DocCompiler::generateNumEntry(), and DocCompiler::generateVSlider().

|
private |
< Looking for a left member.
< Strip "(t)" argument if exists.
< Strip "[t]" argument if exists (for tables).
< Strip indice if exists.
Definition at line 206 of file lateq.cpp.
Referenced by makeSigDomain().

|
private |
< Looking for a UI signal name "{u_?}_{i}(t)".
Definition at line 261 of file lateq.cpp.
Referenced by makeUISignamesVector().

|
private |
< Looking for a UI signal name "{u_?}_{i}".
Definition at line 275 of file lateq.cpp.
Referenced by makeUISignamesVector().

|
private |
Find out whether all keys of the multimap are empty or not.
In other words : Check that some UIs have a path (non empty).
In other other words : Check that all UIs are not at top-level.
< Look for pairs with empty keys.
Definition at line 454 of file lateq.cpp.
Referenced by printHierarchy().

|
inline |
Definition at line 82 of file lateq.hh.
Referenced by DocCompiler::generateInput().

|
private |
Definition at line 143 of file lateq.cpp.
References gDocMathStringMap.
Referenced by println().

|
private |
< No indices for single input neither single output.
< Indices "1" for all other single signal.
Definition at line 154 of file lateq.cpp.
References gDocMathStringMap, getSigName(), and to_string().
Referenced by makeSignamesList().


|
private |
Definition at line 179 of file lateq.cpp.
References gDocMathStringMap, and makeSigDomain().
Referenced by println().


|
private |
For all "internal" signals.
Definition at line 189 of file lateq.cpp.
References gDocMathStringMap, and makeSigDomain().

|
private |
Definition at line 232 of file lateq.cpp.
References getUISigName(), and getUISigType().
Referenced by println().


|
inline |
Definition at line 83 of file lateq.hh.
Referenced by DocCompiler::compileLateq(), and DocCompiler::generateOutput().

|
private |
Print a dgroup environment to auto-break long formulas.
| [in] | section | The title to print for these formulas. |
| [in] | field | The list of LaTeX formulas. |
| [out] | docout | The LaTeX output file to print into. |
Definition at line 319 of file lateq.cpp.
References tab().
Referenced by println().


|
private |
Print formulas for user interface signals.
| [in] | section | The title to print for these formulas. |
| [in] | field | This multimap contains pairs :
|
| [out] | docout | The LaTeX output file to print into. |
< Manage itemize printing for pathnames.
< Manage latex indentation offset.
Definition at line 359 of file lateq.cpp.
References gDocMathStringMap, hasNotOnlyEmptyKeys(), and tab().
Referenced by println().


| void Lateq::println | ( | ostream & | docout | ) |
Top-level method to print a whole set of compiled LaTeX formulas.
Top-level method to print a whole set of compiled LaTeX formulas, corresponding to an <equation> faustdoc tag.
Definition at line 83 of file lateq.cpp.
References compLateqIndexes(), fConstSigsFormulas, fInputSigsFormulas, fOutputSigsFormulas, fParamSigsFormulas, fPrefixSigsFormulas, fRDTblSigsFormulas, fRecurSigsFormulas, fRWTblSigsFormulas, fSelectSigsFormulas, fStoreSigsFormulas, fUISigsFormulas, gDocMathStringMap, makeItemTitle(), makeSignamesList(), makeUISignamesVector(), printDGroup(), printHierarchy(), printMath(), printOneLine(), and to_string().
Referenced by printDocEqn().


|
private |
Print formulas for select2, select3 and prefix signals.
| [in] | section | The title to print for these formulas. |
| [in] | field | The list of LaTeX arrays (for braces with two lines). |
| [out] | docout | The LaTeX output file to print into. |
Definition at line 423 of file lateq.cpp.
Referenced by println().

|
private |
Print a sorted list of input signals names ("x_i"), on a single line, separated by commas.
| [in] | section | The title to print for these formulas. |
| [out] | docout | The LaTeX output file to print into. |
Definition at line 302 of file lateq.cpp.
Referenced by println().

|
private |
Simple handling of indentation.
Definition at line 439 of file lateq.cpp.
Referenced by printDGroup(), and printHierarchy().

|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
1.8.7