kangaroo  1.0
the cbls library
Public Types | Public Member Functions | Static Public Attributes

Bind the right operand of a binary operator with a constant value and the operator now becomes a unary operator. More...

#include <bindingOperands.hpp>

Public Types

typedef oper Operator
 Operator. More...
 
typedef Operator::InputType InputType
 Input type. More...
 
typedef Operator::OutputType OutputType
 OutputType. More...
 

Public Member Functions

 ~bind2right ()
 Destructor. More...
 
 bind2right ()
 Default constructor. More...
 
 bind2right (bind2right< oper > &&that) noexcept
 Move constructor. More...
 
 bind2right (bind2right< oper > const &that)
 Copy constructor. More...
 
bind2right< oper > & operator= (bind2right< oper > &&that) noexcept
 Move assignment. More...
 
bind2right< oper > & operator= (bind2right< oper > const &that)
 Copy assignment. More...
 
 bind2right (InputType const &theRightData)
 Param constructor. More...
 
Bool Updatable (Bool const LeftUpdatable, InputType const &LeftData) const
 Updatable? More...
 
OutputType iof (InputType const &LeftData) const
 Operation. More...
 
Hash calcHashValue () const
 Smallest and largest possible. More...
 

Static Public Attributes

static Dim const ParamArity = 1
 Parameter arity.
 
static ParamOrder const ParamOrdered = OrderedParams
 Parameter order.
 

Detailed Description

template<typename oper>
class bind2right< oper >

Bind the right operand of a binary operator with a constant value and the operator now becomes a unary operator.

cout << BoundAdd.iof(2) << endl; // 2 + 3

Member Typedef Documentation

template<typename oper>
typedef oper bind2right< oper >::Operator

Operator.

template<typename oper>
typedef Operator::InputType bind2right< oper >::InputType

Input type.

template<typename oper>
typedef Operator::OutputType bind2right< oper >::OutputType

Output type.

Constructor & Destructor Documentation

template<typename oper>
bind2right< oper >::~bind2right ( )
inline

Destructor.

template<typename oper>
bind2right< oper >::bind2right ( )
inline

Default constructor.

template<typename oper>
bind2right< oper >::bind2right ( bind2right< oper > &&  that)
inlinenoexcept

Move constructor.

template<typename oper>
bind2right< oper >::bind2right ( bind2right< oper > const &  that)
inline

Copy constructor.

template<typename oper>
bind2right< oper >::bind2right ( InputType const &  theRightData)
inline

Param constructor.

Member Function Documentation

template<typename oper>
bind2right<oper>& bind2right< oper >::operator= ( bind2right< oper > &&  that)
inlinenoexcept

Move assignment.

template<typename oper>
bind2right<oper>& bind2right< oper >::operator= ( bind2right< oper > const &  that)
inline

Copy assignment.

template<typename oper>
Bool bind2right< oper >::Updatable ( Bool const  LeftUpdatable,
InputType const &  LeftData 
) const
inline

Is the result updatable?

template<typename oper>
OutputType bind2right< oper >::iof ( InputType const &  LeftData) const
inline

Perform operation.

template<typename oper>
Hash bind2right< oper >::calcHashValue ( ) const
inline

Compute smallest and largest possible.


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