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
    BOPDS_IndexRange Class Reference

    The class BOPDS_IndexRange is to store the information about range of two indices. More...

    #include <BOPDS_IndexRange.hxx>

    Public Member Functions

     BOPDS_IndexRange ()
     Empty constructor.
     BOPDS_IndexRange (const int theI1, const int theI2)
     Constructor with initial indices.
    void SetFirst (const int theI1)
     Modifier Sets the first index <theI1> of the range.
    void SetLast (const int theI2)
     Modifier Sets the second index <theI2> of the range.
    int First () const
     Selector Returns the first index of the range.
    int Last () const
     Selector Returns the second index of the range.
    void SetIndices (const int theI1, const int theI2)
     Modifier Sets the first index of the range <theI1> Sets the second index of the range <theI2>.
    void Indices (int &theI1, int &theI2) const
     Selector Returns the first index of the range <theI1> Returns the second index of the range <theI2>.
    bool Contains (const int theIndex) const
     Query Returns true if the range contains <theIndex>.
    void Dump () const

    Protected Attributes

    int myFirst
    int myLast

    Detailed Description

    The class BOPDS_IndexRange is to store the information about range of two indices.

    Constructor & Destructor Documentation

    ◆ BOPDS_IndexRange() [1/2]

    BOPDS_IndexRange::BOPDS_IndexRange ( )

    Empty constructor.

    ◆ BOPDS_IndexRange() [2/2]

    BOPDS_IndexRange::BOPDS_IndexRange ( const int theI1,
    const int theI2 )

    Constructor with initial indices.

    Member Function Documentation

    ◆ Contains()

    bool BOPDS_IndexRange::Contains ( const int theIndex) const

    Query Returns true if the range contains <theIndex>.

    ◆ Dump()

    void BOPDS_IndexRange::Dump ( ) const

    ◆ First()

    int BOPDS_IndexRange::First ( ) const

    Selector Returns the first index of the range.

    ◆ Indices()

    void BOPDS_IndexRange::Indices ( int & theI1,
    int & theI2 ) const

    Selector Returns the first index of the range <theI1> Returns the second index of the range <theI2>.

    ◆ Last()

    int BOPDS_IndexRange::Last ( ) const

    Selector Returns the second index of the range.

    ◆ SetFirst()

    void BOPDS_IndexRange::SetFirst ( const int theI1)

    Modifier Sets the first index <theI1> of the range.

    ◆ SetIndices()

    void BOPDS_IndexRange::SetIndices ( const int theI1,
    const int theI2 )

    Modifier Sets the first index of the range <theI1> Sets the second index of the range <theI2>.

    ◆ SetLast()

    void BOPDS_IndexRange::SetLast ( const int theI2)

    Modifier Sets the second index <theI2> of the range.

    Field Documentation

    ◆ myFirst

    int BOPDS_IndexRange::myFirst
    protected

    ◆ myLast

    int BOPDS_IndexRange::myLast
    protected

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