#include <alg.h>
|
| Alg ()=default |
|
| Alg (const std::string &str, const Macro ¯o=macro_none, int job_cnt=-1, int alg_cnt=-1, bool fail_fast=false, bool add_comment=false, bool add_semicolon=true, ALG_Opt opt=ALG_Opt::NONE) |
|
const Alg_Lines & | lines () const |
|
const Alg_Line & | line (Alg_Lines::size_type index) const |
|
const Errors & | errors () const |
|
const Error & | error (Errors::size_type index) const |
|
const Warnings & | warnings () const |
|
const Warning & | warning (Errors::size_type index) const |
|
bool | hasError () const noexcept |
|
bool | write (std::ofstream &f, const std::string &lang) |
|
std::string | inlineCalc (const std::string &s, const std::string &lang) |
|
void | setIndent (bool use_space=true, unsigned indent_size=4) |
|
◆ Alg_Lines
◆ Errors
◆ Keys
◆ Line_Nos
◆ Raw_Strings
◆ Vars
◆ Warning
◆ Warnings
◆ Alg() [1/2]
◆ Alg() [2/2]
Alg::Alg |
( |
const std::string & |
str, |
|
|
const Macro & |
macro = macro_none , |
|
|
int |
job_cnt = -1 , |
|
|
int |
alg_cnt = -1 , |
|
|
bool |
fail_fast = false , |
|
|
bool |
add_comment = false , |
|
|
bool |
add_semicolon = true , |
|
|
ALG_Opt |
opt = ALG_Opt::NONE |
|
) |
| |
◆ _applyKey()
bool Alg::_applyKey |
( |
Alg_Line & |
line, |
|
|
const Keys & |
keys |
|
) |
| const |
|
inlineprivate |
◆ _indent()
std::string Alg::_indent |
( |
size_t |
indent_size | ) |
const |
|
inlineprivatenoexcept |
◆ _recoverPrint()
void Alg::_recoverPrint |
( |
| ) |
const |
|
private |
◆ _wComment()
std::ofstream & Alg::_wComment |
( |
std::ofstream & |
f, |
|
|
const std::string & |
lang, |
|
|
const std::string & |
before = "" |
|
) |
| |
|
private |
◆ error()
const Alg::Error & Alg::error |
( |
Errors::size_type |
index | ) |
const |
|
inline |
◆ errors()
◆ hasError()
bool Alg::hasError |
( |
| ) |
const |
|
inlinenoexcept |
◆ inlineCalc()
std::string Alg::inlineCalc |
( |
const std::string & |
s, |
|
|
const std::string & |
lang |
|
) |
| |
◆ line()
const Alg_Line & Alg::line |
( |
Alg_Lines::size_type |
index | ) |
const |
|
inline |
◆ lines()
◆ setIndent()
void Alg::setIndent |
( |
bool |
use_space = true , |
|
|
unsigned |
indent_size = 4 |
|
) |
| |
|
inline |
◆ warning()
const Alg::Warning & Alg::warning |
( |
Errors::size_type |
index | ) |
const |
|
inline |
◆ warnings()
◆ write()
bool Alg::write |
( |
std::ofstream & |
f, |
|
|
const std::string & |
lang |
|
) |
| |
◆ _add_comment
bool Alg::_add_comment = true |
|
private |
◆ _add_semicolon
bool Alg::_add_semicolon = true |
|
private |
◆ _alg_cnt
◆ _branch_line
◆ _contents_at_end
std::stack<std::string> Alg::_contents_at_end |
|
private |
◆ _errors
◆ _failed
bool Alg::_failed = false |
|
private |
◆ _indent_size
unsigned Alg::_indent_size = 4 |
|
private |
◆ _job_cnt
◆ _line_nos
◆ _lines
◆ _macro
◆ _raw_strings
◆ _recover_cnt
int Alg::_recover_cnt = 0 |
|
private |
◆ _recover_cnt_var
std::vector<std::string> Alg::_recover_cnt_var |
|
private |
◆ _use_space
bool Alg::_use_space = false |
|
private |
◆ _vars
◆ _warnings
◆ max_length
const int Alg::max_length = 100000 |
|
staticprivate |
The documentation for this class was generated from the following files: