STK++ 1.0

STK::BinOpBase< Op, ExpLeft, ExpRight > Class Template Reference

Binary Operator bbase class. More...

#include <STK_TExpAlgebra.h>

Inheritance diagram for STK::BinOpBase< Op, ExpLeft, ExpRight >:

List of all members.

Public Member Functions

Real operator[] (Integer i) const
 The operator [i] will perform lhs_[i] Op rhs_[i] where Op will be Plus (+), Minus (-), Mult (*) or Div (/)
Real operator() (Integer i, Integer j) const
 The operator (i,j) will perform lhs_(i,j) Op rhs_(i,j) where Op will be Plus (+), Minus (-), Mult (*) or Div (/)

Protected Member Functions

 BinOpBase (const ExpLeft &X, const ExpRight &Y)
 Protected constructor.
 ~BinOpBase ()
 Protected destructor.

Protected Attributes

const ExpLeft & lhs_
 Reference on the Left term.
const ExpRight & rhs_
 Reference on the Right term.

Detailed Description

template<class Op, class ExpLeft, class ExpRight>
class STK::BinOpBase< Op, ExpLeft, ExpRight >

Binary Operator bbase class.

This class allow to handle the operations Exp Op Exp, Real Op Exp or Exp Op Real in the general case

Definition at line 55 of file STK_TExpAlgebra.h.


Constructor & Destructor Documentation

template<class Op , class ExpLeft , class ExpRight >
STK::BinOpBase< Op, ExpLeft, ExpRight >::BinOpBase ( const ExpLeft &  X,
const ExpRight &  Y 
) [inline, protected]

Protected constructor.

Definition at line 62 of file STK_TExpAlgebra.h.

                                                   : lhs_(X), rhs_(Y)
    { ;}
template<class Op , class ExpLeft , class ExpRight >
STK::BinOpBase< Op, ExpLeft, ExpRight >::~BinOpBase ( ) [inline, protected]

Protected destructor.

Definition at line 66 of file STK_TExpAlgebra.h.

{ ;}

Member Function Documentation

template<class Op , class ExpLeft , class ExpRight >
Real STK::BinOpBase< Op, ExpLeft, ExpRight >::operator[] ( Integer  i) const [inline]

The operator [i] will perform lhs_[i] Op rhs_[i] where Op will be Plus (+), Minus (-), Mult (*) or Div (/)

Definition at line 72 of file STK_TExpAlgebra.h.

References STK::BinOpBase< Op, ExpLeft, ExpRight >::lhs_, and STK::BinOpBase< Op, ExpLeft, ExpRight >::rhs_.

    { return Op::apply(lhs_[i], rhs_[i]);}
template<class Op , class ExpLeft , class ExpRight >
Real STK::BinOpBase< Op, ExpLeft, ExpRight >::operator() ( Integer  i,
Integer  j 
) const [inline]

The operator (i,j) will perform lhs_(i,j) Op rhs_(i,j) where Op will be Plus (+), Minus (-), Mult (*) or Div (/)

Definition at line 78 of file STK_TExpAlgebra.h.

References STK::BinOpBase< Op, ExpLeft, ExpRight >::lhs_, and STK::BinOpBase< Op, ExpLeft, ExpRight >::rhs_.

    { return Op::apply(lhs_(i,j), rhs_(i,j));}

Member Data Documentation


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