lestes::md::instructions::tm_instr_op_mem_base Class Reference

Memory operand. More...

#include <tm_instr_base.g.hh>

Inheritance diagram for lestes::md::instructions::tm_instr_op_mem_base:

lestes::md::instructions::tm_instr_op_base lestes::std::object lestes::std::mem::keystone lestes::md::instructions::tm_instr_op_mem List of all members.

Public Member Functions

virtual tm_instr_op_base::kind_type kind_get ()
 Tells kind of current operand.
virtual ptr< ::lestes::backend_v2::intercode::ge_operandconvert_to_ge (ptr< ::lestes::md::types::tm_data_type_base > type)
 Creates new instance of ge_operand on the basis of the current tm_instr_op.
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

 tm_instr_op_mem_base (ulint a__tm_instr_op_base__id, ptr< ::lestes::std::set< ::lestes::md::types::tm_data_type_base::id_type > > a__tm_instr_op_base__allowed_types, ptr< ::lestes::std::vector< ulint > > a__tm_instr_op_base__destroyed_by, ulint a__tm_instr_op_base__destroys)
 Generated constructor for class tm_instr_op_mem_base.
virtual void gc_mark ()
 Marking routine for class tm_instr_op_mem_base.

Static Private Attributes

static ptr< reflection_listreflection = reflection

Detailed Description

Memory operand.

Note: A concrete derived class is target dependent and it is placed in /target/machine/${TARGET_CPU}/lestes/md/instructions/ directory.

Definition at line 260 of file tm_instr_base.g.hh.


Constructor & Destructor Documentation

lestes::md::instructions::tm_instr_op_mem_base::tm_instr_op_mem_base ( ulint  a__tm_instr_op_base__id,
ptr< ::lestes::std::set< ::lestes::md::types::tm_data_type_base::id_type > >  a__tm_instr_op_base__allowed_types,
ptr< ::lestes::std::vector< ulint > >  a__tm_instr_op_base__destroyed_by,
ulint  a__tm_instr_op_base__destroys 
) [protected]

Generated constructor for class tm_instr_op_mem_base.

Generated constructor for class tm_instr_op_mem_base.

Author:
lsg

Definition at line 370 of file tm_instr_base.g.cc.

00374         : tm_instr_op_base(a__tm_instr_op_base__id,
00375                 a__tm_instr_op_base__allowed_types,
00376                 a__tm_instr_op_base__destroyed_by,
00377                 a__tm_instr_op_base__destroys)
00378 {}


Member Function Documentation

tm_instr_op_base::kind_type lestes::md::instructions::tm_instr_op_mem_base::kind_get (  )  [virtual]

Tells kind of current operand.

Implements lestes::md::instructions::tm_instr_op_base.

Definition at line 55 of file tm_instr_base.cc.

References lestes::md::instructions::tm_instr_op_base::MEMORY.

00056 {
00057     return tm_instr_op_base::MEMORY;
00058 }

ptr<::lestes::backend_v2::intercode::ge_operand > lestes::md::instructions::tm_instr_op_mem_base::convert_to_ge ( ptr< ::lestes::md::types::tm_data_type_base type  )  [virtual]

Creates new instance of ge_operand on the basis of the current tm_instr_op.

Parameters:
type A datatype of the created operand.
Returns:
A new ge_operand.

Implements lestes::md::instructions::tm_instr_op_base.

Definition at line 66 of file tm_instr_base.cc.

References lassert.

00066                                                                                                                     {
00067         lassert(false);
00068 }

ptr< object::reflection_list > lestes::md::instructions::tm_instr_op_mem_base::reflection_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::md::instructions::tm_instr_op_base.

Reimplemented in lestes::md::instructions::tm_instr_op_mem.

Definition at line 380 of file tm_instr_base.g.cc.

References lestes::std::list< T >::create(), reflection, and lestes::md::instructions::tm_instr_op_base::reflection_get().

Referenced by lestes::md::instructions::tm_instr_op_mem::reflection_get().

00381 {
00382         if (!reflection) {
00383                 typedef class_reflection::field_metadata md;
00384                 typedef class_reflection::field_metadata_list mdlist;
00385                 ptr<mdlist> mdl = mdlist::create();
00386                 reflection = reflection_list::create( tm_instr_op_base::reflection_get() );
00387                 reflection->push_back( class_reflection::create( "tm_instr_op_mem_base", mdl ) );
00388         }
00389         return reflection;
00390 }

ptr< object::field_list_list > lestes::md::instructions::tm_instr_op_mem_base::field_values_get (  )  const [virtual]

for purposes of dumping

Reimplemented from lestes::md::instructions::tm_instr_op_base.

Reimplemented in lestes::md::instructions::tm_instr_op_mem.

Definition at line 392 of file tm_instr_base.g.cc.

References lestes::md::instructions::tm_instr_op_base::field_values_get().

Referenced by lestes::md::instructions::tm_instr_op_mem::field_values_get().

00393 {
00394         ptr < field_list_list > result = tm_instr_op_base::field_values_get();
00395         return result;
00396 }

void lestes::md::instructions::tm_instr_op_mem_base::gc_mark ( void   )  [protected, virtual]

Marking routine for class tm_instr_op_mem_base.

Marking routine is used for garbage collection.

Author:
lsg

Reimplemented from lestes::md::instructions::tm_instr_op_base.

Reimplemented in lestes::md::instructions::tm_instr_op_mem.

Definition at line 403 of file tm_instr_base.g.cc.

References lestes::md::instructions::tm_instr_op_base::gc_mark().

Referenced by lestes::md::instructions::tm_instr_op_mem::gc_mark().

00404 {
00405         tm_instr_op_base::gc_mark();
00406 }


Member Data Documentation

ptr< object::reflection_list > lestes::md::instructions::tm_instr_op_mem_base::reflection = reflection [static, private]

Reimplemented from lestes::md::instructions::tm_instr_op_base.

Reimplemented in lestes::md::instructions::tm_instr_op_mem.

Definition at line 285 of file tm_instr_base.g.hh.

Referenced by reflection_get().


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