The Psyche Project
|
The ImaginaryFloatingConstant class. More...
#include <Lexeme_Constant.h>
Public Types | |
enum | Variant : std::uint8_t { Float, Double, LongDouble } |
The ImaginaryFloatingConstant::Variant enumeration. | |
![]() | |
enum | LexemeKind : std::uint16_t { Identifier, IntegerConstant, FloatingConstant, CharacterConstant, ImaginaryIntegerConstant, ImaginaryFloatingConstant, StringLiteral } |
The LexemeKind enumeraiton. | |
![]() | |
typedef const char * | iterator |
typedef iterator | const_iterator |
Public Member Functions | |
Variant | variant () const |
ImaginaryFloatingConstant (const char *chars, unsigned int size) | |
virtual ImaginaryFloatingConstant * | asImaginaryFloatingConstant () override |
virtual const ImaginaryFloatingConstant * | asImaginaryFloatingConstant () const override |
![]() | |
LexemeKind | kind () const |
std::string | valueText () const |
template<class ValueT > | |
ValueT | value () const |
template<> | |
int | value () const |
template<> | |
long | value () const |
template<> | |
long long | value () const |
template<> | |
unsigned long | value () const |
template<> | |
unsigned long long | value () const |
template<> | |
float | value () const |
template<> | |
double | value () const |
template<> | |
long double | value () const |
template<> | |
unsigned char | value () const |
template<> | |
wchar_t | value () const |
template<> | |
char16_t | value () const |
template<> | |
char32_t | value () const |
virtual Identifier * | asIdentifier () |
virtual const Identifier * | asIdentifier () const |
virtual IntegerConstant * | asIntegerConstant () |
virtual const IntegerConstant * | asIntegerConstant () const |
virtual FloatingConstant * | asFloatingConstant () |
virtual const FloatingConstant * | asFloatingConstant () const |
virtual CharacterConstant * | asCharacterConstant () |
virtual const CharacterConstant * | asCharacterConstant () const |
virtual ImaginaryIntegerConstant * | asImaginaryIntegerConstant () |
virtual const ImaginaryIntegerConstant * | asImaginaryIntegerConstant () const |
virtual StringLiteral * | asStringLiteral () |
virtual const StringLiteral * | asStringLiteral () const |
![]() | |
TextElement (const char *c_str, unsigned int size) | |
TextElement (const TextElement &other)=delete | |
void | operator= (const TextElement &other)=delete |
iterator | begin () const |
iterator | end () const |
char | at (unsigned int idx) const |
const char * | c_str () const |
unsigned int | size () const |
unsigned int | length () const |
Additional Inherited Members | |
![]() | |
Lexeme (const Lexeme &)=delete | |
Lexeme & | operator= (const Lexeme &)=delete |
Lexeme (const char *chars, unsigned int size, LexemeKind kind) | |
![]() | |
union { | |
std::uint16_t BF_all_ | |
BitFields BF_ | |
}; | |
The ImaginaryFloatingConstant class.
|
inlineoverridevirtual |
Cast this
Lexemeas an ImaginaryFloatingConstant.
Reimplemented from psy::C::Lexeme.
|
inlineoverridevirtual |
Cast this
Lexemeas an ImaginaryFloatingConstant.
Reimplemented from psy::C::Lexeme.
ImaginaryFloatingConstant::Variant ImaginaryFloatingConstant::variant | ( | ) | const |
The Variant of this
ImaginaryFloatingConstant.