OCCT3D OCCT 8.0.1
OCCT documentation

Search guides and API reference

Enter at least two characters.

    Open CASCADE Technology Reference Manual 8.0.1
    NCollection_UBTree< TheObjType, TheBndType >::Selector Class Referenceabstract

    Memory allocation. More...

    #include <NCollection_UBTree.hxx>

    Inheritance diagram for NCollection_UBTree< TheObjType, TheBndType >::Selector:

    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()

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

    Constructor

    ◆ ~Selector()

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

    Destructor

    Member Function Documentation

    ◆ Accept()

    template<class TheObjType, class TheBndType>
    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()

    template<class TheObjType, class TheBndType>
    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()

    template<class TheObjType, class TheBndType>
    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

    template<class TheObjType, class TheBndType>
    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: