STK::BinOpBase< Op, ExpLeft, ExpRight > Class Template Reference
[Subproject STKAlgebra::TempExp]

Binary Operator bbase class. More...

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

Real operator[] (Integer i) const
Real operator() (Integer i, Integer j) const

Protected Member Functions

 BinOpBase (const ExpLeft &X, const ExpRight &Y)
 ~BinOpBase ()

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 >

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

Definition at line 70 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 Ctor.

Definition at line 77 of file STK_TExpAlgebra.h.

00077                                                    : lhs_(X), rhs_(Y)
00078     { ;}

template<class Op, class ExpLeft, class ExpRight>
STK::BinOpBase< Op, ExpLeft, ExpRight >::~BinOpBase (  )  [inline, protected]

Protected Dtor.

Definition at line 81 of file STK_TExpAlgebra.h.

00081 { ;}


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 87 of file STK_TExpAlgebra.h.

00088     { 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 93 of file STK_TExpAlgebra.h.

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


Member Data Documentation

template<class Op, class ExpLeft, class ExpRight>
const ExpLeft& STK::BinOpBase< Op, ExpLeft, ExpRight >::lhs_ [protected]

template<class Op, class ExpLeft, class ExpRight>
const ExpRight& STK::BinOpBase< Op, ExpLeft, ExpRight >::rhs_ [protected]


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

Generated on Fri Sep 25 10:31:00 2009 for STK++ by  doxygen 1.5.8