Back to index

salome-med  6.5.0
Public Member Functions | Static Public Attributes
INTERP_KERNEL::PlusFunction Class Reference

#include <InterpKernelFunction.hxx>

List of all members.

Public Member Functions

 ~PlusFunction ()
void operate (std::vector< Value * > &stack) const throw (INTERP_KERNEL::Exception)
void operateX86 (std::vector< std::string > &asmb) const throw (INTERP_KERNEL::Exception)
const char * getRepr () const
bool isACall () const

Static Public Attributes

static const char REPR [] = "+"

Detailed Description

Definition at line 211 of file InterpKernelFunction.hxx.


Constructor & Destructor Documentation

Definition at line 465 of file InterpKernelFunction.cxx.

{
}

Member Function Documentation

const char * PlusFunction::getRepr ( ) const

Definition at line 494 of file InterpKernelFunction.cxx.

{
  return REPR;
}
bool PlusFunction::isACall ( ) const

Definition at line 499 of file InterpKernelFunction.cxx.

{
  return false;
}
void PlusFunction::operate ( std::vector< Value * > &  stack) const throw (INTERP_KERNEL::Exception)

Definition at line 469 of file InterpKernelFunction.cxx.

{
  Value *val1=stack.back();
  stack.pop_back();
  Value *& val2=stack.back();
  Value *val3;
  try
    {
      val3=val1->plus(val2);
    }
  catch(INTERP_KERNEL::Exception& e)
    {
      delete val1;
      throw e;
    }
  delete val1;
  delete val2;
  val2=val3;
}
void PlusFunction::operateX86 ( std::vector< std::string > &  asmb) const throw (INTERP_KERNEL::Exception)

Definition at line 489 of file InterpKernelFunction.cxx.

{
  asmb.push_back("faddp st1");
}

Member Data Documentation

const char PlusFunction::REPR = "+" [static]

Definition at line 220 of file InterpKernelFunction.hxx.


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