STK++ 1.0

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

Specialized Binary Operator Base class for the case Real Op Exp. More...

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

Real operator[] (Integer i) const
 The operator[] will perform lhs_ 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_ Op rhs_(i,j) where Op will be Plus (+), Minus (-), Mult (*) or Div (/)

Protected Member Functions

 BinOpBase (Real const &y, const ExpRight &X)
 Protected constructor.
 ~BinOpBase ()
 Protected destructor.

Protected Attributes

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

Detailed Description

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

Specialized Binary Operator Base class for the case Real Op Exp.

Definition at line 87 of file STK_TExpAlgebra.h.


Constructor & Destructor Documentation

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

Protected constructor.

Definition at line 94 of file STK_TExpAlgebra.h.

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

Protected destructor.

Definition at line 98 of file STK_TExpAlgebra.h.

{ ;}

Member Function Documentation

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

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

Definition at line 104 of file STK_TExpAlgebra.h.

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

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

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

Definition at line 110 of file STK_TExpAlgebra.h.

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

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

Member Data Documentation

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

Reference on the Left term.

Definition at line 90 of file STK_TExpAlgebra.h.

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

Reference on the Right Side.

Definition at line 91 of file STK_TExpAlgebra.h.


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