40 bool operator()(std::vector<unsigned int> list1, std::vector<unsigned int> list2)
const
44 (list1.size() < list2.size()) ? list1.size() : list2.size();
45 for (
size_t i = 0; i < minSize; i++)
47 if (list1.at(i) < list2.at(i))
51 else if (list1.at(i) == list2.at(i))
61 if (list1.size() == list2.size())
66 if (list1.size() < list2.size())
110 std::cout <<
"Appel du mauvais selector." << std::endl;
126 return typeid(
this).
name();
Base class for Selector (used to keep or disable rays according different criterias)
virtual bool insertWithTest(T *r)
Select the ray if it respects the criteria of this Selector.
virtual Selector * Copy()
Copy Selector.
void setIsDeletable(bool _isDeletable)
Set deletable flag.
virtual const char * getSelectorName()
Selector()
Base constructor.
bool deletable
Flag to know if the selector may be deleted or not.
virtual ~Selector()
Destructor.
virtual void reset()
Reset (clear the data) of this Selector.
bool isDeletable()
Return true if the Selector may be deleted.
virtual SELECTOR_RESPOND canBeInserted(T *r, unsigned long long &replace)
Check if the ray respects the criteria of this Selector and return a SELECTOR_RESPOND.
virtual void insert(T *r)
Select the ray.
bool operator()(std::vector< unsigned int > list1, std::vector< unsigned int > list2) const