Public Member Functions | Static Public Member Functions

VMData Class Reference

handles VM (virtual machine) data and provides low-level access to it More...

#include <vm.h>

List of all members.

Public Member Functions

const std::vector< int > & code () const
const std::vector< realt > & numbers () const
void append_code (int op)
void append_number (realt d)
void clear_data ()
void replace_symbols (const std::vector< realt > &vv)
void flip_indices ()
bool single_symbol () const
bool has_op (int op) const
std::vector< int > & get_mutable_code ()

Static Public Member Functions

static bool has_idx (int op)

Detailed Description

handles VM (virtual machine) data and provides low-level access to it

Definition at line 111 of file vm.h.


Member Function Documentation

void VMData::flip_indices (  ) 

switches between non-negative and negative indices (a -> -1-a), the point of having negative indices is to avoid conflicts with opcodes. The same transformation is used in OpTree.

Definition at line 168 of file vm.cpp.


The documentation for this class was generated from the following files:

Generated on Mon Jul 18 2011 17:25:28 for Fityk by Doxygen 1.7.1