KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SEXPR::SEXPR_DOUBLE Struct Reference

#include <sexpr.h>

Inheritance diagram for SEXPR::SEXPR_DOUBLE:
SEXPR::SEXPR

Public Member Functions

 SEXPR_DOUBLE (double aValue)
 
 SEXPR_DOUBLE (double 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
 
SEXPRGetChild (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_LISTGetList ()
 
std::string AsString (size_t aLevel=0) const
 
size_t GetLineNumber () const
 

Public Attributes

double m_value
 

Protected Attributes

SEXPR_TYPE m_type
 
size_t m_lineNumber
 

Detailed Description

Definition at line 86 of file sexpr.h.

Constructor & Destructor Documentation

◆ SEXPR_DOUBLE() [1/2]

SEXPR::SEXPR_DOUBLE::SEXPR_DOUBLE ( double aValue)
inline

Definition at line 90 of file sexpr.h.

References m_value, and SEXPR::SEXPR_TYPE_ATOM_DOUBLE.

◆ SEXPR_DOUBLE() [2/2]

SEXPR::SEXPR_DOUBLE::SEXPR_DOUBLE ( double aValue,
int aLineNumber )
inline

Definition at line 93 of file sexpr.h.

References m_value, and SEXPR::SEXPR_TYPE_ATOM_DOUBLE.

Member Function Documentation

◆ AddChild()

◆ AsString()

std::string SEXPR::SEXPR::AsString ( size_t aLevel = 0) const
inherited

◆ GetChild()

◆ GetChildren()

SEXPR_VECTOR const * SEXPR::SEXPR::GetChildren ( ) const
inherited

Definition at line 39 of file sexpr.cpp.

References m_type, and SEXPR::SEXPR_TYPE_LIST.

Referenced by AsString().

◆ GetDouble()

double SEXPR::SEXPR::GetDouble ( ) const
inherited

◆ GetFloat()

float SEXPR::SEXPR::GetFloat ( ) const
inherited

Definition at line 124 of file sexpr.cpp.

References GetDouble().

◆ GetInteger()

int32_t SEXPR::SEXPR::GetInteger ( ) const
inherited

Definition at line 91 of file sexpr.cpp.

References GetLongInteger().

Referenced by AsString().

◆ GetLineNumber()

size_t SEXPR::SEXPR::GetLineNumber ( ) const
inlineinherited

Definition at line 66 of file sexpr.h.

References m_lineNumber.

Referenced by GetSymbol().

◆ GetList()

SEXPR_LIST * SEXPR::SEXPR::GetList ( )
inherited

Definition at line 142 of file sexpr.cpp.

References m_type, and SEXPR::SEXPR_TYPE_LIST.

◆ GetLongInteger()

int64_t SEXPR::SEXPR::GetLongInteger ( ) const
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().

◆ GetNumberOfChildren()

size_t SEXPR::SEXPR::GetNumberOfChildren ( ) const
inherited

Definition at line 71 of file sexpr.cpp.

References m_type, and SEXPR::SEXPR_TYPE_LIST.

Referenced by KI_TEST::SexprIsListOfLength(), and traverseSEXPR().

◆ GetString()

std::string const & SEXPR::SEXPR::GetString ( ) const
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().

◆ GetSymbol()

std::string const & SEXPR::SEXPR::GetSymbol ( ) const
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().

◆ IsDouble()

bool SEXPR::SEXPR::IsDouble ( ) const
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().

◆ IsInteger()

bool SEXPR::SEXPR::IsInteger ( ) const
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().

◆ IsList()

bool SEXPR::SEXPR::IsList ( ) const
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().

◆ IsString()

bool SEXPR::SEXPR::IsString ( ) const
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().

◆ IsSymbol()

bool SEXPR::SEXPR::IsSymbol ( ) const
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().

Member Data Documentation

◆ m_lineNumber

size_t SEXPR::SEXPR::m_lineNumber
protectedinherited

Definition at line 72 of file sexpr.h.

Referenced by GetLineNumber(), SEXPR(), and SEXPR().

◆ m_type

◆ m_value

double SEXPR::SEXPR_DOUBLE::m_value

Definition at line 88 of file sexpr.h.

Referenced by SEXPR_DOUBLE(), and SEXPR_DOUBLE().


The documentation for this struct was generated from the following file: