libvata2  [unstable] git snapshot
Public Member Functions | Public Attributes | Friends | List of all members
VMValue Class Reference

Data type representing a value, which is composed of a type and a pointer to a general memory. More...

#include <vm.hh>

+ Collaboration diagram for VMValue:

Public Member Functions

 VMValue ()
 default constructor More...
 
 VMValue (const std::string &type, VMPointer ptr)
 standard constructor More...
 
 VMValue (const VMValue &rhs)
 copy constructor More...
 
VMValueoperator= (const VMValue &rhs)
 assignment operator More...
 
VMPointer get_ptr () const
 returns the included pointer More...
 

Public Attributes

std::string type
 name of the type More...
 

Friends

std::ostream & operator<< (std::ostream &os, const VMValue &val)
 conversion to string More...
 

Detailed Description

Data type representing a value, which is composed of a type and a pointer to a general memory.

Definition at line 38 of file vm.hh.

Constructor & Destructor Documentation

VMValue ( )
inline

default constructor

Definition at line 51 of file vm.hh.

VMValue ( const std::string &  type,
VMPointer  ptr 
)
inline

standard constructor

Definition at line 53 of file vm.hh.

VMValue ( const VMValue rhs)
inline

copy constructor

Definition at line 55 of file vm.hh.

Member Function Documentation

VMPointer get_ptr ( ) const
inline

returns the included pointer

Definition at line 69 of file vm.hh.

VMValue& operator= ( const VMValue rhs)
inline

assignment operator

Definition at line 57 of file vm.hh.

References VMValue::type.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
const VMValue val 
)
friend

conversion to string

Definition at line 72 of file vm.hh.

Member Data Documentation

std::string type

name of the type

Definition at line 42 of file vm.hh.

Referenced by Vata2::VM::call_dispatch_with_self(), and VMValue::operator=().


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