lestes::lang::cplus::syn::hint_from_declaration_set Class Reference

#include <hinter.g.hh>

Inheritance diagram for lestes::lang::cplus::syn::hint_from_declaration_set:

lestes::lang::cplus::sem::ss_declaration_visitor lestes::std::visitor_base lestes::std::object lestes::std::mem::keystone List of all members.

Public Member Functions

int result_get () const
 The method result_get returns the value of the field hint_from_declaration_set::result.
void result_set (int)
 The method result_set sets the field hint_from_declaration_set::result to the given value.
bool was_function_get () const
 The method was_function_get returns the value of the field hint_from_declaration_set::was_function.
void was_function_set (bool)
 The method was_function_set sets the field hint_from_declaration_set::was_function to the given value.
int process (ptr< ::lestes::lang::cplus::sem::declaration_set_type >)
virtual void visit_ss_namespace_definition (ptr< ::lestes::lang::cplus::sem::ss_namespace_definition >)
virtual void visit_ss_object_declaration (ptr< ::lestes::lang::cplus::sem::ss_object_declaration >)
virtual void visit_ss_bitfield_declaration (ptr< ::lestes::lang::cplus::sem::ss_bitfield_declaration >)
virtual void visit_ss_parameter_declaration (ptr< ::lestes::lang::cplus::sem::ss_parameter_declaration >)
virtual void visit_ss_fake_declaration (ptr< ::lestes::lang::cplus::sem::ss_fake_declaration >)
virtual void visit_ss_injected_class_declaration (ptr< ::lestes::lang::cplus::sem::ss_injected_class_declaration >)
virtual void visit_ss_enum_definition (ptr< ::lestes::lang::cplus::sem::ss_enum_definition >)
virtual void visit_ss_typedef_definition (ptr< ::lestes::lang::cplus::sem::ss_typedef_definition >)
virtual void visit_ss_enumerator_declaration (ptr< ::lestes::lang::cplus::sem::ss_enumerator_declaration >)
virtual void visit_ss_structure_declaration (ptr< ::lestes::lang::cplus::sem::ss_structure_declaration >)
virtual void visit_ss_function_declaration (ptr< ::lestes::lang::cplus::sem::ss_function_declaration >)
virtual void visit_ss_method_declaration (ptr< ::lestes::lang::cplus::sem::ss_method_declaration >)
virtual void visit_ss_using_declaration (ptr< ::lestes::lang::cplus::sem::ss_using_declaration >)
virtual void visit_ss_compound_stmt_declaration (ptr< ::lestes::lang::cplus::sem::ss_compound_stmt_declaration >)
virtual void visit_ss_builtin_operator_declaration (ptr< ::lestes::lang::cplus::sem::ss_builtin_operator_declaration >)
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< hint_from_declaration_setinstance ()
 Generated instance() method for singleton class hint_from_declaration_set.

Protected Member Functions

 hint_from_declaration_set (int a__hint_from_declaration_set__result, bool a__hint_from_declaration_set__was_function)
 Generated constructor for class hint_from_declaration_set.
virtual void gc_mark ()
 Marking routine for class hint_from_declaration_set.

Private Attributes

int result
bool was_function

Static Private Attributes

static ptr< reflection_listreflection = reflection
static ptr< hint_from_declaration_setthe_instance = the_instance

Detailed Description

Definition at line 170 of file hinter.g.hh.


Constructor & Destructor Documentation

lestes::lang::cplus::syn::hint_from_declaration_set::hint_from_declaration_set ( int  a__hint_from_declaration_set__result,
bool  a__hint_from_declaration_set__was_function 
) [protected]

Generated constructor for class hint_from_declaration_set.

Generated constructor for class hint_from_declaration_set.

Author:
lsg

Definition at line 238 of file hinter.g.cc.

Referenced by instance().

00240         : ss_declaration_visitor(), result(a__hint_from_declaration_set__result), was_function(a__hint_from_declaration_set__was_function)
00241 {}


Member Function Documentation

int lestes::lang::cplus::syn::hint_from_declaration_set::result_get (  )  const

The method result_get returns the value of the field hint_from_declaration_set::result.

Returns:
The value of hint_from_declaration_set::result.
Author:
lsg

Definition at line 187 of file hinter.g.cc.

References result.

00188 {
00189         return result;
00190 }

void lestes::lang::cplus::syn::hint_from_declaration_set::result_set ( int  x  ) 

The method result_set sets the field hint_from_declaration_set::result to the given value.

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

Definition at line 196 of file hinter.g.cc.

References result.

00197 {
00198         hint_from_declaration_set::result = x;
00199 }

bool lestes::lang::cplus::syn::hint_from_declaration_set::was_function_get (  )  const

The method was_function_get returns the value of the field hint_from_declaration_set::was_function.

Returns:
The value of hint_from_declaration_set::was_function.
Author:
lsg

Definition at line 205 of file hinter.g.cc.

References was_function.

00206 {
00207         return was_function;
00208 }

void lestes::lang::cplus::syn::hint_from_declaration_set::was_function_set ( bool  x  ) 

The method was_function_set sets the field hint_from_declaration_set::was_function to the given value.

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

Definition at line 214 of file hinter.g.cc.

References was_function.

00215 {
00216         hint_from_declaration_set::was_function = x;
00217 }

int lestes::lang::cplus::syn::hint_from_declaration_set::process ( ptr< ::lestes::lang::cplus::sem::declaration_set_type  ) 

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_namespace_definition ( ptr< ::lestes::lang::cplus::sem::ss_namespace_definition  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_object_declaration ( ptr< ::lestes::lang::cplus::sem::ss_object_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_bitfield_declaration ( ptr< ::lestes::lang::cplus::sem::ss_bitfield_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_parameter_declaration ( ptr< ::lestes::lang::cplus::sem::ss_parameter_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_fake_declaration ( ptr< ::lestes::lang::cplus::sem::ss_fake_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_injected_class_declaration ( ptr< ::lestes::lang::cplus::sem::ss_injected_class_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_enum_definition ( ptr< ::lestes::lang::cplus::sem::ss_enum_definition  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_typedef_definition ( ptr< ::lestes::lang::cplus::sem::ss_typedef_definition  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_enumerator_declaration ( ptr< ::lestes::lang::cplus::sem::ss_enumerator_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_structure_declaration ( ptr< ::lestes::lang::cplus::sem::ss_structure_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_function_declaration ( ptr< ::lestes::lang::cplus::sem::ss_function_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_method_declaration ( ptr< ::lestes::lang::cplus::sem::ss_method_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_using_declaration ( ptr< ::lestes::lang::cplus::sem::ss_using_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_compound_stmt_declaration ( ptr< ::lestes::lang::cplus::sem::ss_compound_stmt_declaration  )  [virtual]

virtual void lestes::lang::cplus::syn::hint_from_declaration_set::visit_ss_builtin_operator_declaration ( ptr< ::lestes::lang::cplus::sem::ss_builtin_operator_declaration  )  [virtual]

ptr< hint_from_declaration_set > lestes::lang::cplus::syn::hint_from_declaration_set::instance ( void   )  [static]

Generated instance() method for singleton class hint_from_declaration_set.

Generated instance() method for singleton class hint_from_declaration_set.

Author:
lsg

Definition at line 229 of file hinter.g.cc.

References hint_from_declaration_set(), and the_instance.

Referenced by lestes::lang::cplus::syn::hinter::compute_hint().

00230 {
00231          return the_instance ? the_instance : the_instance = new hint_from_declaration_set(0, false);
00232 }

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

for purposes of dumping

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

Definition at line 243 of file hinter.g.cc.

References lestes::std::list< T >::create(), reflection, and lestes::lang::cplus::sem::ss_declaration_visitor::reflection_get().

00244 {
00245         if (!reflection) {
00246                 typedef class_reflection::field_metadata md;
00247                 typedef class_reflection::field_metadata_list mdlist;
00248                 ptr<mdlist> mdl = mdlist::create();
00249                 mdl->push_back( md::create( "result", "int" ) );
00250                 mdl->push_back( md::create( "was_function", "bool" ) );
00251                 reflection = reflection_list::create( ::lestes::lang::cplus::sem::ss_declaration_visitor::reflection_get() );
00252                 reflection->push_back( class_reflection::create( "hint_from_declaration_set", mdl ) );
00253         }
00254         return reflection;
00255 }

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

for purposes of dumping

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

Definition at line 257 of file hinter.g.cc.

References lestes::std::list< T >::create(), lestes::lang::cplus::sem::ss_declaration_visitor::field_values_get(), and result.

00258 {
00259         ptr < field_list_list > result = ::lestes::lang::cplus::sem::ss_declaration_visitor::field_values_get();
00260         result->push_back( value_list::create() );
00261         result->back()->push_back( objectize< int > ::create( this->result ) );
00262         result->push_back( value_list::create() );
00263         result->back()->push_back( objectize< bool > ::create( this->was_function ) );
00264         return result;
00265 }

void lestes::lang::cplus::syn::hint_from_declaration_set::gc_mark ( void   )  [protected, virtual]

Marking routine for class hint_from_declaration_set.

Marking routine is used for garbage collection.

Author:
lsg

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

Definition at line 272 of file hinter.g.cc.

References lestes::lang::cplus::sem::ss_declaration_visitor::gc_mark().


Member Data Documentation

int lestes::lang::cplus::syn::hint_from_declaration_set::result [private]

Definition at line 237 of file hinter.g.hh.

Referenced by field_values_get(), result_get(), and result_set().

bool lestes::lang::cplus::syn::hint_from_declaration_set::was_function [private]

Definition at line 238 of file hinter.g.hh.

Referenced by was_function_get(), and was_function_set().

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

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

Definition at line 239 of file hinter.g.hh.

Referenced by reflection_get().

ptr< hint_from_declaration_set > lestes::lang::cplus::syn::hint_from_declaration_set::the_instance = the_instance [static, private]

Static field hint_from_declaration_set::the_instance.

Author:
lsg

Definition at line 240 of file hinter.g.hh.

Referenced by instance().


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