OCC Main Page | ModelingAlgorithms | Toolkits | Packages | Class Hierarchy | Data Structures | File List | Data Fields | Globals

ModelingAlgorithms
TKBO
IntTools


IntTools_MarkedRangeSet Class Reference

class MarkedRangeSet provides continuous set of ranges marked with flags

#include <IntTools_MarkedRangeSet.hxx>


Public Member Functions

void * operator new (size_t, void *anAddress)
void * operator new (size_t size)
void operator delete (void *anAddress)
Standard_EXPORT IntTools_MarkedRangeSet ()
 Empty constructor
.
Standard_EXPORT IntTools_MarkedRangeSet (const Standard_Real theFirstBoundary, const Standard_Real theLastBoundary, const Standard_Integer theInitFlag)
 build set of ranges which consists of one range with
boundary values theFirstBoundary and theLastBoundary

Standard_EXPORT IntTools_MarkedRangeSet (const IntTools_CArray1OfReal &theSortedArray, const Standard_Integer theInitFlag)
 Build set of ranges based on the array of progressive sorted values
.
Standard_EXPORT void SetBoundaries (const Standard_Real theFirstBoundary, const Standard_Real theLastBoundary, const Standard_Integer theInitFlag)
 build set of ranges which consists of one range with
boundary values theFirstBoundary and theLastBoundary

Standard_EXPORT void SetRanges (const IntTools_CArray1OfReal &theSortedArray, const Standard_Integer theInitFlag)
 Build set of ranges based on the array of progressive sorted values
.
Standard_EXPORT Standard_Boolean InsertRange (const Standard_Real theFirstBoundary, const Standard_Real theLastBoundary, const Standard_Integer theFlag)
 Inserts a new range marked with flag theFlag
It replace the existing ranges or parts of ranges
and their flags.
Returns True if the range is inside the initial boundaries,
otherwise or in case of some error returns False
.
Standard_EXPORT Standard_Boolean InsertRange (const IntTools_Range &theRange, const Standard_Integer theFlag)
 Inserts a new range marked with flag theFlag
It replace the existing ranges or parts of ranges
and their flags.
Returns True if the range is inside the initial boundaries,
otherwise or in case of some error returns False
.
Standard_EXPORT Standard_Boolean InsertRange (const Standard_Real theFirstBoundary, const Standard_Real theLastBoundary, const Standard_Integer theFlag, const Standard_Integer theIndex)
 Inserts a new range marked with flag theFlag
It replace the existing ranges or parts of ranges
and their flags.
The index theIndex is a position where the range will be inserted.
Returns True if the range is inside the initial boundaries,
otherwise or in case of some error returns False
.
Standard_EXPORT Standard_Boolean InsertRange (const IntTools_Range &theRange, const Standard_Integer theFlag, const Standard_Integer theIndex)
 Inserts a new range marked with flag theFlag
It replace the existing ranges or parts of ranges
and their flags.
The index theIndex is a position where the range will be inserted.
Returns True if the range is inside the initial boundaries,
otherwise or in case of some error returns False
.
Standard_EXPORT void SetFlag (const Standard_Integer theIndex, const Standard_Integer theFlag)
 Set flag theFlag for range with index theIndex
.
Standard_EXPORT Standard_Integer Flag (const Standard_Integer theIndex) const
 Returns flag of the range with index theIndex
.
Standard_EXPORT Standard_Integer GetIndex (const Standard_Real theValue) const
 Returns index of range which contains theValue.
If theValue do not belong any range returns 0.
.
Standard_EXPORT const TColStd_SequenceOfInteger & GetIndices (const Standard_Real theValue)
Standard_EXPORT Standard_Integer GetIndex (const Standard_Real theValue, const Standard_Boolean UseLower) const
 Returns index of range which contains theValue
If theValue do not belong any range returns 0.
If UseLower is Standard_True then lower boundary of the range
can be equal to theValue, otherwise upper boundary of the range
can be equal to theValue.
.
Standard_Integer Length () const
 Returns number of ranges
.
Standard_EXPORT IntTools_Range Range (const Standard_Integer theIndex) const
 Returns the range with index theIndex.
the Index can be from 1 to Length()
.

Private Attributes

TColStd_SequenceOfReal myRangeSetStorer
Standard_Integer myRangeNumber
TColStd_SequenceOfInteger myFlags
TColStd_SequenceOfInteger myFoundIndices


Constructor & Destructor Documentation

Standard_EXPORT IntTools_MarkedRangeSet::IntTools_MarkedRangeSet  ) 
 

Standard_EXPORT IntTools_MarkedRangeSet::IntTools_MarkedRangeSet const Standard_Real  theFirstBoundary,
const Standard_Real  theLastBoundary,
const Standard_Integer  theInitFlag
 

Standard_EXPORT IntTools_MarkedRangeSet::IntTools_MarkedRangeSet const IntTools_CArray1OfReal theSortedArray,
const Standard_Integer  theInitFlag
 


Member Function Documentation

Standard_EXPORT Standard_Integer IntTools_MarkedRangeSet::Flag const Standard_Integer  theIndex  )  const
 

Standard_EXPORT Standard_Integer IntTools_MarkedRangeSet::GetIndex const Standard_Real  theValue,
const Standard_Boolean  UseLower
const
 

Standard_EXPORT Standard_Integer IntTools_MarkedRangeSet::GetIndex const Standard_Real  theValue  )  const
 

Standard_EXPORT const TColStd_SequenceOfInteger& IntTools_MarkedRangeSet::GetIndices const Standard_Real  theValue  ) 
 

Standard_EXPORT Standard_Boolean IntTools_MarkedRangeSet::InsertRange const IntTools_Range theRange,
const Standard_Integer  theFlag,
const Standard_Integer  theIndex
 

Standard_EXPORT Standard_Boolean IntTools_MarkedRangeSet::InsertRange const Standard_Real  theFirstBoundary,
const Standard_Real  theLastBoundary,
const Standard_Integer  theFlag,
const Standard_Integer  theIndex
 

Standard_EXPORT Standard_Boolean IntTools_MarkedRangeSet::InsertRange const IntTools_Range theRange,
const Standard_Integer  theFlag
 

Standard_EXPORT Standard_Boolean IntTools_MarkedRangeSet::InsertRange const Standard_Real  theFirstBoundary,
const Standard_Real  theLastBoundary,
const Standard_Integer  theFlag
 

Standard_Integer IntTools_MarkedRangeSet::Length  )  const [inline]
 

void IntTools_MarkedRangeSet::operator delete void *  anAddress  )  [inline]
 

void* IntTools_MarkedRangeSet::operator new size_t  size  )  [inline]
 

void* IntTools_MarkedRangeSet::operator new size_t  ,
void *  anAddress
[inline]
 

Standard_EXPORT IntTools_Range IntTools_MarkedRangeSet::Range const Standard_Integer  theIndex  )  const
 

Standard_EXPORT void IntTools_MarkedRangeSet::SetBoundaries const Standard_Real  theFirstBoundary,
const Standard_Real  theLastBoundary,
const Standard_Integer  theInitFlag
 

Standard_EXPORT void IntTools_MarkedRangeSet::SetFlag const Standard_Integer  theIndex,
const Standard_Integer  theFlag
 

Standard_EXPORT void IntTools_MarkedRangeSet::SetRanges const IntTools_CArray1OfReal theSortedArray,
const Standard_Integer  theInitFlag
 


Field Documentation

TColStd_SequenceOfInteger IntTools_MarkedRangeSet::myFlags [private]
 

TColStd_SequenceOfInteger IntTools_MarkedRangeSet::myFoundIndices [private]
 

Standard_Integer IntTools_MarkedRangeSet::myRangeNumber [private]
 

TColStd_SequenceOfReal IntTools_MarkedRangeSet::myRangeSetStorer [private]
 


The documentation for this class was generated from the following files:
Generated on Mon Aug 25 13:42:21 2008 for OpenCASCADE by  doxygen 1.4.1