STK++ 1.0

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

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

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

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

Detailed Description

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

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

Definition at line 118 of file STK_TExpAlgebra.h.


Constructor & Destructor Documentation

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

Protected constructor.

Definition at line 125 of file STK_TExpAlgebra.h.

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

Protected destructor.

Definition at line 129 of file STK_TExpAlgebra.h.

{ ;}

Member Function Documentation

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

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

Definition at line 135 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_);}
template<class Op , class ExpLeft >
Real STK::BinOpBase< Op, ExpLeft, Real >::operator() ( Integer  i,
Integer  j 
) const [inline]

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

Definition at line 141 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_);}

Member Data Documentation

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

Reference on the Left Side.

Definition at line 121 of file STK_TExpAlgebra.h.

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

Reference on the Right term.

Definition at line 122 of file STK_TExpAlgebra.h.


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