lestes::lang::cplus::sem::ss_decl_stmt Class Reference

Class for declaration statement. More...

#include <ss_statement.g.hh>

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

Inheritance graph
[legend]
List of all members.

Public Types

enum  initializer_kind_enum { IK_DIRECT_INITIALIZATION, IK_DEFAULT_INITIALIZATION, IK_COPY_INITIALIZATION, IK_NOT_APPLY_INITIALIZATION }

Public Member Functions

ptr< ss_declarationdecl_get () const
 The method decl_get returns the value of the field ss_decl_stmt::decl.
void decl_set (const ptr< ss_declaration > &)
 The method decl_set sets the field ss_decl_stmt::decl to the given value.
ptr< ::lestes::std::list<
srp< ss_expression > > > 
args_get () const
 The method args_get returns the value of the field ss_decl_stmt::args.
void args_set (const ptr< ::lestes::std::list< srp< ss_expression > > > &)
 The method args_set sets the field ss_decl_stmt::args to the given value.
initializer_kind_enum initializer_kind_get () const
 The method initializer_kind_get returns the value of the field ss_decl_stmt::initializer_kind.
void initializer_kind_set (initializer_kind_enum)
 The method initializer_kind_set sets the field ss_decl_stmt::initializer_kind to the given value.
virtual void accept_ss_statement_visitor (ptr< ss_statement_visitor > 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_decl_stmtcreate (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ptr< ::lestes::std::list< srp< ss_label > > > a__ss_statement__labels, ptr< ss_compound_stmt > a__ss_statement__parent, ptr< ss_sp > a__ss_statement__psp, ptr< ss_sp > a__ss_statement__nsp, ptr< ::lestes::std::list< srp< ss_sp > > > a__ss_statement__sequence_points, ptr< ss_declaration > a__ss_decl_stmt__decl, ptr< ::lestes::std::list< srp< ss_expression > > > a__ss_decl_stmt__args, initializer_kind_enum a__ss_decl_stmt__initializer_kind)
 First generated factory method for class ss_decl_stmt.

Protected Member Functions

 ss_decl_stmt (ptr< ::lestes::std::source_location > a__ss_base_with_location__location, ptr< ::lestes::std::list< srp< ss_label > > > a__ss_statement__labels, ptr< ss_compound_stmt > a__ss_statement__parent, ptr< ss_sp > a__ss_statement__psp, ptr< ss_sp > a__ss_statement__nsp, ptr< ::lestes::std::list< srp< ss_sp > > > a__ss_statement__sequence_points, ptr< ss_declaration > a__ss_decl_stmt__decl, ptr< ::lestes::std::list< srp< ss_expression > > > a__ss_decl_stmt__args, initializer_kind_enum a__ss_decl_stmt__initializer_kind)
 Generated constructor for class ss_decl_stmt.
virtual void gc_mark ()
 Marking routine for class ss_decl_stmt.

Private Attributes

srp< ss_declarationdecl
srp< ::lestes::std::list<
srp< ss_expression > > > 
args
initializer_kind_enum initializer_kind
 Distinguishes kind of initialization.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Class for declaration statement.


Member Enumeration Documentation

enum lestes::lang::cplus::sem::ss_decl_stmt::initializer_kind_enum

Enumerator:
IK_DIRECT_INITIALIZATION 
IK_DEFAULT_INITIALIZATION 
IK_COPY_INITIALIZATION 
IK_NOT_APPLY_INITIALIZATION 


Constructor & Destructor Documentation

lestes::lang::cplus::sem::ss_decl_stmt::ss_decl_stmt ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ptr< ::lestes::std::list< srp< ss_label > > >  a__ss_statement__labels,
ptr< ss_compound_stmt a__ss_statement__parent,
ptr< ss_sp a__ss_statement__psp,
ptr< ss_sp a__ss_statement__nsp,
ptr< ::lestes::std::list< srp< ss_sp > > >  a__ss_statement__sequence_points,
ptr< ss_declaration a__ss_decl_stmt__decl,
ptr< ::lestes::std::list< srp< ss_expression > > >  a__ss_decl_stmt__args,
initializer_kind_enum  a__ss_decl_stmt__initializer_kind 
) [protected]

Generated constructor for class ss_decl_stmt.

Generated constructor for class ss_decl_stmt.

Author:
lsg


Member Function Documentation

ptr< ss_declaration > lestes::lang::cplus::sem::ss_decl_stmt::decl_get (  )  const

The method decl_get returns the value of the field ss_decl_stmt::decl.

Returns:
The value of ss_decl_stmt::decl.
Author:
lsg

void lestes::lang::cplus::sem::ss_decl_stmt::decl_set ( const ptr< ss_declaration > &  x  ) 

The method decl_set sets the field ss_decl_stmt::decl to the given value.

Parameters:
[in] x The new value to set ss_decl_stmt::decl to.
Author:
lsg

ptr<::lestes::std::list< srp< ss_expression > > > lestes::lang::cplus::sem::ss_decl_stmt::args_get (  )  const

The method args_get returns the value of the field ss_decl_stmt::args.

Returns:
The value of ss_decl_stmt::args.
Author:
lsg

void lestes::lang::cplus::sem::ss_decl_stmt::args_set ( const ptr< ::lestes::std::list< srp< ss_expression > > > &  x  ) 

The method args_set sets the field ss_decl_stmt::args to the given value.

Parameters:
[in] x The new value to set ss_decl_stmt::args to.
Author:
lsg

ss_decl_stmt::initializer_kind_enum lestes::lang::cplus::sem::ss_decl_stmt::initializer_kind_get (  )  const

The method initializer_kind_get returns the value of the field ss_decl_stmt::initializer_kind.

Returns:
The value of ss_decl_stmt::initializer_kind.
Author:
lsg

void lestes::lang::cplus::sem::ss_decl_stmt::initializer_kind_set ( initializer_kind_enum  x  ) 

The method initializer_kind_set sets the field ss_decl_stmt::initializer_kind to the given value.

Parameters:
[in] x The new value to set ss_decl_stmt::initializer_kind to.
Author:
lsg

void lestes::lang::cplus::sem::ss_decl_stmt::accept_ss_statement_visitor ( ptr< ss_statement_visitor v  )  [virtual]

Implements lestes::lang::cplus::sem::ss_statement.

ptr< ss_decl_stmt > lestes::lang::cplus::sem::ss_decl_stmt::create ( ptr< ::lestes::std::source_location a__ss_base_with_location__location,
ptr< ::lestes::std::list< srp< ss_label > > >  a__ss_statement__labels,
ptr< ss_compound_stmt a__ss_statement__parent,
ptr< ss_sp a__ss_statement__psp,
ptr< ss_sp a__ss_statement__nsp,
ptr< ::lestes::std::list< srp< ss_sp > > >  a__ss_statement__sequence_points,
ptr< ss_declaration a__ss_decl_stmt__decl,
ptr< ::lestes::std::list< srp< ss_expression > > >  a__ss_decl_stmt__args,
initializer_kind_enum  a__ss_decl_stmt__initializer_kind 
) [static]

First generated factory method for class ss_decl_stmt.

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

Author:
lsg

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

for purposes of dumping

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

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

for purposes of dumping

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

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

Marking routine for class ss_decl_stmt.

Marking routine is used for garbage collection.

Author:
lsg

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


Member Data Documentation

srp< ss_declaration > lestes::lang::cplus::sem::ss_decl_stmt::decl [private]

srp< ::lestes::std::list< srp< ss_expression > > > lestes::lang::cplus::sem::ss_decl_stmt::args [private]

initializer_kind_enum lestes::lang::cplus::sem::ss_decl_stmt::initializer_kind [private]

Distinguishes kind of initialization.

					IK_COPY_INITIALIZATION: 	int i = 3; int i = f(x);
					IK_DIRECT_INITIALIZATION: 	int i (3); A i (3,3);
					IK_DEFAULT_INITIALIZATION:	int i;
					IK_NOT_APPLY_INITIALIZATION:	class x {};	// where no initialization is possible
					details see [8.5]
					

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

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


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