|
Doxygen
|
A class representing a C-preprocessor value. More...
#include <src/cppvalue.h>
Public Types | |
| enum class | Type { Int , Float } |
Public Member Functions | |
| constexpr | CPPValue (char c) noexcept |
| constexpr | CPPValue (long val=0) noexcept |
| constexpr | CPPValue (double val) noexcept |
| constexpr | operator double () const noexcept |
| constexpr | operator long () const noexcept |
| constexpr Type | type () const noexcept |
| void | print () const |
Static Public Member Functions | |
| static CPPValue | parseOctal (const std::string &token) |
| static CPPValue | parseDecimal (const std::string &token) |
| static CPPValue | parseHexadecimal (const std::string &token) |
| static CPPValue | parseBinary (const std::string &token) |
| static CPPValue | parseCharacter (const std::string &token) |
| static CPPValue | parseFloat (const std::string &token) |
Private Attributes | |
| Type | m_type |
| double | m_d |
| long | m_l |
A class representing a C-preprocessor value.
Definition at line 23 of file cppvalue.h.
|
strong |
|
inlineexplicitconstexprnoexcept |
Definition at line 28 of file cppvalue.h.
References Int.
Referenced by parseBinary(), parseCharacter(), parseDecimal(), parseFloat(), parseHexadecimal(), and parseOctal().
|
inlineexplicitconstexprnoexcept |
|
inlineexplicitconstexprnoexcept |
|
inlineconstexprnoexcept |
|
inlineconstexprnoexcept |
|
static |
Definition at line 55 of file cppvalue.cpp.
References CPPValue().
|
static |
Definition at line 65 of file cppvalue.cpp.
References CPPValue(), parseHexadecimal(), and parseOctal().
|
static |
Definition at line 32 of file cppvalue.cpp.
References CPPValue().
|
static |
Definition at line 102 of file cppvalue.cpp.
References CPPValue().
|
static |
Definition at line 42 of file cppvalue.cpp.
References CPPValue().
Referenced by parseCharacter().
|
static |
Definition at line 22 of file cppvalue.cpp.
References CPPValue().
Referenced by parseCharacter().
|
inline |
|
inlineconstexprnoexcept |
|
private |
Definition at line 53 of file cppvalue.h.
Referenced by CPPValue(), operator double(), operator long(), and print().
|
private |
Definition at line 54 of file cppvalue.h.
Referenced by CPPValue(), operator double(), operator long(), and print().
|
private |
Definition at line 52 of file cppvalue.h.
Referenced by CPPValue(), operator double(), operator long(), print(), and type().