Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
IFSelect_SelectCombine Class Reference

A SelectCombine type Selection defines algebraic operations
between results of several Selections
It is a deferred class : sub-classes will have to define
precise what operator is to be applied

#include <IFSelect_SelectCombine.hxx>

Inheritance diagram for IFSelect_SelectCombine:
Inheritance graph
[legend]

Public Member Functions

Standard_Integer NbInputs () const
 Returns the count of Input Selections

Handle_IFSelect_Selection Input (const Standard_Integer num) const
 Returns an Input Selection, given its rank in the list

Standard_Integer InputRank (const Handle< IFSelect_Selection > &sel) const
 Returns the rank of an input Selection, 0 if not in the list.
Most generally, its value is meaningless, except for testing
the presence of an input Selection :

void Add (const Handle< IFSelect_Selection > &sel, const Standard_Integer atnum=0)
 Adds a Selection to the filling list
By default, adds it to the end of the list
A Positive rank less then NbInputs gives an insertion rank
(InsertBefore : the new <atnum>th item of the list is <sel>)

Standard_Boolean Remove (const Handle< IFSelect_Selection > &sel)
 Removes an input Selection.
Returns True if Done, False, if <sel> is not an input for <me>

Standard_Boolean Remove (const Standard_Integer num)
 Removes an input Selection, given its rank in the list
Returns True if Done, False if <num> is out of range

void FillIterator (IFSelect_SelectionIterator &iter) const
 Puts in an Iterator the Selections from which "me" depends
That is to say, the list of Input Selections

Protected Member Functions

 IFSelect_SelectCombine ()
 Defines an empty SelectCombine

virtual Standard_Boolean HasUniqueResult () const
 Returns always True, because RootResult gives a Unique list


Constructor & Destructor Documentation


Member Function Documentation

Implements IFSelect_Selection.

virtual Standard_Boolean IFSelect_SelectCombine::HasUniqueResult ( ) const [protected, virtual]

Reimplemented from IFSelect_Selection.

Handle_IFSelect_Selection IFSelect_SelectCombine::Input ( const Standard_Integer  num) const
  • == 0 if <sel> is not an input for <me>
  • > 0 if <sel> is an input for <me>

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