lestes::lang::cplus::sem::ss_object_declaration Class Reference

A variable is an object in the terms of the norm. More...

#include <ss_declaration.g.hh>

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ss_declaration_timeinitialized_since_get () const
 The method initialized_since_get returns the value of the field ss_object_declaration::initialized_since.
void initialized_since_set (const ptr< ss_declaration_time > &)
 The method initialized_since_set sets the field ss_object_declaration::initialized_since to the given value.
ptr< or_or_functionalinitializer_get () const
 The method initializer_get returns the value of the field ss_object_declaration::initializer.
void initializer_set (const ptr< or_or_functional > &)
 The method initializer_set sets the field ss_object_declaration::initializer 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_object_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_declaration_time > a__ss_object_declaration__initialized_since, ptr< or_or_functional > a__ss_object_declaration__initializer)
 First generated factory method for class ss_object_declaration.
static ptr< ss_object_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_declaration_time > a__ss_object_declaration__initialized_since, ptr< or_or_functional > a__ss_object_declaration__initializer)
 Second generated factory method for class ss_object_declaration.

Protected Member Functions

 ss_object_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_declaration_time > a__ss_object_declaration__initialized_since, ptr< or_or_functional > a__ss_object_declaration__initializer)
 Generated constructor for class ss_object_declaration.
virtual void gc_mark ()
 Marking routine for class ss_object_declaration.

Private Attributes

srp< ss_declaration_timeinitialized_since
 The time at which the initializer appears.
srp< or_or_functionalinitializer
 TODO: this field might go to ss_parameter_declaration.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

A variable is an object in the terms of the norm.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_object_declaration::ss_object_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_declaration_time a__ss_object_declaration__initialized_since,
ptr< or_or_functional a__ss_object_declaration__initializer 
) [protected]

Generated constructor for class ss_object_declaration.

Generated constructor for class ss_object_declaration.

Author:
lsg


Member Function Documentation

ptr< ss_declaration_time > lestes::lang::cplus::sem::ss_object_declaration::initialized_since_get (  )  const

The method initialized_since_get returns the value of the field ss_object_declaration::initialized_since.

Returns:
The value of ss_object_declaration::initialized_since.
Author:
lsg

void lestes::lang::cplus::sem::ss_object_declaration::initialized_since_set ( const ptr< ss_declaration_time > &  x  ) 

The method initialized_since_set sets the field ss_object_declaration::initialized_since to the given value.

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

ptr< or_or_functional > lestes::lang::cplus::sem::ss_object_declaration::initializer_get (  )  const

The method initializer_get returns the value of the field ss_object_declaration::initializer.

Returns:
The value of ss_object_declaration::initializer.
Author:
lsg

void lestes::lang::cplus::sem::ss_object_declaration::initializer_set ( const ptr< or_or_functional > &  x  ) 

The method initializer_set sets the field ss_object_declaration::initializer to the given value.

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

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

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

Reimplemented in lestes::lang::cplus::sem::ss_bitfield_declaration, and lestes::lang::cplus::sem::ss_parameter_declaration.

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

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

Reimplemented in lestes::lang::cplus::sem::ss_bitfield_declaration, and lestes::lang::cplus::sem::ss_parameter_declaration.

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

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

Reimplemented in lestes::lang::cplus::sem::ss_bitfield_declaration, and lestes::lang::cplus::sem::ss_parameter_declaration.

ptr< ss_object_declaration > lestes::lang::cplus::sem::ss_object_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_declaration_time a__ss_object_declaration__initialized_since,
ptr< or_or_functional a__ss_object_declaration__initializer 
) [static]

First generated factory method for class ss_object_declaration.

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

Author:
lsg

ptr< ss_object_declaration > lestes::lang::cplus::sem::ss_object_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_declaration_time a__ss_object_declaration__initialized_since,
ptr< or_or_functional a__ss_object_declaration__initializer 
) [static]

Second generated factory method for class ss_object_declaration.

This factory method for class ss_object_declaration uses initializers.

Author:
lsg

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

for purposes of dumping

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

Reimplemented in lestes::lang::cplus::sem::ss_bitfield_declaration, and lestes::lang::cplus::sem::ss_parameter_declaration.

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

for purposes of dumping

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

Reimplemented in lestes::lang::cplus::sem::ss_bitfield_declaration, and lestes::lang::cplus::sem::ss_parameter_declaration.

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

Marking routine for class ss_object_declaration.

Marking routine is used for garbage collection.

Author:
lsg

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

Reimplemented in lestes::lang::cplus::sem::ss_bitfield_declaration, and lestes::lang::cplus::sem::ss_parameter_declaration.


Member Data Documentation

srp< ss_declaration_time > lestes::lang::cplus::sem::ss_object_declaration::initialized_since [private]

The time at which the initializer appears.

The time is used in determining whether a function has a default argument at the time of the call:

						void foo(int, int = 3); // declaration_time == 1;
						foo(3);	// declaration_time == 2;
						void foo(int = 2, int); // declaration_time == 3;
					
Here the first argument will have its initialized_since equal to 3 so that it can be determined that at time 2 the expression foo(); would be invalid.

srp< or_or_functional > lestes::lang::cplus::sem::ss_object_declaration::initializer [private]

TODO: this field might go to ss_parameter_declaration.

Ratio: for parameter: we see it clearly when creating declaration contrary: static const int; inside class (we need reference to decl-stmt).

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

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

Reimplemented in lestes::lang::cplus::sem::ss_bitfield_declaration, and lestes::lang::cplus::sem::ss_parameter_declaration.


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