Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes
NCollection_UBTree< TheObjType, TheBndType >::Selector Class Referenceabstract

Memory allocation. More...

#include <NCollection_UBTree.hxx>

Public Member Functions

 Selector ()
 
virtual bool Reject (const TheBndType &) const =0
 
virtual bool Accept (const TheObjType &)=0
 
bool Stop () const noexcept
 
virtual ~Selector ()=default
 

Protected Attributes

bool myStop
 

Detailed Description

template<class TheObjType, class TheBndType>
class NCollection_UBTree< TheObjType, TheBndType >::Selector

Memory allocation.

Class defining the minimal interface of selector.

Constructor & Destructor Documentation

◆ Selector()

NCollection_UBTree< TheObjType, TheBndType >::Selector::Selector ( )
inline

Constructor

◆ ~Selector()

virtual NCollection_UBTree< TheObjType, TheBndType >::Selector::~Selector ( )
virtualdefault

Destructor

Member Function Documentation

◆ Accept()

virtual bool NCollection_UBTree< TheObjType, TheBndType >::Selector::Accept ( const TheObjType & )
pure virtual

Confirm the object while making necessary tests on it. This method is called when the bounding box of the object conforms to the conditions (see Reject()). It is also supposed to keep record of accepted objects.

Returns
True if the object is accepted

◆ Reject()

virtual bool NCollection_UBTree< TheObjType, TheBndType >::Selector::Reject ( const TheBndType & ) const
pure virtual

Rejection base on the bounding type.

Returns
True if the bounding box does not conform to some selection conditions

◆ Stop()

bool NCollection_UBTree< TheObjType, TheBndType >::Selector::Stop ( ) const
inlinenoexcept

This condition is checked after each call to Accept().

Returns
True signals that the selection process is stopped

Field Documentation

◆ myStop

bool NCollection_UBTree< TheObjType, TheBndType >::Selector::myStop
protected

The method Accept() should set this flag if the selection process is to be stopped


The documentation for this class was generated from the following file: