lestes::lang::cplus::lex::lex_integral_literal Class Reference

Integral literal. More...

#include <lex_literal.g.hh>

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

Inheritance graph
[legend]
List of all members.

Public Types

enum  base_type { DECIMAL, OCTAL, HEXADECIMAL }
 Base type. More...
enum  suffix_type { NONE, UNSIGNED, LONG, UNSIGNED_LONG }
 Suffix type. More...

Public Member Functions

base_type base_get () const
 The method base_get returns the value of the field lex_integral_literal::base.
void base_set (base_type)
 The method base_set sets the field lex_integral_literal::base to the given value.
suffix_type suffix_get () const
 The method suffix_get returns the value of the field lex_integral_literal::suffix.
void suffix_set (suffix_type)
 The method suffix_set sets the field lex_integral_literal::suffix to the given value.
ulint start_get () const
 The method start_get returns the value of the field lex_integral_literal::start.
void start_set (ulint)
 The method start_set sets the field lex_integral_literal::start to the given value.
ulint end_get () const
 The method end_get returns the value of the field lex_integral_literal::end.
void end_set (ulint)
 The method end_set sets the field lex_integral_literal::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_integral_literalcreate (base_type a__lex_integral_literal__base, suffix_type a__lex_integral_literal__suffix, ulint a__lex_integral_literal__start, ulint a__lex_integral_literal__end)
 First generated factory method for class lex_integral_literal.

Protected Member Functions

 lex_integral_literal (base_type a__lex_integral_literal__base, suffix_type a__lex_integral_literal__suffix, ulint a__lex_integral_literal__start, ulint a__lex_integral_literal__end)
 Generated constructor for class lex_integral_literal.
virtual void gc_mark ()
 Marking routine for class lex_integral_literal.

Private Attributes

base_type base
 Base.
suffix_type suffix
 Suffix.
ulint start
 Start of value.
ulint end
 End of value.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Integral literal.

Represents integral literal properties necessary to determine the data type and numeric value. The associated value is the original number in the specified base with suffixes.


Member Enumeration Documentation

enum lestes::lang::cplus::lex::lex_integral_literal::base_type

Base type.

Enumerator:
DECIMAL 
OCTAL 
HEXADECIMAL 

enum lestes::lang::cplus::lex::lex_integral_literal::suffix_type

Suffix type.

Types of literal suffix.

Enumerator:
NONE 
UNSIGNED 
LONG 
UNSIGNED_LONG 


Constructor & Destructor Documentation

lestes::lang::cplus::lex::lex_integral_literal::lex_integral_literal ( base_type  a__lex_integral_literal__base,
suffix_type  a__lex_integral_literal__suffix,
ulint  a__lex_integral_literal__start,
ulint  a__lex_integral_literal__end 
) [protected]

Generated constructor for class lex_integral_literal.

Generated constructor for class lex_integral_literal.

Author:
lsg


Member Function Documentation

lex_integral_literal::base_type lestes::lang::cplus::lex::lex_integral_literal::base_get (  )  const

The method base_get returns the value of the field lex_integral_literal::base.

Returns:
The value of lex_integral_literal::base.
Author:
lsg

void lestes::lang::cplus::lex::lex_integral_literal::base_set ( base_type  x  ) 

The method base_set sets the field lex_integral_literal::base to the given value.

Parameters:
[in] x The new value to set lex_integral_literal::base to.
Author:
lsg

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

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

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

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

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

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

ulint lestes::lang::cplus::lex::lex_integral_literal::start_get (  )  const

The method start_get returns the value of the field lex_integral_literal::start.

Returns:
The value of lex_integral_literal::start.
Author:
lsg

void lestes::lang::cplus::lex::lex_integral_literal::start_set ( ulint  x  ) 

The method start_set sets the field lex_integral_literal::start to the given value.

Parameters:
[in] x The new value to set lex_integral_literal::start to.
Author:
lsg

ulint lestes::lang::cplus::lex::lex_integral_literal::end_get (  )  const

The method end_get returns the value of the field lex_integral_literal::end.

Returns:
The value of lex_integral_literal::end.
Author:
lsg

void lestes::lang::cplus::lex::lex_integral_literal::end_set ( ulint  x  ) 

The method end_set sets the field lex_integral_literal::end to the given value.

Parameters:
[in] x The new value to set lex_integral_literal::end to.
Author:
lsg

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

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

ptr< lex_integral_literal > lestes::lang::cplus::lex::lex_integral_literal::create ( base_type  a__lex_integral_literal__base,
suffix_type  a__lex_integral_literal__suffix,
ulint  a__lex_integral_literal__start,
ulint  a__lex_integral_literal__end 
) [static]

First generated factory method for class lex_integral_literal.

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

Author:
lsg

ptr< object::reflection_list > lestes::lang::cplus::lex::lex_integral_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_integral_literal::field_values_get (  )  const [virtual]

for purposes of dumping

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

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

Marking routine for class lex_integral_literal.

Marking routine is used for garbage collection.

Author:
lsg

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


Member Data Documentation

base_type lestes::lang::cplus::lex::lex_integral_literal::base [private]

Base.

The numerical base of the literal.

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

Suffix.

Suffix of the literal.

ulint lestes::lang::cplus::lex::lex_integral_literal::start [private]

Start of value.

Index pointing at the first digit of the value.

ulint lestes::lang::cplus::lex::lex_integral_literal::end [private]

End of value.

ptr< object::reflection_list > lestes::lang::cplus::lex::lex_integral_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