lestes::backend_v2::intercode::ge_operand Class Reference

Base class for an operand of a ge-level pseudoinstruction. More...

#include <ge.g.hh>

Inheritance diagram for lestes::backend_v2::intercode::ge_operand:

Inheritance graph
[legend]
List of all members.

Public Types

enum  kind_type { REGISTER, MEMORY, IMMEDIATE }
 Operand kinds. More...

Public Member Functions

ptr< ::lestes::md::types::tm_data_type_basetype_get () const
 The method type_get returns the value of the field ge_operand::type.
void type_set (const ptr< ::lestes::md::types::tm_data_type_base > &)
 The method type_set sets the field ge_operand::type to the given value.
ptr< ge_piorigin_get () const
 The method origin_get returns the value of the field ge_operand::origin.
void origin_set (const ptr< ge_pi > &)
 The method origin_set sets the field ge_operand::origin to the given value.
ptr< ::lestes::backend_v2::intercode::pi_operandpi_source_get () const
 The method pi_source_get returns the value of the field ge_operand::pi_source.
void pi_source_set (const ptr< ::lestes::backend_v2::intercode::pi_operand > &)
 The method pi_source_set sets the field ge_operand::pi_source to the given value.
virtual ge_operand::kind_type kind_get () override
 Returns kind of operand.
virtual lstring accept_visitor_ge_operand2lstring_gen_base (ptr< visitor_ge_operand2lstring_gen_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

 ge_operand (ptr< ::lestes::md::types::tm_data_type_base > a__ge_operand__type, ptr< ge_pi > a__ge_operand__origin, ptr< ::lestes::backend_v2::intercode::pi_operand > a__ge_operand__pi_source)
 Generated constructor for class ge_operand.
virtual void gc_mark ()
 Marking routine for class ge_operand.

Private Attributes

srp< ::lestes::md::types::tm_data_type_basetype
 A data type of a value that the operand holds.
srp< ge_piorigin
 An pseudoinstruction that crates value of the operand.
srp< ::lestes::backend_v2::intercode::pi_operandpi_source
 A pi-level operand that is source for the operand.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Base class for an operand of a ge-level pseudoinstruction.


Member Enumeration Documentation

enum lestes::backend_v2::intercode::ge_operand::kind_type

Operand kinds.

Enumerator:
REGISTER 
MEMORY 
IMMEDIATE 


Constructor & Destructor Documentation

lestes::backend_v2::intercode::ge_operand::ge_operand ( ptr< ::lestes::md::types::tm_data_type_base a__ge_operand__type,
ptr< ge_pi a__ge_operand__origin,
ptr< ::lestes::backend_v2::intercode::pi_operand a__ge_operand__pi_source 
) [protected]

Generated constructor for class ge_operand.

Generated constructor for class ge_operand.

Author:
lsg


Member Function Documentation

ptr<::lestes::md::types::tm_data_type_base > lestes::backend_v2::intercode::ge_operand::type_get (  )  const

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

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

void lestes::backend_v2::intercode::ge_operand::type_set ( const ptr< ::lestes::md::types::tm_data_type_base > &  x  ) 

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

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

ptr< ge_pi > lestes::backend_v2::intercode::ge_operand::origin_get (  )  const

The method origin_get returns the value of the field ge_operand::origin.

Returns:
The value of ge_operand::origin.
Author:
lsg

void lestes::backend_v2::intercode::ge_operand::origin_set ( const ptr< ge_pi > &  x  ) 

The method origin_set sets the field ge_operand::origin to the given value.

Parameters:
[in] x The new value to set ge_operand::origin to.
Author:
lsg

ptr<::lestes::backend_v2::intercode::pi_operand > lestes::backend_v2::intercode::ge_operand::pi_source_get (  )  const

The method pi_source_get returns the value of the field ge_operand::pi_source.

Returns:
The value of ge_operand::pi_source.
Author:
lsg

void lestes::backend_v2::intercode::ge_operand::pi_source_set ( const ptr< ::lestes::backend_v2::intercode::pi_operand > &  x  ) 

The method pi_source_set sets the field ge_operand::pi_source to the given value.

Parameters:
[in] x The new value to set ge_operand::pi_source to.
Author:
lsg

virtual ge_operand::kind_type lestes::backend_v2::intercode::ge_operand::kind_get (  )  [pure virtual]

Returns kind of operand.

Implemented in lestes::backend_v2::intercode::ge_operand_reg, lestes::backend_v2::intercode::ge_operand_mem, and lestes::backend_v2::intercode::ge_operand_imm.

virtual lstring lestes::backend_v2::intercode::ge_operand::accept_visitor_ge_operand2lstring_gen_base ( ptr< visitor_ge_operand2lstring_gen_base v  )  [pure virtual]

Implemented in lestes::backend_v2::intercode::ge_operand_reg, lestes::backend_v2::intercode::ge_operand_mem, and lestes::backend_v2::intercode::ge_operand_imm.

ptr< object::reflection_list > lestes::backend_v2::intercode::ge_operand::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

Reimplemented in lestes::backend_v2::intercode::ge_operand_reg, lestes::backend_v2::intercode::ge_operand_mem, and lestes::backend_v2::intercode::ge_operand_imm.

ptr< object::field_list_list > lestes::backend_v2::intercode::ge_operand::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::std::object.

Reimplemented in lestes::backend_v2::intercode::ge_operand_reg, lestes::backend_v2::intercode::ge_operand_mem, and lestes::backend_v2::intercode::ge_operand_imm.

void lestes::backend_v2::intercode::ge_operand::gc_mark ( void   )  [protected, virtual]

Marking routine for class ge_operand.

Marking routine is used for garbage collection.

Author:
lsg

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

Reimplemented in lestes::backend_v2::intercode::ge_operand_reg, lestes::backend_v2::intercode::ge_operand_mem, and lestes::backend_v2::intercode::ge_operand_imm.


Member Data Documentation

srp< ::lestes::md::types::tm_data_type_base > lestes::backend_v2::intercode::ge_operand::type [private]

A data type of a value that the operand holds.

srp< ge_pi > lestes::backend_v2::intercode::ge_operand::origin [private]

An pseudoinstruction that crates value of the operand.

srp< ::lestes::backend_v2::intercode::pi_operand > lestes::backend_v2::intercode::ge_operand::pi_source [private]

A pi-level operand that is source for the operand.

ptr< object::reflection_list > lestes::backend_v2::intercode::ge_operand::reflection = reflection [static, private]

Reimplemented from lestes::std::object.

Reimplemented in lestes::backend_v2::intercode::ge_operand_reg, lestes::backend_v2::intercode::ge_operand_mem, and lestes::backend_v2::intercode::ge_operand_imm.


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