STK::UnOp< Op, Exp > Class Template Reference
[Subproject STKAlgebra::TempExp]

UnOp class for unary operators.

#include <STK_TExpAlgebra.h>

List of all members.

Public Member Functions

 UnOp (const Exp &X)
 ~UnOp ()
Real operator[] (Integer i) const
Real operator() (Integer i) const
template<class Right >
BinOp< Plus, _This, Right > operator+ (const Right &rhs)
template<class Right >
BinOp< Minus, _This, Right > operator- (const Right &rhs)
template<class Right >
BinOp< Mult, _This, Right > operator* (const Right &rhs)
template<class Right >
BinOp< Div, _This, Right > operator/ (const Right &rhs)

Protected Attributes

const Exp & rhs_
 Right hand Side expression.

Private Types

typedef UnOp< Op, Exp > _This


Detailed Description

template<class Op, class Exp>
class STK::UnOp< Op, Exp >

Definition at line 438 of file STK_TExpAlgebra.h.


Member Typedef Documentation

template<class Op , class Exp >
typedef UnOp<Op, Exp> STK::UnOp< Op, Exp >::_This [private]

Definition at line 440 of file STK_TExpAlgebra.h.


Constructor & Destructor Documentation

template<class Op , class Exp >
STK::UnOp< Op, Exp >::UnOp ( const Exp &  X  )  [inline]

Default Ctor.

Definition at line 447 of file STK_TExpAlgebra.h.

00447                        : rhs_(X)
00448     { ;}

template<class Op , class Exp >
STK::UnOp< Op, Exp >::~UnOp (  )  [inline]

Dtor.

Definition at line 451 of file STK_TExpAlgebra.h.

00451 {}


Member Function Documentation

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

Op will be Uplus or Uminus.

Definition at line 454 of file STK_TExpAlgebra.h.

References STK::UnOp< Op, Exp >::rhs_.

00455     { return Op::apply(rhs_[i]);}

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

Op will be Uplus or Uminus.

Definition at line 458 of file STK_TExpAlgebra.h.

References STK::UnOp< Op, Exp >::rhs_.

00459     { return Op::apply(rhs_(i));}

template<class Op , class Exp >
template<class Right >
BinOp<Plus, _This, Right> STK::UnOp< Op, Exp >::operator+ ( const Right &  rhs  )  [inline]

Operator Plus.

Definition at line 463 of file STK_TExpAlgebra.h.

00464     { return BinOp<Plus, _This, Right>(*this, rhs); }

template<class Op , class Exp >
template<class Right >
BinOp<Minus, _This, Right> STK::UnOp< Op, Exp >::operator- ( const Right &  rhs  )  [inline]

Operator Minus.

Definition at line 468 of file STK_TExpAlgebra.h.

00469     { return BinOp<Minus, _This, Right>(*this, rhs);}

template<class Op , class Exp >
template<class Right >
BinOp<Mult, _This, Right> STK::UnOp< Op, Exp >::operator* ( const Right &  rhs  )  [inline]

Operator Mult.

Definition at line 473 of file STK_TExpAlgebra.h.

00474     { return BinOp<Mult, _This, Right>(*this, rhs);}

template<class Op , class Exp >
template<class Right >
BinOp<Div, _This, Right> STK::UnOp< Op, Exp >::operator/ ( const Right &  rhs  )  [inline]

Operator Div.

Definition at line 479 of file STK_TExpAlgebra.h.

00480     { return BinOp<Div, _This, Right>(*this, rhs);}


Member Data Documentation

template<class Op , class Exp >
const Exp& STK::UnOp< Op, Exp >::rhs_ [protected]


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

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