lestes::lang::cplus::sem::as_literal Class Reference

#include <as_expr.g.hh>

Inheritance diagram for lestes::lang::cplus::sem::as_literal:

Inheritance graph
[legend]
List of all members.

Public Types

enum  literal_kind {
  UNKNOWN, CHARACTER, WIDE_CHARACTER, STRING,
  WIDE_STRING, OCTAL, HEXADECIMAL, DECIMAL,
  FLOATING, HEXADECIMAL_FLOATING
}

Public Member Functions

literal_kind kind_get () const
 The method kind_get returns the value of the field as_literal::kind.
void kind_set (literal_kind)
 The method kind_set sets the field as_literal::kind to the given value.
ptr< ::lestes::lang::cplus::lex::cpp_tokenvalue_get () const
 The method value_get returns the value of the field as_literal::value.
void value_set (const ptr< ::lestes::lang::cplus::lex::cpp_token > &)
 The method value_set sets the field as_literal::value to the given value.
virtual void accept_as_expr_visitor (ptr< as_expr_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< as_literalcreate (ptr< ::lestes::std::source_location > a__as_base__location, literal_kind a__as_literal__kind, ptr< ::lestes::lang::cplus::lex::cpp_token > a__as_literal__value)
 First generated factory method for class as_literal.

Protected Member Functions

 as_literal (ptr< ::lestes::std::source_location > a__as_base__location, literal_kind a__as_literal__kind, ptr< ::lestes::lang::cplus::lex::cpp_token > a__as_literal__value)
 Generated constructor for class as_literal.
virtual void gc_mark ()
 Marking routine for class as_literal.

Private Attributes

literal_kind kind
srp< ::lestes::lang::cplus::lex::cpp_tokenvalue

Static Private Attributes

static ptr< reflection_listreflection = reflection

Member Enumeration Documentation

enum lestes::lang::cplus::sem::as_literal::literal_kind

Enumerator:
UNKNOWN 
CHARACTER 
WIDE_CHARACTER 
STRING 
WIDE_STRING 
OCTAL 
HEXADECIMAL 
DECIMAL 
FLOATING 
HEXADECIMAL_FLOATING 


Constructor & Destructor Documentation

lestes::lang::cplus::sem::as_literal::as_literal ( ptr< ::lestes::std::source_location a__as_base__location,
literal_kind  a__as_literal__kind,
ptr< ::lestes::lang::cplus::lex::cpp_token a__as_literal__value 
) [protected]

Generated constructor for class as_literal.

Generated constructor for class as_literal.

Author:
lsg


Member Function Documentation

as_literal::literal_kind lestes::lang::cplus::sem::as_literal::kind_get (  )  const

The method kind_get returns the value of the field as_literal::kind.

Returns:
The value of as_literal::kind.
Author:
lsg

void lestes::lang::cplus::sem::as_literal::kind_set ( literal_kind  x  ) 

The method kind_set sets the field as_literal::kind to the given value.

Parameters:
[in] x The new value to set as_literal::kind to.
Author:
lsg

ptr<::lestes::lang::cplus::lex::cpp_token > lestes::lang::cplus::sem::as_literal::value_get ( void   )  const

The method value_get returns the value of the field as_literal::value.

Returns:
The value of as_literal::value.
Author:
lsg

void lestes::lang::cplus::sem::as_literal::value_set ( const ptr< ::lestes::lang::cplus::lex::cpp_token > &  x  ) 

The method value_set sets the field as_literal::value to the given value.

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

void lestes::lang::cplus::sem::as_literal::accept_as_expr_visitor ( ptr< as_expr_visitor v  )  [virtual]

Implements lestes::lang::cplus::sem::as_expression.

ptr< as_literal > lestes::lang::cplus::sem::as_literal::create ( ptr< ::lestes::std::source_location a__as_base__location,
literal_kind  a__as_literal__kind,
ptr< ::lestes::lang::cplus::lex::cpp_token a__as_literal__value 
) [static]

First generated factory method for class as_literal.

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

Author:
lsg

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

for purposes of dumping

Reimplemented from lestes::lang::cplus::sem::as_expression.

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

for purposes of dumping

Reimplemented from lestes::lang::cplus::sem::as_expression.

void lestes::lang::cplus::sem::as_literal::gc_mark ( void   )  [protected, virtual]

Marking routine for class as_literal.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::lang::cplus::sem::as_expression.


Member Data Documentation

literal_kind lestes::lang::cplus::sem::as_literal::kind [private]

srp< ::lestes::lang::cplus::lex::cpp_token > lestes::lang::cplus::sem::as_literal::value [private]

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

Reimplemented from lestes::lang::cplus::sem::as_expression.


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