KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SEXPR Namespace Reference

Classes

struct  _IN_STRING
 
struct  _OUT_STRING
 
class  INVALID_TYPE_EXCEPTION
 
class  ISEXPRABLE
 
class  PARSE_EXCEPTION
 
class  PARSER
 
class  SEXPR
 
class  SEXPR_CHILDREN_ARG
 
struct  SEXPR_DOUBLE
 
struct  SEXPR_INTEGER
 
class  SEXPR_LIST
 
class  SEXPR_SCAN_ARG
 
struct  SEXPR_STRING
 
struct  SEXPR_SYMBOL
 

Typedefs

typedef std::vector< class SEXPR * > SEXPR_VECTOR
 

Enumerations

enum class  SEXPR_TYPE : char {
  SEXPR_TYPE_LIST , SEXPR_TYPE_ATOM_INTEGER , SEXPR_TYPE_ATOM_DOUBLE , SEXPR_TYPE_ATOM_STRING ,
  SEXPR_TYPE_ATOM_SYMBOL
}
 

Functions

_OUT_STRING AsSymbol (const std::string &aString)
 
_OUT_STRING AsString (const std::string &aString)
 
_IN_STRING AsSymbol (std::string &aString)
 
_IN_STRING AsString (std::string &aString)
 
SEXPR_LISToperator<< (SEXPR_LIST &list, const ISEXPRABLE &obj)
 
SEXPR_LISToperator<< (SEXPR_LIST &list, int64_t value)
 
SEXPR_LISToperator<< (SEXPR_LIST &list, int32_t value)
 
SEXPR_LISToperator<< (SEXPR_LIST &list, float value)
 
SEXPR_LISToperator<< (SEXPR_LIST &list, double value)
 
SEXPR_LISToperator<< (SEXPR_LIST &list, std::string value)
 
SEXPR_LISToperator<< (SEXPR_LIST &list, SEXPR *obj)
 
SEXPR_LISToperator<< (SEXPR_LIST &list, const _OUT_STRING setting)
 
SEXPR_LISToperator>> (SEXPR_LIST &input, ISEXPRABLE &obj)
 
SEXPR_LISToperator>> (SEXPR_LIST &input, int32_t &inte)
 
SEXPR_LISToperator>> (SEXPR_LIST &input, std::string &str)
 
SEXPR_LISToperator>> (SEXPR_LIST &input, int64_t &lint)
 
SEXPR_LISToperator>> (SEXPR_LIST &input, float &fl)
 
SEXPR_LISToperator>> (SEXPR_LIST &input, double &dbl)
 
SEXPR_LISToperator>> (SEXPR_LIST &input, const _IN_STRING is)
 
SEXPR_LISToperator<< (SEXPR_LIST &list, SEXPR_LIST *list2)
 
std::ostream & boost_test_print_type (std::ostream &os, const SEXPR &aSexpr)
 Boost print helper for SEXPR objects.
 

Typedef Documentation

◆ SEXPR_VECTOR

typedef std::vector< class SEXPR * > SEXPR::SEXPR_VECTOR

Definition at line 43 of file sexpr.h.

Enumeration Type Documentation

◆ SEXPR_TYPE

enum class SEXPR::SEXPR_TYPE : char
strong
Enumerator
SEXPR_TYPE_LIST 
SEXPR_TYPE_ATOM_INTEGER 
SEXPR_TYPE_ATOM_DOUBLE 
SEXPR_TYPE_ATOM_STRING 
SEXPR_TYPE_ATOM_SYMBOL 

Definition at line 34 of file sexpr.h.

Function Documentation

◆ AsString() [1/2]

_OUT_STRING SEXPR::AsString ( const std::string &  aString)
inline

Definition at line 131 of file sexpr.h.

◆ AsString() [2/2]

_IN_STRING SEXPR::AsString ( std::string &  aString)
inline

Definition at line 149 of file sexpr.h.

◆ AsSymbol() [1/2]

_OUT_STRING SEXPR::AsSymbol ( const std::string &  aString)
inline

Definition at line 125 of file sexpr.h.

◆ AsSymbol() [2/2]

_IN_STRING SEXPR::AsSymbol ( std::string &  aString)
inline

Definition at line 143 of file sexpr.h.

◆ boost_test_print_type()

std::ostream & SEXPR::boost_test_print_type ( std::ostream &  os,
const SEXPR aSexpr 
)
inline

Boost print helper for SEXPR objects.

Definition at line 233 of file sexpr_test_utils.h.

References KI_TEST::GetSexprDebugType().

◆ operator<<() [1/9]

SEXPR_LIST & SEXPR::operator<< ( SEXPR_LIST list,
const _OUT_STRING  setting 
)

Definition at line 259 of file sexpr.cpp.

◆ operator<<() [2/9]

SEXPR_LIST & SEXPR::operator<< ( SEXPR_LIST list,
const ISEXPRABLE obj 
)

Definition at line 215 of file sexpr.cpp.

◆ operator<<() [3/9]

SEXPR_LIST & SEXPR::operator<< ( SEXPR_LIST list,
double  value 
)

Definition at line 241 of file sexpr.cpp.

◆ operator<<() [4/9]

SEXPR_LIST & SEXPR::operator<< ( SEXPR_LIST list,
float  value 
)

Definition at line 235 of file sexpr.cpp.

◆ operator<<() [5/9]

SEXPR_LIST & SEXPR::operator<< ( SEXPR_LIST list,
int32_t  value 
)

Definition at line 229 of file sexpr.cpp.

◆ operator<<() [6/9]

SEXPR_LIST & SEXPR::operator<< ( SEXPR_LIST list,
int64_t  value 
)

Definition at line 223 of file sexpr.cpp.

◆ operator<<() [7/9]

SEXPR_LIST & SEXPR::operator<< ( SEXPR_LIST list,
SEXPR obj 
)

Definition at line 253 of file sexpr.cpp.

◆ operator<<() [8/9]

SEXPR_LIST & SEXPR::operator<< ( SEXPR_LIST list,
SEXPR_LIST list2 
)

Definition at line 400 of file sexpr.cpp.

◆ operator<<() [9/9]

SEXPR_LIST & SEXPR::operator<< ( SEXPR_LIST list,
std::string  value 
)

Definition at line 247 of file sexpr.cpp.

◆ operator>>() [1/7]

SEXPR_LIST & SEXPR::operator>> ( SEXPR_LIST input,
const _IN_STRING  is 
)

Definition at line 368 of file sexpr.cpp.

◆ operator>>() [2/7]

SEXPR_LIST & SEXPR::operator>> ( SEXPR_LIST input,
double &  dbl 
)

Definition at line 351 of file sexpr.cpp.

◆ operator>>() [3/7]

SEXPR_LIST & SEXPR::operator>> ( SEXPR_LIST input,
float &  fl 
)

Definition at line 335 of file sexpr.cpp.

◆ operator>>() [4/7]

SEXPR_LIST & SEXPR::operator>> ( SEXPR_LIST input,
int32_t &  inte 
)

Definition at line 284 of file sexpr.cpp.

◆ operator>>() [5/7]

SEXPR_LIST & SEXPR::operator>> ( SEXPR_LIST input,
int64_t &  lint 
)

Definition at line 318 of file sexpr.cpp.

◆ operator>>() [6/7]

SEXPR_LIST & SEXPR::operator>> ( SEXPR_LIST input,
ISEXPRABLE obj 
)

Definition at line 277 of file sexpr.cpp.

◆ operator>>() [7/7]

SEXPR_LIST & SEXPR::operator>> ( SEXPR_LIST input,
std::string &  str 
)

Definition at line 301 of file sexpr.cpp.