KiCad PCB EDA Suite
|
#include <sexpr.h>
Public Member Functions | |
SEXPR_LIST () | |
SEXPR_LIST (int aLineNumber) | |
template<typename... Args> | |
SEXPR_LIST (const Args &... args) | |
template<typename... Args> | |
size_t | Scan (const Args &... args) |
template<typename... Args> | |
void | AddChildren (const Args &... args) |
virtual | ~SEXPR_LIST () |
bool | IsList () const |
bool | IsSymbol () const |
bool | IsString () const |
bool | IsDouble () const |
bool | IsInteger () const |
void | AddChild (SEXPR *aChild) |
SEXPR_VECTOR const * | GetChildren () const |
SEXPR * | GetChild (size_t aIndex) const |
size_t | GetNumberOfChildren () const |
int64_t | GetLongInteger () const |
int32_t | GetInteger () const |
float | GetFloat () const |
double | GetDouble () const |
std::string const & | GetString () const |
std::string const & | GetSymbol () const |
SEXPR_LIST * | GetList () |
std::string | AsString (size_t aLevel=0) const |
size_t | GetLineNumber () const |
Public Attributes | |
SEXPR_VECTOR | m_children |
Protected Attributes | |
SEXPR_TYPE | m_type |
size_t | m_lineNumber |
Private Member Functions | |
size_t | doScan (const SEXPR_SCAN_ARG *args, size_t num_args) |
void | doAddChildren (const SEXPR_CHILDREN_ARG *args, size_t num_args) |
Private Attributes | |
int | m_inStreamChild |
Friends | |
SEXPR_LIST & | operator<< (SEXPR_LIST &list, double value) |
SEXPR_LIST & | operator<< (SEXPR_LIST &list, float value) |
SEXPR_LIST & | operator<< (SEXPR_LIST &list, int64_t value) |
SEXPR_LIST & | operator<< (SEXPR_LIST &list, int32_t value) |
SEXPR_LIST & | operator<< (SEXPR_LIST &list, std::string value) |
SEXPR_LIST & | operator<< (SEXPR_LIST &list, const _OUT_STRING setting) |
SEXPR_LIST & | operator<< (SEXPR_LIST &list, const ISEXPRABLE &obj) |
SEXPR_LIST & | operator<< (SEXPR_LIST &list, SEXPR_LIST *list2) |
SEXPR_LIST & | operator<< (SEXPR_LIST &list, SEXPR *obj) |
SEXPR_LIST & | operator>> (SEXPR_LIST &input, ISEXPRABLE &obj) |
SEXPR_LIST & | operator>> (SEXPR_LIST &input, std::string &str) |
SEXPR_LIST & | operator>> (SEXPR_LIST &input, int32_t &inte) |
SEXPR_LIST & | operator>> (SEXPR_LIST &input, int64_t &inte) |
SEXPR_LIST & | operator>> (SEXPR_LIST &input, float &inte) |
SEXPR_LIST & | operator>> (SEXPR_LIST &input, double &inte) |
SEXPR_LIST & | operator>> (SEXPR_LIST &input, const _IN_STRING is) |
|
inline |
Definition at line 251 of file sexpr.h.
References AddChildren().
|
virtual |
Definition at line 205 of file sexpr.cpp.
References m_children.
|
inherited |
Definition at line 58 of file sexpr.cpp.
References m_children, and SEXPR::SEXPR_TYPE_LIST.
Referenced by BOOST_AUTO_TEST_CASE(), and doAddChildren().
|
inline |
|
inherited |
Definition at line 151 of file sexpr.cpp.
Referenced by KI_TEST::SexprConvertsToString().
|
private |
Definition at line 484 of file sexpr.cpp.
References SEXPR::SEXPR::AddChild(), SEXPR::SEXPR_CHILDREN_ARG::dbl_value, SEXPR::SEXPR_CHILDREN_ARG::DOUBLE, SEXPR::SEXPR_CHILDREN_ARG::INT, SEXPR::SEXPR_CHILDREN_ARG::int_value, SEXPR::SEXPR_CHILDREN_ARG::lint_value, SEXPR::SEXPR_CHILDREN_ARG::LONGINT, SEXPR::SEXPR_CHILDREN_ARG::SEXPR_ATOM, SEXPR::SEXPR_CHILDREN_ARG::sexpr_ptr, SEXPR::SEXPR_CHILDREN_ARG::SEXPR_STRING, SEXPR::SEXPR_CHILDREN_ARG::str_value, SEXPR::SEXPR_CHILDREN_ARG::STRING, SEXPR::SEXPR_CHILDREN_ARG::symbol, SEXPR::SEXPR_CHILDREN_ARG::type, and SEXPR::SEXPR_CHILDREN_ARG::u.
Referenced by AddChildren().
|
private |
Definition at line 407 of file sexpr.cpp.
References SEXPR::_IN_STRING::_String, SEXPR::_IN_STRING::_Symbol, SEXPR::SEXPR_SCAN_ARG::dbl_value, SEXPR::SEXPR_SCAN_ARG::DOUBLE, SEXPR::SEXPR::GetChild(), SEXPR::SEXPR_SCAN_ARG::INT, SEXPR::SEXPR_SCAN_ARG::lint_value, SEXPR::SEXPR_SCAN_ARG::LONGINT, SEXPR::SEXPR_SCAN_ARG::sexpr_str, SEXPR::SEXPR_SCAN_ARG::SEXPR_STRING, SEXPR::SEXPR_SCAN_ARG::str_value, SEXPR::SEXPR_SCAN_ARG::STRING, SEXPR::SEXPR_SCAN_ARG::STRING_COMP, SEXPR::SEXPR_SCAN_ARG::type, and SEXPR::SEXPR_SCAN_ARG::u.
Referenced by Scan().
|
inherited |
Definition at line 48 of file sexpr.cpp.
References SEXPR::SEXPR_TYPE_LIST.
Referenced by BOOST_AUTO_TEST_CASE(), doScan(), and traverseSEXPR().
|
inherited |
Definition at line 38 of file sexpr.cpp.
References SEXPR::SEXPR_TYPE_LIST.
|
inherited |
Definition at line 105 of file sexpr.cpp.
References SEXPR::SEXPR_TYPE_ATOM_DOUBLE, and SEXPR::SEXPR_TYPE_ATOM_INTEGER.
Referenced by KI_TEST::SexprIsDoubleWithValue().
|
inherited |
Definition at line 141 of file sexpr.cpp.
References SEXPR::SEXPR_TYPE_LIST.
|
inherited |
Definition at line 95 of file sexpr.cpp.
References SEXPR::SEXPR_TYPE_ATOM_INTEGER.
Referenced by KI_TEST::SexprIsIntegerWithValue().
|
inherited |
Definition at line 70 of file sexpr.cpp.
References SEXPR::SEXPR_TYPE_LIST.
Referenced by KI_TEST::SexprIsListOfLength(), and traverseSEXPR().
|
inherited |
Definition at line 80 of file sexpr.cpp.
References SEXPR::SEXPR_TYPE_ATOM_STRING.
Referenced by KI_TEST::SexprIsStringWithValue().
|
inherited |
Definition at line 128 of file sexpr.cpp.
References SEXPR::SEXPR_TYPE_ATOM_SYMBOL.
Referenced by KI_TEST::SexprIsSymbolWithValue().
|
inlineinherited |
Definition at line 52 of file sexpr.h.
References SEXPR::SEXPR_TYPE_ATOM_DOUBLE.
Referenced by KI_TEST::getType().
|
inlineinherited |
Definition at line 53 of file sexpr.h.
References SEXPR::SEXPR_TYPE_ATOM_INTEGER.
Referenced by KI_TEST::getType().
|
inlineinherited |
Definition at line 49 of file sexpr.h.
References SEXPR::SEXPR_TYPE_LIST.
Referenced by KI_TEST::getType(), and traverseSEXPR().
|
inlineinherited |
Definition at line 51 of file sexpr.h.
References SEXPR::SEXPR_TYPE_ATOM_STRING.
Referenced by KI_TEST::getType().
|
inlineinherited |
Definition at line 50 of file sexpr.h.
References SEXPR::SEXPR_TYPE_ATOM_SYMBOL.
Referenced by KI_TEST::getType().
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
SEXPR_VECTOR SEXPR::SEXPR_LIST::m_children |
Definition at line 257 of file sexpr.h.
Referenced by SEXPR::SEXPR::AddChild(), and ~SEXPR_LIST().
|
protectedinherited |