Features
Public Member Functions | List of all members
features::combination_t< T > Class Template Reference

#include <features.hpp>

Public Member Functions

 combination_t (const std::vector< T > symbols, std::size_t k)
 
void initialize ()
 
std::size_t k () const
 
bool next ()
 
std::vector< T > operator() () const
 

Detailed Description

template<class T>
class features::combination_t< T >

Class template that generates all combinations of size k for symbols.

Constructor & Destructor Documentation

◆ combination_t()

template<class T >
features::combination_t< T >::combination_t ( const std::vector< T >  symbols,
std::size_t  k 
)
inline

Constructor that accepts a vector with symbols and size k.

Here is the call graph for this function:

Member Function Documentation

◆ initialize()

template<class T >
void features::combination_t< T >::initialize ( )
inline

Member function for initializing a combination.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ k()

template<class T >
std::size_t features::combination_t< T >::k ( ) const
inline

Returns the size of the combination.

Here is the caller graph for this function:

◆ next()

template<class T >
bool features::combination_t< T >::next ( )
inline

Returns true, if a succeeding state is available for the combination.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator()()

template<class T >
std::vector<T> features::combination_t< T >::operator() ( ) const
inline

Function call operator that returns a vector containing the symbols of the actual combination.


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