lestes::lang::cplus::lex::lex_floating_literal Class Reference

Floating literal. More...

#include <lex_literal.g.hh>

Inheritance diagram for lestes::lang::cplus::lex::lex_floating_literal:

Inheritance graph
[legend]
List of all members.

Public Types

enum  suffix_type { NONE, LONG, FLOAT }
 Suffix type. More...

Public Member Functions

suffix_type suffix_get () const
 The method suffix_get returns the value of the field lex_floating_literal::suffix.
void suffix_set (suffix_type)
 The method suffix_set sets the field lex_floating_literal::suffix to the given value.
bool exponent_negative_get () const
 The method exponent_negative_get returns the value of the field lex_floating_literal::exponent_negative.
void exponent_negative_set (bool)
 The method exponent_negative_set sets the field lex_floating_literal::exponent_negative to the given value.
ulint integer_start_get () const
 The method integer_start_get returns the value of the field lex_floating_literal::integer_start.
void integer_start_set (ulint)
 The method integer_start_set sets the field lex_floating_literal::integer_start to the given value.
ulint integer_end_get () const
 The method integer_end_get returns the value of the field lex_floating_literal::integer_end.
void integer_end_set (ulint)
 The method integer_end_set sets the field lex_floating_literal::integer_end to the given value.
ulint fraction_start_get () const
 The method fraction_start_get returns the value of the field lex_floating_literal::fraction_start.
void fraction_start_set (ulint)
 The method fraction_start_set sets the field lex_floating_literal::fraction_start to the given value.
ulint fraction_end_get () const
 The method fraction_end_get returns the value of the field lex_floating_literal::fraction_end.
void fraction_end_set (ulint)
 The method fraction_end_set sets the field lex_floating_literal::fraction_end to the given value.
ulint exponent_start_get () const
 The method exponent_start_get returns the value of the field lex_floating_literal::exponent_start.
void exponent_start_set (ulint)
 The method exponent_start_set sets the field lex_floating_literal::exponent_start to the given value.
ulint exponent_end_get () const
 The method exponent_end_get returns the value of the field lex_floating_literal::exponent_end.
void exponent_end_set (ulint)
 The method exponent_end_set sets the field lex_floating_literal::exponent_end to the given value.
virtual void accept_lex_literal_visitor (ptr< lex_literal_visitor > v)
virtual ptr< reflection_listreflection_get () const
 for purposes of dumping
virtual ptr< field_list_listfield_values_get () const
 for purposes of dumping

Static Public Member Functions

static ptr< lex_floating_literalcreate (suffix_type a__lex_floating_literal__suffix, bool a__lex_floating_literal__exponent_negative, ulint a__lex_floating_literal__integer_start, ulint a__lex_floating_literal__integer_end, ulint a__lex_floating_literal__fraction_start, ulint a__lex_floating_literal__fraction_end, ulint a__lex_floating_literal__exponent_start, ulint a__lex_floating_literal__exponent_end)
 First generated factory method for class lex_floating_literal.

Protected Member Functions

 lex_floating_literal (suffix_type a__lex_floating_literal__suffix, bool a__lex_floating_literal__exponent_negative, ulint a__lex_floating_literal__integer_start, ulint a__lex_floating_literal__integer_end, ulint a__lex_floating_literal__fraction_start, ulint a__lex_floating_literal__fraction_end, ulint a__lex_floating_literal__exponent_start, ulint a__lex_floating_literal__exponent_end)
 Generated constructor for class lex_floating_literal.
virtual void gc_mark ()
 Marking routine for class lex_floating_literal.

Private Attributes

suffix_type suffix
 Suffix.
bool exponent_negative
 Flag for negative exponent.
ulint integer_start
 Start of interger value.
ulint integer_end
 End of value.
ulint fraction_start
 Start of interger value.
ulint fraction_end
 End of value.
ulint exponent_start
 Start of interger value.
ulint exponent_end
 End of value.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Floating literal.

Represents floating literal properties necessary to determine the data type. The associated value is the original value with suffixes.


Member Enumeration Documentation

enum lestes::lang::cplus::lex::lex_floating_literal::suffix_type

Suffix type.

Types of floating literal suffix.

Enumerator:
NONE 
LONG 
FLOAT 


Constructor & Destructor Documentation

lestes::lang::cplus::lex::lex_floating_literal::lex_floating_literal ( suffix_type  a__lex_floating_literal__suffix,
bool  a__lex_floating_literal__exponent_negative,
ulint  a__lex_floating_literal__integer_start,
ulint  a__lex_floating_literal__integer_end,
ulint  a__lex_floating_literal__fraction_start,
ulint  a__lex_floating_literal__fraction_end,
ulint  a__lex_floating_literal__exponent_start,
ulint  a__lex_floating_literal__exponent_end 
) [protected]

Generated constructor for class lex_floating_literal.

Generated constructor for class lex_floating_literal.

Author:
lsg


Member Function Documentation

lex_floating_literal::suffix_type lestes::lang::cplus::lex::lex_floating_literal::suffix_get (  )  const

The method suffix_get returns the value of the field lex_floating_literal::suffix.

Returns:
The value of lex_floating_literal::suffix.
Author:
lsg

void lestes::lang::cplus::lex::lex_floating_literal::suffix_set ( suffix_type  x  ) 

The method suffix_set sets the field lex_floating_literal::suffix to the given value.

Parameters:
[in] x The new value to set lex_floating_literal::suffix to.
Author:
lsg

bool lestes::lang::cplus::lex::lex_floating_literal::exponent_negative_get (  )  const

The method exponent_negative_get returns the value of the field lex_floating_literal::exponent_negative.

Returns:
The value of lex_floating_literal::exponent_negative.
Author:
lsg

void lestes::lang::cplus::lex::lex_floating_literal::exponent_negative_set ( bool  x  ) 

The method exponent_negative_set sets the field lex_floating_literal::exponent_negative to the given value.

Parameters:
[in] x The new value to set lex_floating_literal::exponent_negative to.
Author:
lsg

ulint lestes::lang::cplus::lex::lex_floating_literal::integer_start_get (  )  const

The method integer_start_get returns the value of the field lex_floating_literal::integer_start.

Returns:
The value of lex_floating_literal::integer_start.
Author:
lsg

void lestes::lang::cplus::lex::lex_floating_literal::integer_start_set ( ulint  x  ) 

The method integer_start_set sets the field lex_floating_literal::integer_start to the given value.

Parameters:
[in] x The new value to set lex_floating_literal::integer_start to.
Author:
lsg

ulint lestes::lang::cplus::lex::lex_floating_literal::integer_end_get (  )  const

The method integer_end_get returns the value of the field lex_floating_literal::integer_end.

Returns:
The value of lex_floating_literal::integer_end.
Author:
lsg

void lestes::lang::cplus::lex::lex_floating_literal::integer_end_set ( ulint  x  ) 

The method integer_end_set sets the field lex_floating_literal::integer_end to the given value.

Parameters:
[in] x The new value to set lex_floating_literal::integer_end to.
Author:
lsg

ulint lestes::lang::cplus::lex::lex_floating_literal::fraction_start_get (  )  const

The method fraction_start_get returns the value of the field lex_floating_literal::fraction_start.

Returns:
The value of lex_floating_literal::fraction_start.
Author:
lsg

void lestes::lang::cplus::lex::lex_floating_literal::fraction_start_set ( ulint  x  ) 

The method fraction_start_set sets the field lex_floating_literal::fraction_start to the given value.

Parameters:
[in] x The new value to set lex_floating_literal::fraction_start to.
Author:
lsg

ulint lestes::lang::cplus::lex::lex_floating_literal::fraction_end_get (  )  const

The method fraction_end_get returns the value of the field lex_floating_literal::fraction_end.

Returns:
The value of lex_floating_literal::fraction_end.
Author:
lsg

void lestes::lang::cplus::lex::lex_floating_literal::fraction_end_set ( ulint  x  ) 

The method fraction_end_set sets the field lex_floating_literal::fraction_end to the given value.

Parameters:
[in] x The new value to set lex_floating_literal::fraction_end to.
Author:
lsg

ulint lestes::lang::cplus::lex::lex_floating_literal::exponent_start_get (  )  const

The method exponent_start_get returns the value of the field lex_floating_literal::exponent_start.

Returns:
The value of lex_floating_literal::exponent_start.
Author:
lsg

void lestes::lang::cplus::lex::lex_floating_literal::exponent_start_set ( ulint  x  ) 

The method exponent_start_set sets the field lex_floating_literal::exponent_start to the given value.

Parameters:
[in] x The new value to set lex_floating_literal::exponent_start to.
Author:
lsg

ulint lestes::lang::cplus::lex::lex_floating_literal::exponent_end_get (  )  const

The method exponent_end_get returns the value of the field lex_floating_literal::exponent_end.

Returns:
The value of lex_floating_literal::exponent_end.
Author:
lsg

void lestes::lang::cplus::lex::lex_floating_literal::exponent_end_set ( ulint  x  ) 

The method exponent_end_set sets the field lex_floating_literal::exponent_end to the given value.

Parameters:
[in] x The new value to set lex_floating_literal::exponent_end to.
Author:
lsg

void lestes::lang::cplus::lex::lex_floating_literal::accept_lex_literal_visitor ( ptr< lex_literal_visitor v  )  [virtual]

Implements lestes::lang::cplus::lex::lex_literal.

ptr< lex_floating_literal > lestes::lang::cplus::lex::lex_floating_literal::create ( suffix_type  a__lex_floating_literal__suffix,
bool  a__lex_floating_literal__exponent_negative,
ulint  a__lex_floating_literal__integer_start,
ulint  a__lex_floating_literal__integer_end,
ulint  a__lex_floating_literal__fraction_start,
ulint  a__lex_floating_literal__fraction_end,
ulint  a__lex_floating_literal__exponent_start,
ulint  a__lex_floating_literal__exponent_end 
) [static]

First generated factory method for class lex_floating_literal.

This factory method for class lex_floating_literal takes values of all fields as arguments.

Author:
lsg

ptr< object::reflection_list > lestes::lang::cplus::lex::lex_floating_literal::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::lang::cplus::lex::lex_literal.

ptr< object::field_list_list > lestes::lang::cplus::lex::lex_floating_literal::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::lang::cplus::lex::lex_literal.

void lestes::lang::cplus::lex::lex_floating_literal::gc_mark ( void   )  [protected, virtual]

Marking routine for class lex_floating_literal.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::lang::cplus::lex::lex_literal.


Member Data Documentation

suffix_type lestes::lang::cplus::lex::lex_floating_literal::suffix [private]

Suffix.

bool lestes::lang::cplus::lex::lex_floating_literal::exponent_negative [private]

Flag for negative exponent.

Set to true for negative exponent.

ulint lestes::lang::cplus::lex::lex_floating_literal::integer_start [private]

Start of interger value.

Index pointing at the first digit of the integer value.

ulint lestes::lang::cplus::lex::lex_floating_literal::integer_end [private]

End of value.

ulint lestes::lang::cplus::lex::lex_floating_literal::fraction_start [private]

Start of interger value.

Index pointing at the first digit of the fraction value.

ulint lestes::lang::cplus::lex::lex_floating_literal::fraction_end [private]

End of value.

ulint lestes::lang::cplus::lex::lex_floating_literal::exponent_start [private]

Start of interger value.

Index pointing at the first digit of the exponent value.

ulint lestes::lang::cplus::lex::lex_floating_literal::exponent_end [private]

End of value.

ptr< object::reflection_list > lestes::lang::cplus::lex::lex_floating_literal::reflection = reflection [static, private]

Reimplemented from lestes::lang::cplus::lex::lex_literal.


The documentation for this class was generated from the following files:
Generated on Mon Feb 12 18:43:43 2007 for lestes by doxygen 1.5.1-20070107