UnaryConstant< _Argument, _Result > Class Template Reference
[Functor: Constant]

Unary functor that returns a constant. More...

#include <constant.h>

List of all members.

Public Types

typedef Base::argument_type argument_type
 The argument type.
typedef Base::result_type result_type
 The result type.

Public Member Functions

Constructors etc.

 UnaryConstant ()
 Default constructor. Default initialized value.
 UnaryConstant (const result_type &x)
 Construct from the constant value.
Manipulators.

void set (const result_type &x)
 Set the return value.
Functor.

const result_typeoperator() (const argument_type &x) const
 Return the constant value.

Related Functions

(Note that these are not member functions.)



template<typename _Argument , typename _Result >
UnaryConstant< _Argument, _Result > constructUnaryConstant (const _Result &x)
 Convenience function for constructing a UnaryConstant.
template<typename _Argument , typename _Result >
UnaryConstant< _Argument, _Result > constructUnaryConstant ()
 Convenience function for constructing a UnaryConstant.

Detailed Description

template<typename _Argument, typename _Result>
class UnaryConstant< _Argument, _Result >

Unary functor that returns a constant.


The documentation for this class was generated from the following file:
Generated on Thu Jun 30 02:14:52 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3