|
KiCad PCB EDA Suite
|
#include <sexpr.h>
Public Member Functions | |
| virtual | ~SEXPR () |
| 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 |
Protected Member Functions | |
| SEXPR (SEXPR_TYPE aType, size_t aLineNumber) | |
| SEXPR (SEXPR_TYPE aType) | |
Protected Attributes | |
| SEXPR_TYPE | m_type |
| size_t | m_lineNumber |
|
protected |
Definition at line 29 of file sexpr.cpp.
References m_lineNumber, and m_type.
|
protected |
Definition at line 34 of file sexpr.cpp.
References m_lineNumber, and m_type.
| void SEXPR::SEXPR::AddChild | ( | SEXPR * | aChild | ) |
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<<.
| std::string SEXPR::SEXPR::AsString | ( | size_t | aLevel = 0 | ) | const |
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().
| SEXPR * SEXPR::SEXPR::GetChild | ( | size_t | aIndex | ) | const |
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().
| SEXPR_VECTOR const * SEXPR::SEXPR::GetChildren | ( | ) | const |
Definition at line 39 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_LIST.
Referenced by AsString().
| double SEXPR::SEXPR::GetDouble | ( | ) | const |
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().
| float SEXPR::SEXPR::GetFloat | ( | ) | const |
Definition at line 124 of file sexpr.cpp.
References GetDouble().
| int32_t SEXPR::SEXPR::GetInteger | ( | ) | const |
|
inline |
| SEXPR_LIST * SEXPR::SEXPR::GetList | ( | ) |
Definition at line 142 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_LIST.
| int64_t SEXPR::SEXPR::GetLongInteger | ( | ) | const |
Definition at line 96 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_INTEGER.
Referenced by GetInteger(), and KI_TEST::SexprIsIntegerWithValue().
| size_t SEXPR::SEXPR::GetNumberOfChildren | ( | ) | const |
Definition at line 71 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_LIST.
Referenced by KI_TEST::SexprIsListOfLength(), and traverseSEXPR().
| std::string const & SEXPR::SEXPR::GetString | ( | ) | const |
Definition at line 81 of file sexpr.cpp.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_STRING.
Referenced by AsString(), and KI_TEST::SexprIsStringWithValue().
| std::string const & SEXPR::SEXPR::GetSymbol | ( | ) | const |
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().
|
inline |
Definition at line 52 of file sexpr.h.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_DOUBLE.
Referenced by AsString(), and KI_TEST::getType().
|
inline |
Definition at line 53 of file sexpr.h.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_INTEGER.
Referenced by AsString(), and KI_TEST::getType().
|
inline |
Definition at line 49 of file sexpr.h.
References m_type, and SEXPR::SEXPR_TYPE_LIST.
Referenced by AsString(), KI_TEST::getType(), and traverseSEXPR().
|
inline |
Definition at line 51 of file sexpr.h.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_STRING.
Referenced by AsString(), and KI_TEST::getType().
|
inline |
Definition at line 50 of file sexpr.h.
References m_type, and SEXPR::SEXPR_TYPE_ATOM_SYMBOL.
Referenced by AsString(), and KI_TEST::getType().
|
protected |
Definition at line 72 of file sexpr.h.
Referenced by GetLineNumber(), SEXPR(), and SEXPR().
|
protected |
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().