SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND


Platform::Lang::TypeActors
Template Struct Selector
Implemented in:
Platform.Lang.TypeActors.h
Direct Known Subclasses:
String::CustomDelimiter, String::NewLineDelimiter, String::WhiteSpaceDelimiter

template <typename Type>
struct Selector

A function object to select or reject an object based on its properties. The default Selector indiscriminantly accepts any given object (i.e. the accept function always returns True), however, deriving types may (and should) override this behaviour.

See Also:
Runtime::FileSystem::ListFilter, String::Delimiter

Method Summarycollapse
Bool accept(const Type& object) const
          A predicate function to determine whether the given object is to be accepted or rejected by the selector.
Bool operator()(const Type& object) const
          A predicate functor to determine whether the given object is to be accepted or rejected by the selector.

 

Method Detail

accept[virtual, inline]

Bool accept(const Type& object) const

A predicate function to determine whether the given object is to be accepted or rejected by the selector.

Parameters:
object - an object whose properties are to be tested
Returns:
True if the object is accepted by the selector, False otherwise

operator()[inline]

Bool operator()(const Type& object) const

A predicate functor to determine whether the given object is to be accepted or rejected by the selector.

Parameters:
object - an object whose properties are to be tested
Returns:
True if the object is accepted by the selector, False otherwise


SUMMARY:  INNER | FIELD | CONSTR | METHOD | FRIEND DETAIL:  FIELD | CONSTR | METHOD | FRIEND