vtf-logo

ads::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.)

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


Detailed Description

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

Unary functor that returns a constant.


The documentation for this class was generated from the following file:
Generated on Fri Aug 24 12:55:39 2007 for Algorithms and Data Structures Package by  doxygen 1.4.7