lestes::lang::cplus::sem::ss_fake_declaration Class Reference

Fake declaration is used to prohibit redeclaration of an object. More...

#include <ss_declaration.g.hh>

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ss_object_declarationreal_decl_get () const
 The method real_decl_get returns the value of the field ss_fake_declaration::real_decl.
void real_decl_set (const ptr< ss_object_declaration > &)
 The method real_decl_set sets the field ss_fake_declaration::real_decl to the given value.
virtual void accept_ss_declaration_visitor (ptr< ss_declaration_visitor > v)
virtual ulint accept_ss_decl2ulint_base (ptr< ss_decl2ulint_base > v)
virtual lstring accept_ss_decl2lstring_base (ptr< ss_decl2lstring_base > 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< ss_fake_declarationcreate (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ptr< ss_declaration_time > a__ss_declaration__visible_since, ptr< ss_declaration_time > a__ss_declaration__decl_time, ptr< ss_decl_name > a__ss_declaration__name, ptr< ss_decl_seq > a__ss_declaration__contained_in, ptr< ss_type > a__ss_declaration__type, ptr< ss_linkage > a__ss_declaration__linkage, ss_access_specifier::type a__ss_declaration_with_access_specifier__access_specifier, ss_storage_class::type a__ss_declaration_with_access_specifier__storage_class, ptr< ss_object_declaration > a__ss_fake_declaration__real_decl)
 First generated factory method for class ss_fake_declaration.
static ptr< ss_fake_declarationcreate (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ptr< ss_declaration_time > a__ss_declaration__visible_since, ptr< ss_declaration_time > a__ss_declaration__decl_time, ptr< ss_decl_name > a__ss_declaration__name, ptr< ss_decl_seq > a__ss_declaration__contained_in, ptr< ss_type > a__ss_declaration__type, ptr< ss_linkage > a__ss_declaration__linkage, ptr< ss_object_declaration > a__ss_fake_declaration__real_decl)
 Second generated factory method for class ss_fake_declaration.

Protected Member Functions

 ss_fake_declaration (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ptr< ss_declaration_time > a__ss_declaration__visible_since, ptr< ss_declaration_time > a__ss_declaration__decl_time, ptr< ss_decl_name > a__ss_declaration__name, ptr< ss_decl_seq > a__ss_declaration__contained_in, ptr< ss_type > a__ss_declaration__type, ptr< ss_linkage > a__ss_declaration__linkage, ss_access_specifier::type a__ss_declaration_with_access_specifier__access_specifier, ss_storage_class::type a__ss_declaration_with_access_specifier__storage_class, ptr< ss_object_declaration > a__ss_fake_declaration__real_decl)
 Generated constructor for class ss_fake_declaration.
virtual void gc_mark ()
 Marking routine for class ss_fake_declaration.

Private Attributes

srp< ss_object_declarationreal_decl
 Points to the real declaration of the object.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Fake declaration is used to prohibit redeclaration of an object.

ss_fake_declaration is placed into an ss_decl_seq to make it impossible to declare something with the same name in the ss_decl_seq. This is a requirement of the norm. For example, at function body's outermost compound statement, it is forbidden to introduce a name that is equal to a name of a parameter.

See [3.3.2/2], [6.4/3].


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_fake_declaration::ss_fake_declaration ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ptr< ss_declaration_time a__ss_declaration__visible_since,
ptr< ss_declaration_time a__ss_declaration__decl_time,
ptr< ss_decl_name a__ss_declaration__name,
ptr< ss_decl_seq a__ss_declaration__contained_in,
ptr< ss_type a__ss_declaration__type,
ptr< ss_linkage a__ss_declaration__linkage,
ss_access_specifier::type  a__ss_declaration_with_access_specifier__access_specifier,
ss_storage_class::type  a__ss_declaration_with_access_specifier__storage_class,
ptr< ss_object_declaration a__ss_fake_declaration__real_decl 
) [protected]

Generated constructor for class ss_fake_declaration.

Generated constructor for class ss_fake_declaration.

Author:
lsg


Member Function Documentation

ptr< ss_object_declaration > lestes::lang::cplus::sem::ss_fake_declaration::real_decl_get (  )  const

The method real_decl_get returns the value of the field ss_fake_declaration::real_decl.

Returns:
The value of ss_fake_declaration::real_decl.
Author:
lsg

void lestes::lang::cplus::sem::ss_fake_declaration::real_decl_set ( const ptr< ss_object_declaration > &  x  ) 

The method real_decl_set sets the field ss_fake_declaration::real_decl to the given value.

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

void lestes::lang::cplus::sem::ss_fake_declaration::accept_ss_declaration_visitor ( ptr< ss_declaration_visitor v  )  [virtual]

Implements lestes::lang::cplus::sem::ss_declaration_with_access_specifier.

ulint lestes::lang::cplus::sem::ss_fake_declaration::accept_ss_decl2ulint_base ( ptr< ss_decl2ulint_base v  )  [virtual]

Implements lestes::lang::cplus::sem::ss_declaration_with_access_specifier.

lstring lestes::lang::cplus::sem::ss_fake_declaration::accept_ss_decl2lstring_base ( ptr< ss_decl2lstring_base v  )  [virtual]

Implements lestes::lang::cplus::sem::ss_declaration_with_access_specifier.

ptr< ss_fake_declaration > lestes::lang::cplus::sem::ss_fake_declaration::create ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ptr< ss_declaration_time a__ss_declaration__visible_since,
ptr< ss_declaration_time a__ss_declaration__decl_time,
ptr< ss_decl_name a__ss_declaration__name,
ptr< ss_decl_seq a__ss_declaration__contained_in,
ptr< ss_type a__ss_declaration__type,
ptr< ss_linkage a__ss_declaration__linkage,
ss_access_specifier::type  a__ss_declaration_with_access_specifier__access_specifier,
ss_storage_class::type  a__ss_declaration_with_access_specifier__storage_class,
ptr< ss_object_declaration a__ss_fake_declaration__real_decl 
) [static]

First generated factory method for class ss_fake_declaration.

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

Author:
lsg

ptr< ss_fake_declaration > lestes::lang::cplus::sem::ss_fake_declaration::create ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ptr< ss_declaration_time a__ss_declaration__visible_since,
ptr< ss_declaration_time a__ss_declaration__decl_time,
ptr< ss_decl_name a__ss_declaration__name,
ptr< ss_decl_seq a__ss_declaration__contained_in,
ptr< ss_type a__ss_declaration__type,
ptr< ss_linkage a__ss_declaration__linkage,
ptr< ss_object_declaration a__ss_fake_declaration__real_decl 
) [static]

Second generated factory method for class ss_fake_declaration.

This factory method for class ss_fake_declaration uses initializers.

Author:
lsg

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

for purposes of dumping

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

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

for purposes of dumping

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

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

Marking routine for class ss_fake_declaration.

Marking routine is used for garbage collection.

Author:
lsg

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


Member Data Documentation

srp< ss_object_declaration > lestes::lang::cplus::sem::ss_fake_declaration::real_decl [private]

Points to the real declaration of the object.

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

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


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