mpqc::utility::GeneratorAdaptor< BaseGenerator, UnaryCallable > Class Template Reference
Collaboration diagram for mpqc::utility::GeneratorAdaptor< BaseGenerator, UnaryCallable >:
Documentation
template<typename BaseGenerator, typename UnaryCallable>
class mpqc::utility::GeneratorAdaptor< BaseGenerator, UnaryCallable >
Generator adaptor.
- Template Parameters
-
BaseGenerator a generator type UnaryCallable a unary callable type
Public Types | |
using | value_type = std::invoke_result_t< UnaryCallable, const typename BaseGenerator::value_type & > |
Public Types inherited from mpqc::utility::GeneratorRangeFacade< GeneratorAdaptor< BaseGenerator, UnaryCallable >, std::invoke_result_t< UnaryCallable, const BaseGenerator::value_type & > > | |
typedef GeneratorIterator< GeneratorAdaptor< BaseGenerator, UnaryCallable >, GeneratorAdaptor< BaseGenerator, UnaryCallable > *, std::invoke_result_t< UnaryCallable, const BaseGenerator::value_type & > > | iterator |
typedef GeneratorIterator< GeneratorAdaptor< BaseGenerator, UnaryCallable >, GeneratorAdaptor< BaseGenerator, UnaryCallable > *, const std::invoke_result_t< UnaryCallable, const BaseGenerator::value_type & > > | const_iterator |
Public Member Functions | |
template<typename Base , typename Callable > | |
GeneratorAdaptor (Base &&base, Callable &&callable) | |
operator bool () const | |
GeneratorAdaptor & | operator++ () |
const value_type & | operator* () const |
bool | operator== (const GeneratorAdaptor &other) const |
const auto & | base () const |
Public Member Functions inherited from mpqc::utility::GeneratorRangeFacade< GeneratorAdaptor< BaseGenerator, UnaryCallable >, std::invoke_result_t< UnaryCallable, const BaseGenerator::value_type & > > | |
const_iterator | begin () |
const_iterator | end () const |
Member Typedef Documentation
◆ value_type
template<typename BaseGenerator , typename UnaryCallable >
using mpqc::utility::GeneratorAdaptor< BaseGenerator, UnaryCallable >::value_type = std::invoke_result_t<UnaryCallable, const typename BaseGenerator::value_type&> |
Constructor & Destructor Documentation
◆ GeneratorAdaptor()
template<typename BaseGenerator , typename UnaryCallable >
template<typename Base , typename Callable >
|
inline |
- Parameters
-
[in] base a BaseGenerator object
Member Function Documentation
◆ base()
template<typename BaseGenerator , typename UnaryCallable >
|
inline |
◆ operator bool()
template<typename BaseGenerator , typename UnaryCallable >
|
inlineexplicit |
- Returns
- true if not pointing to the end
◆ operator*()
template<typename BaseGenerator , typename UnaryCallable >
|
inline |
◆ operator++()
template<typename BaseGenerator , typename UnaryCallable >
|
inline |
◆ operator==()
template<typename BaseGenerator , typename UnaryCallable >
|
inline |
The documentation for this class was generated from the following file:
- mpqc/util/misc/generator.h