Template Struct Filter

Inheritance Relationships

Base Type

  • public std::unary_function< T, bool >

Derived Types

Struct Documentation

template<typename T>
struct Filter : public std::unary_function<T, bool>

Base struct to be inherited by all filter implementations. Child classes will have to implement ()-operator and will all inherit typedef “type” which corresponds to the type of “()”.

Subclassed by nix::util::AcceptAll< T >, nix::util::IdFilter< T >, nix::util::IdsFilter< T >, nix::util::MetadataFilter< T >, nix::util::NameFilter< T >, nix::util::SourceFilter< T >, nix::util::TypeFilter< T >

Public Types

typedef std::function<bool(const T&)> type

Public Functions

virtual bool operator()(const T&) = 0
inline virtual ~Filter()