Ares
|
#include <src/Utilities/Helpers.Alex.h>
Public Member Functions | |
bool | Collect (T value) |
std::tr1::function< bool(T)> | getCollector () |
void | forEach (std::tr1::function< bool(T)> action) |
Public Attributes | |
std::set< T, StrictWeakComparer< T > > | Value |
bool Helpers::Alex::DistinctCollector< T >::Collect | ( | T | value | ) | [inline] |
{ Value.insert(value); return true; }
void Helpers::Alex::DistinctCollector< T >::forEach | ( | std::tr1::function< bool(T)> | action | ) | [inline] |
std::tr1::function<bool (T)> Helpers::Alex::DistinctCollector< T >::getCollector | ( | ) | [inline] |
{ return [&](T obj) -> bool { return Collect(obj); }; }
std::set<T, StrictWeakComparer<T> > Helpers::Alex::DistinctCollector< T >::Value |