This is a default functor for testing which items in the container should be handled by each method. More...
#include <EC.h>
Public Member Functions | |
DoHandleTest (int _type_id=-1, bool _needs_has_p2d=false, bool _needs_has_p3d=false) | |
virtual bool | operator() (const T &f) const |
Protected Attributes | |
bool | needs_has_p2d |
bool | needs_has_p3d |
int | type_id |
This is a default functor for testing which items in the container should be handled by each method.
By default this only tests that the only the type_id. If you specify type_id that is not -1 then the functor tests that the item's type_id matches. Naturally you can make whatever tests in your own functors.
alvar::DoHandleTest< T >::DoHandleTest | ( | int | _type_id = -1 , |
bool | _needs_has_p2d = false , |
||
bool | _needs_has_p3d = false |
||
) | [inline] |
virtual bool alvar::DoHandleTest< T >::operator() | ( | const T & | f | ) | const [inline, virtual] |
bool alvar::DoHandleTest< T >::needs_has_p2d [protected] |
bool alvar::DoHandleTest< T >::needs_has_p3d [protected] |
int alvar::DoHandleTest< T >::type_id [protected] |