GeneratorConstant< _Result > Class Template Reference
[Functor: Constant]

Generator that returns a constant. More...

#include <constant.h>

List of all members.

Public Types

typedef _Result result_type
 The result type.

Public Member Functions

Constructors etc.

 GeneratorConstant ()
 Default constructor. Uninitialized value.
 GeneratorConstant (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
 Return the constant value.

Related Functions

(Note that these are not member functions.)



template<typename _Result >
GeneratorConstant< _Result > constructGeneratorConstant (const _Result &x)
 Convenience function for constructing a GeneratorConstant.
template<typename _Result >
GeneratorConstant< _Result > constructGeneratorConstant ()
 Convenience function for constructing a GeneratorConstant.

Detailed Description

template<typename _Result>
class GeneratorConstant< _Result >

Generator that returns a constant.


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