KiCad PCB EDA Suite
|
#include <sexpr.h>
Public Member Functions | |
SEXPR_STRING (const std::string &aValue) | |
SEXPR_STRING (const std::string &aValue, int aLineNumber) | |
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 | |
std::string | m_value |
Protected Attributes | |
SEXPR_TYPE | m_type |
size_t | m_lineNumber |
|
inline |
Definition at line 101 of file sexpr.h.
References m_value, and SEXPR::SEXPR_TYPE_ATOM_STRING.
|
inline |
Definition at line 104 of file sexpr.h.
References m_value, and SEXPR::SEXPR_TYPE_ATOM_STRING.
|
inherited |
Definition at line 59 of file sexpr.cpp.
References SEXPR::SEXPR_LIST::m_children, m_type, and SEXPR::SEXPR_TYPE_LIST.
Referenced by BOOST_AUTO_TEST_CASE(), SEXPR::SEXPR_LIST::doAddChildren(), SEXPR::SEXPR_LIST::operator<<, SEXPR::SEXPR_LIST::operator<<, SEXPR::SEXPR_LIST::operator<<, SEXPR::SEXPR_LIST::operator<<, SEXPR::SEXPR_LIST::operator<<, SEXPR::SEXPR_LIST::operator<<, SEXPR::SEXPR_LIST::operator<<, and SEXPR::SEXPR_LIST::operator<<.
|
inherited |
Definition at line 152 of file sexpr.cpp.
References GetChildren(), GetDouble(), GetInteger(), GetString(), GetSymbol(), IsDouble(), IsInteger(), IsList(), IsString(), IsSymbol(), and result.
Referenced by KI_TEST::SexprConvertsToString().
|
inherited |
Definition at line 49 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_LIST.
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), SEXPR::SEXPR_LIST::doScan(), SEXPR::SEXPR_LIST::operator>>, SEXPR::SEXPR_LIST::operator>>, SEXPR::SEXPR_LIST::operator>>, SEXPR::SEXPR_LIST::operator>>, SEXPR::SEXPR_LIST::operator>>, SEXPR::SEXPR_LIST::operator>>, and traverseSEXPR().
|
inherited |
Definition at line 39 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_LIST.
Referenced by AsString().
|
inherited |
Definition at line 106 of file sexpr.cpp.
References m_type, SEXPR::SEXPR_TYPE_ATOM_DOUBLE, and SEXPR::SEXPR_TYPE_ATOM_INTEGER.
Referenced by AsString(), GetFloat(), and KI_TEST::SexprIsDoubleWithValue().
|
inherited |
Definition at line 124 of file sexpr.cpp.
References GetDouble().
|
inherited |
|
inlineinherited |
|
inherited |
Definition at line 142 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_LIST.
|
inherited |
Definition at line 96 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_INTEGER.
Referenced by GetInteger(), and KI_TEST::SexprIsIntegerWithValue().
|
inherited |
Definition at line 71 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_LIST.
Referenced by KI_TEST::SexprIsListOfLength(), and traverseSEXPR().
|
inherited |
Definition at line 81 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_STRING.
Referenced by AsString(), and KI_TEST::SexprIsStringWithValue().
|
inherited |
Definition at line 129 of file sexpr.cpp.
References GetLineNumber(), m_type, and SEXPR::SEXPR_TYPE_ATOM_SYMBOL.
Referenced by AsString(), and KI_TEST::SexprIsSymbolWithValue().
|
inlineinherited |
Definition at line 52 of file sexpr.h.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_DOUBLE.
Referenced by AsString(), and KI_TEST::getType().
|
inlineinherited |
Definition at line 53 of file sexpr.h.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_INTEGER.
Referenced by AsString(), and KI_TEST::getType().
|
inlineinherited |
Definition at line 49 of file sexpr.h.
References m_type, and SEXPR::SEXPR_TYPE_LIST.
Referenced by AsString(), KI_TEST::getType(), and traverseSEXPR().
|
inlineinherited |
Definition at line 51 of file sexpr.h.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_STRING.
Referenced by AsString(), and KI_TEST::getType().
|
inlineinherited |
Definition at line 50 of file sexpr.h.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_SYMBOL.
Referenced by AsString(), and KI_TEST::getType().
|
protectedinherited |
Definition at line 72 of file sexpr.h.
Referenced by GetLineNumber(), SEXPR(), and SEXPR().
|
protectedinherited |
Definition at line 69 of file sexpr.h.
Referenced by AddChild(), GetChild(), GetChildren(), GetDouble(), GetList(), GetLongInteger(), GetNumberOfChildren(), GetString(), GetSymbol(), IsDouble(), IsInteger(), IsList(), IsString(), IsSymbol(), SEXPR(), and SEXPR().
std::string SEXPR::SEXPR_STRING::m_value |
Definition at line 99 of file sexpr.h.
Referenced by SEXPR_STRING(), and SEXPR_STRING().