Base class for CombineChannels*.
More...
#include <apf/combine_channels.h>
|
using | T = typename std::iterator_traits< typename std::remove_reference< ListProxy >::type::value_type::iterator >::value_type |
|
|
template<typename ItemType > |
void | _case_one_copy (const ItemType &item) |
|
template<typename ItemType , typename FunctionType > |
void | _case_one_transform (const ItemType &item, FunctionType &f) |
|
| ~CRTP ()=default |
| Protected destructor to avoid base class pointers. More...
|
|
template<typename Derived, typename ListProxy, typename Out>
class apf::CombineChannelsBase< Derived, ListProxy, Out >
Base class for CombineChannels*.
- Template Parameters
-
Derived | Derived class ("Curiously Recurring Template Pattern") |
ListProxy | Proxy class for input list. If no proxy is needed, just use a reference to the list (e.g. std::list<myitem>&). ListProxy (or the list itself) must have begin() and end() and an inner type value_type which itself must have begin() and end() and an inner type iterator . |
Out | Output class. Must have begin() and end() functions. |
- See also
- CombineChannels, CombineChannelsCopy, CombineChannelsCrossfade, CombineChannelsCrossfadeCopy, CombineChannelsInterpolation
Definition at line 72 of file combine_channels.h.
template<typename Derived , typename ListProxy , typename Out >
using apf::CombineChannelsBase< Derived, ListProxy, Out >::T = typename std::iterator_traits<typename std::remove_reference< ListProxy>::type::value_type::iterator>::value_type |
|
protected |
◆ CombineChannelsBase()
template<typename Derived , typename ListProxy , typename Out >
template<typename L >
Constructor.
- Parameters
-
in | List of objects to combine |
out | Target object |
Definition at line 83 of file combine_channels.h.
◆ process()
template<typename Derived , typename ListProxy , typename Out >
template<typename F >
Do the actual combining.
- Parameters
-
f | A "special" function object. It has to have a member function select() which takes an item of the list as parameter. Depending on the derived class, it may also need other member functions. |
Definition at line 93 of file combine_channels.h.
◆ before_the_loop()
template<typename Derived , typename ListProxy , typename Out >
◆ case_one()
template<typename Derived , typename ListProxy , typename Out >
template<typename ItemType , typename F >
◆ case_two()
template<typename Derived , typename ListProxy , typename Out >
template<typename ItemType , typename F >
◆ after_the_loop()
template<typename Derived , typename ListProxy , typename Out >
◆ _case_one_copy()
template<typename Derived , typename ListProxy , typename Out >
template<typename ItemType >
◆ _case_one_transform()
template<typename Derived , typename ListProxy , typename Out >
template<typename ItemType , typename FunctionType >
void apf::CombineChannelsBase< Derived, ListProxy, Out >::_case_one_transform |
( |
const ItemType & |
item, |
|
|
FunctionType & |
f |
|
) |
| |
|
inlineprotected |
◆ _out
template<typename Derived , typename ListProxy , typename Out >
◆ _selection
template<typename Derived , typename ListProxy , typename Out >
◆ _accumulate
template<typename Derived , typename ListProxy , typename Out >
The documentation for this class was generated from the following file: