Open CASCADE Technology  7.5.0
Public Member Functions | Protected Attributes

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 contructor. More...
 
void SetFirst (const Standard_Integer theI1)
 Modifier Sets the first index <theI1> of the range. More...
 
void SetLast (const Standard_Integer theI2)
 Modifier Sets the second index <theI2> of the range. More...
 
Standard_Integer First () const
 Selector Returns the first index of the range. More...
 
Standard_Integer Last () const
 Selector Returns the second index of the range. More...
 
void SetIndices (const Standard_Integer theI1, const Standard_Integer theI2)
 Modifier Sets the first index of the range <theI1> Sets the second index of the range <theI2> More...
 
void Indices (Standard_Integer &theI1, Standard_Integer &theI2) const
 Selector Returns the first index of the range <theI1> Returns the second index of the range <theI2> More...
 
Standard_Boolean Contains (const Standard_Integer theIndex) const
 Query Returns true if the range contains <theIndex> More...
 
void Dump () const
 

Protected Attributes

Standard_Integer myFirst
 
Standard_Integer myLast
 

Detailed Description

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

Constructor & Destructor Documentation

◆ BOPDS_IndexRange()

BOPDS_IndexRange::BOPDS_IndexRange ( )

Empty contructor.

Member Function Documentation

◆ Contains()

Standard_Boolean BOPDS_IndexRange::Contains ( const Standard_Integer  theIndex) const

Query Returns true if the range contains <theIndex>

◆ Dump()

void BOPDS_IndexRange::Dump ( ) const

◆ First()

Standard_Integer BOPDS_IndexRange::First ( ) const

Selector Returns the first index of the range.

◆ Indices()

void BOPDS_IndexRange::Indices ( Standard_Integer theI1,
Standard_Integer theI2 
) const

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

◆ Last()

Standard_Integer BOPDS_IndexRange::Last ( ) const

Selector Returns the second index of the range.

◆ SetFirst()

void BOPDS_IndexRange::SetFirst ( const Standard_Integer  theI1)

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

◆ SetIndices()

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

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

◆ SetLast()

void BOPDS_IndexRange::SetLast ( const Standard_Integer  theI2)

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

Field Documentation

◆ myFirst

Standard_Integer BOPDS_IndexRange::myFirst
protected

◆ myLast

Standard_Integer BOPDS_IndexRange::myLast
protected

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