lestes::lang::cplus::sem::sa_param_declaration_empty Class Reference

Empty parameter declaration checker. More...

#include <sa_param_declaration_empty.g.hh>

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

bool process (ptr< as_param_declaration > decl)
 Checks empty parameter 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< sa_param_declaration_emptycreate ()
 First generated factory method for class sa_param_declaration_empty.

Protected Member Functions

 sa_param_declaration_empty ()
 Generated constructor for class sa_param_declaration_empty.
virtual void gc_mark ()
 Marking routine for class sa_param_declaration_empty.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Empty parameter declaration checker.

Tests whether a parameter declaration is a special case of bare (void) representing empty parameter list. It should be run only in case there is exactly one parameter declaration in the parameter declaration list, in other cases this kind of declaration is disallowed.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::sa_param_declaration_empty::sa_param_declaration_empty (  )  [protected]

Generated constructor for class sa_param_declaration_empty.

Generated constructor for class sa_param_declaration_empty.

Author:
lsg


Member Function Documentation

bool lestes::lang::cplus::sem::sa_param_declaration_empty::process ( ptr< as_param_declaration decl  ) 

Checks empty parameter declaration.

Tests whether a parameter declaration contains only void declaration specifier and nothing else, no declarator specifiers and no name, so that it can be considered as a (void) parameter, designating empty paramter list. Does not report any error, only checks the conditions. Errors are reported in the parameter declaration itself.

Precondition:
decl != NULL
Parameters:
decl The parameter declaration to test.
Returns:
true If the declaration designates empty parameter list.

ptr< sa_param_declaration_empty > lestes::lang::cplus::sem::sa_param_declaration_empty::create ( void   )  [static]

First generated factory method for class sa_param_declaration_empty.

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

Author:
lsg

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

for purposes of dumping

Reimplemented from lestes::std::object.

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

for purposes of dumping

Reimplemented from lestes::std::object.

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

Marking routine for class sa_param_declaration_empty.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::std::mem::keystone.


Member Data Documentation

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

Reimplemented from lestes::std::object.


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