lestes::lang::cplus::sem::ss_declaration Class Reference

Class for declarations. More...

#include <ss_declaration.g.hh>

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

Inheritance graph
[legend]
List of all members.

Public Member Functions

ptr< ss_declaration_timevisible_since_get () const
 The method visible_since_get returns the value of the field ss_declaration::visible_since.
void visible_since_set (const ptr< ss_declaration_time > &)
 The method visible_since_set sets the field ss_declaration::visible_since to the given value.
ptr< ss_declaration_timedecl_time_get () const
 The method decl_time_get returns the value of the field ss_declaration::decl_time.
void decl_time_set (const ptr< ss_declaration_time > &)
 The method decl_time_set sets the field ss_declaration::decl_time to the given value.
ptr< ss_decl_namename_get () const
 The method name_get returns the value of the field ss_declaration::name.
void name_set (const ptr< ss_decl_name > &)
 The method name_set sets the field ss_declaration::name to the given value.
ptr< ss_decl_seqcontained_in_get () const
 The method contained_in_get returns the value of the field ss_declaration::contained_in.
void contained_in_set (const ptr< ss_decl_seq > &)
 The method contained_in_set sets the field ss_declaration::contained_in to the given value.
ptr< ss_typetype_get () const
 The method type_get returns the value of the field ss_declaration::type.
void type_set (const ptr< ss_type > &)
 The method type_set sets the field ss_declaration::type to the given value.
ptr< ss_linkagelinkage_get () const
 The method linkage_get returns the value of the field ss_declaration::linkage.
void linkage_set (const ptr< ss_linkage > &)
 The method linkage_set sets the field ss_declaration::linkage to the given value.
virtual void accept_ss_declaration_visitor (ptr< ss_declaration_visitor > v) override
virtual ulint accept_ss_decl2ulint_base (ptr< ss_decl2ulint_base > v) override
virtual lstring accept_ss_decl2lstring_base (ptr< ss_decl2lstring_base > v) override
virtual ptr< reflection_listreflection_get () const
 for purposes of dumping
virtual ptr< field_list_listfield_values_get () const
 for purposes of dumping

Protected Member Functions

 ss_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)
 Generated constructor for class ss_declaration.
virtual void gc_mark ()
 Marking routine for class ss_declaration.

Private Attributes

srp< ss_declaration_timevisible_since
 Invisible declarations are results of friend declarations.
srp< ss_declaration_timedecl_time
srp< ss_decl_namename
srp< ss_decl_seqcontained_in
srp< ss_typetype
 Type of the declared thing.
srp< ss_linkagelinkage
 external,internal,inline,no linkage

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Class for declarations.


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_declaration::ss_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 
) [protected]

Generated constructor for class ss_declaration.

Generated constructor for class ss_declaration.

Author:
lsg


Member Function Documentation

ptr< ss_declaration_time > lestes::lang::cplus::sem::ss_declaration::visible_since_get (  )  const

The method visible_since_get returns the value of the field ss_declaration::visible_since.

Returns:
The value of ss_declaration::visible_since.
Author:
lsg

void lestes::lang::cplus::sem::ss_declaration::visible_since_set ( const ptr< ss_declaration_time > &  x  ) 

The method visible_since_set sets the field ss_declaration::visible_since to the given value.

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

ptr< ss_declaration_time > lestes::lang::cplus::sem::ss_declaration::decl_time_get (  )  const

The method decl_time_get returns the value of the field ss_declaration::decl_time.

Returns:
The value of ss_declaration::decl_time.
Author:
lsg

void lestes::lang::cplus::sem::ss_declaration::decl_time_set ( const ptr< ss_declaration_time > &  x  ) 

The method decl_time_set sets the field ss_declaration::decl_time to the given value.

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

ptr< ss_decl_name > lestes::lang::cplus::sem::ss_declaration::name_get (  )  const

The method name_get returns the value of the field ss_declaration::name.

Returns:
The value of ss_declaration::name.
Author:
lsg

void lestes::lang::cplus::sem::ss_declaration::name_set ( const ptr< ss_decl_name > &  x  ) 

The method name_set sets the field ss_declaration::name to the given value.

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

ptr< ss_decl_seq > lestes::lang::cplus::sem::ss_declaration::contained_in_get (  )  const

The method contained_in_get returns the value of the field ss_declaration::contained_in.

Returns:
The value of ss_declaration::contained_in.
Author:
lsg

void lestes::lang::cplus::sem::ss_declaration::contained_in_set ( const ptr< ss_decl_seq > &  x  ) 

The method contained_in_set sets the field ss_declaration::contained_in to the given value.

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

ptr< ss_type > lestes::lang::cplus::sem::ss_declaration::type_get ( void   )  const

The method type_get returns the value of the field ss_declaration::type.

Returns:
The value of ss_declaration::type.
Author:
lsg

void lestes::lang::cplus::sem::ss_declaration::type_set ( const ptr< ss_type > &  x  ) 

The method type_set sets the field ss_declaration::type to the given value.

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

ptr< ss_linkage > lestes::lang::cplus::sem::ss_declaration::linkage_get (  )  const

The method linkage_get returns the value of the field ss_declaration::linkage.

Returns:
The value of ss_declaration::linkage.
Author:
lsg

void lestes::lang::cplus::sem::ss_declaration::linkage_set ( const ptr< ss_linkage > &  x  ) 

The method linkage_set sets the field ss_declaration::linkage to the given value.

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

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

Implemented in lestes::lang::cplus::sem::ss_namespace_definition, lestes::lang::cplus::sem::ss_declaration_with_access_specifier, lestes::lang::cplus::sem::ss_object_declaration, lestes::lang::cplus::sem::ss_bitfield_declaration, lestes::lang::cplus::sem::ss_parameter_declaration, lestes::lang::cplus::sem::ss_fake_declaration, lestes::lang::cplus::sem::ss_injected_class_declaration, lestes::lang::cplus::sem::ss_enum_definition, lestes::lang::cplus::sem::ss_typedef_definition, lestes::lang::cplus::sem::ss_enumerator_declaration, lestes::lang::cplus::sem::ss_befriendable_declaration, lestes::lang::cplus::sem::ss_structure_declaration, lestes::lang::cplus::sem::ss_function_declaration, lestes::lang::cplus::sem::ss_method_declaration, lestes::lang::cplus::sem::ss_using_declaration, lestes::lang::cplus::sem::ss_dummy_declaration, lestes::lang::cplus::sem::ss_compound_stmt_declaration, and lestes::lang::cplus::sem::ss_builtin_operator_declaration.

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

Implemented in lestes::lang::cplus::sem::ss_namespace_definition, lestes::lang::cplus::sem::ss_declaration_with_access_specifier, lestes::lang::cplus::sem::ss_object_declaration, lestes::lang::cplus::sem::ss_bitfield_declaration, lestes::lang::cplus::sem::ss_parameter_declaration, lestes::lang::cplus::sem::ss_fake_declaration, lestes::lang::cplus::sem::ss_injected_class_declaration, lestes::lang::cplus::sem::ss_enum_definition, lestes::lang::cplus::sem::ss_typedef_definition, lestes::lang::cplus::sem::ss_enumerator_declaration, lestes::lang::cplus::sem::ss_befriendable_declaration, lestes::lang::cplus::sem::ss_structure_declaration, lestes::lang::cplus::sem::ss_function_declaration, lestes::lang::cplus::sem::ss_method_declaration, lestes::lang::cplus::sem::ss_using_declaration, lestes::lang::cplus::sem::ss_dummy_declaration, lestes::lang::cplus::sem::ss_compound_stmt_declaration, and lestes::lang::cplus::sem::ss_builtin_operator_declaration.

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

Implemented in lestes::lang::cplus::sem::ss_namespace_definition, lestes::lang::cplus::sem::ss_declaration_with_access_specifier, lestes::lang::cplus::sem::ss_object_declaration, lestes::lang::cplus::sem::ss_bitfield_declaration, lestes::lang::cplus::sem::ss_parameter_declaration, lestes::lang::cplus::sem::ss_fake_declaration, lestes::lang::cplus::sem::ss_injected_class_declaration, lestes::lang::cplus::sem::ss_enum_definition, lestes::lang::cplus::sem::ss_typedef_definition, lestes::lang::cplus::sem::ss_enumerator_declaration, lestes::lang::cplus::sem::ss_befriendable_declaration, lestes::lang::cplus::sem::ss_structure_declaration, lestes::lang::cplus::sem::ss_function_declaration, lestes::lang::cplus::sem::ss_method_declaration, lestes::lang::cplus::sem::ss_using_declaration, lestes::lang::cplus::sem::ss_dummy_declaration, lestes::lang::cplus::sem::ss_compound_stmt_declaration, and lestes::lang::cplus::sem::ss_builtin_operator_declaration.

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

for purposes of dumping

Reimplemented from lestes::intercode::ss_base_with_location.

Reimplemented in lestes::lang::cplus::sem::ss_namespace_definition, lestes::lang::cplus::sem::ss_declaration_with_access_specifier, lestes::lang::cplus::sem::ss_object_declaration, lestes::lang::cplus::sem::ss_bitfield_declaration, lestes::lang::cplus::sem::ss_parameter_declaration, lestes::lang::cplus::sem::ss_fake_declaration, lestes::lang::cplus::sem::ss_injected_class_declaration, lestes::lang::cplus::sem::ss_enum_definition, lestes::lang::cplus::sem::ss_typedef_definition, lestes::lang::cplus::sem::ss_enumerator_declaration, lestes::lang::cplus::sem::ss_befriendable_declaration, lestes::lang::cplus::sem::ss_structure_declaration, lestes::lang::cplus::sem::ss_function_declaration, lestes::lang::cplus::sem::ss_method_declaration, lestes::lang::cplus::sem::ss_using_declaration, lestes::lang::cplus::sem::ss_dummy_declaration, lestes::lang::cplus::sem::ss_compound_stmt_declaration, and lestes::lang::cplus::sem::ss_builtin_operator_declaration.

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

for purposes of dumping

Reimplemented from lestes::intercode::ss_base_with_location.

Reimplemented in lestes::lang::cplus::sem::ss_namespace_definition, lestes::lang::cplus::sem::ss_declaration_with_access_specifier, lestes::lang::cplus::sem::ss_object_declaration, lestes::lang::cplus::sem::ss_bitfield_declaration, lestes::lang::cplus::sem::ss_parameter_declaration, lestes::lang::cplus::sem::ss_fake_declaration, lestes::lang::cplus::sem::ss_injected_class_declaration, lestes::lang::cplus::sem::ss_enum_definition, lestes::lang::cplus::sem::ss_typedef_definition, lestes::lang::cplus::sem::ss_enumerator_declaration, lestes::lang::cplus::sem::ss_befriendable_declaration, lestes::lang::cplus::sem::ss_structure_declaration, lestes::lang::cplus::sem::ss_function_declaration, lestes::lang::cplus::sem::ss_method_declaration, lestes::lang::cplus::sem::ss_using_declaration, lestes::lang::cplus::sem::ss_dummy_declaration, lestes::lang::cplus::sem::ss_compound_stmt_declaration, and lestes::lang::cplus::sem::ss_builtin_operator_declaration.

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

Marking routine for class ss_declaration.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::intercode::ss_base_with_location.

Reimplemented in lestes::lang::cplus::sem::ss_namespace_definition, lestes::lang::cplus::sem::ss_declaration_with_access_specifier, lestes::lang::cplus::sem::ss_object_declaration, lestes::lang::cplus::sem::ss_bitfield_declaration, lestes::lang::cplus::sem::ss_parameter_declaration, lestes::lang::cplus::sem::ss_fake_declaration, lestes::lang::cplus::sem::ss_injected_class_declaration, lestes::lang::cplus::sem::ss_enum_definition, lestes::lang::cplus::sem::ss_typedef_definition, lestes::lang::cplus::sem::ss_enumerator_declaration, lestes::lang::cplus::sem::ss_befriendable_declaration, lestes::lang::cplus::sem::ss_structure_declaration, lestes::lang::cplus::sem::ss_function_declaration, lestes::lang::cplus::sem::ss_method_declaration, lestes::lang::cplus::sem::ss_using_declaration, lestes::lang::cplus::sem::ss_dummy_declaration, lestes::lang::cplus::sem::ss_compound_stmt_declaration, and lestes::lang::cplus::sem::ss_builtin_operator_declaration.


Member Data Documentation

srp< ss_declaration_time > lestes::lang::cplus::sem::ss_declaration::visible_since [private]

Invisible declarations are results of friend declarations.

Invisible declarations can be introduced into namespace scope using 'friend' declarations in classes:

class c { friend class a; friend int foo(); };

Both a and foo are introduced into :: namespace, yet they are invisible. However, when later defining a or foo, the invisible declarations have to be paired (marked as overridden by) the new, visible ones.

Visible is defined, so that the visible_since time is before the query time (in terms of declaration_time).

srp< ss_declaration_time > lestes::lang::cplus::sem::ss_declaration::decl_time [private]

srp< ss_decl_name > lestes::lang::cplus::sem::ss_declaration::name [private]

srp< ss_decl_seq > lestes::lang::cplus::sem::ss_declaration::contained_in [private]

srp< ss_type > lestes::lang::cplus::sem::ss_declaration::type [private]

Type of the declared thing.

Namespace declarations have 'void' type, for simplicity.

srp< ss_linkage > lestes::lang::cplus::sem::ss_declaration::linkage [private]

external,internal,inline,no linkage

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

Reimplemented from lestes::intercode::ss_base_with_location.

Reimplemented in lestes::lang::cplus::sem::ss_namespace_definition, lestes::lang::cplus::sem::ss_declaration_with_access_specifier, lestes::lang::cplus::sem::ss_object_declaration, lestes::lang::cplus::sem::ss_bitfield_declaration, lestes::lang::cplus::sem::ss_parameter_declaration, lestes::lang::cplus::sem::ss_fake_declaration, lestes::lang::cplus::sem::ss_injected_class_declaration, lestes::lang::cplus::sem::ss_enum_definition, lestes::lang::cplus::sem::ss_typedef_definition, lestes::lang::cplus::sem::ss_enumerator_declaration, lestes::lang::cplus::sem::ss_befriendable_declaration, lestes::lang::cplus::sem::ss_structure_declaration, lestes::lang::cplus::sem::ss_function_declaration, lestes::lang::cplus::sem::ss_method_declaration, lestes::lang::cplus::sem::ss_using_declaration, lestes::lang::cplus::sem::ss_dummy_declaration, lestes::lang::cplus::sem::ss_compound_stmt_declaration, and lestes::lang::cplus::sem::ss_builtin_operator_declaration.


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