Open CASCADE Technology  7.6.0
Public Member Functions | Data Fields

NCollection_CellFilter< Inspector >::Cell Struct Reference

#include <NCollection_CellFilter.hxx>

Public Member Functions

 Cell (const Point &thePnt, const NCollection_Array1< Standard_Real > &theCellSize)
 Constructor; computes cell indices. More...
 
 Cell (const Cell &theOther)
 Copy constructor: ensure that list is not deleted twice. More...
 
void operator= (const Cell &theOther)
 Assignment operator: ensure that list is not deleted twice. More...
 
 ~Cell ()
 Destructor; calls destructors for targets contained in the list. More...
 
Standard_Boolean IsEqual (const Cell &theOther) const
 Compare cell with other one. More...
 
Standard_Integer HashCode (const Standard_Integer theUpperBound) const
 Returns hash code for this cell, in the range [1, theUpperBound]. More...
 

Data Fields

NCollection_LocalArray< long, 10 > index
 
ListNodeObjects
 

Detailed Description

template<class Inspector>
struct NCollection_CellFilter< Inspector >::Cell

Auxiliary structure representing a cell in the space. Cells are stored in the map, each cell contains list of objects that belong to that cell.

Constructor & Destructor Documentation

◆ Cell() [1/2]

template<class Inspector >
NCollection_CellFilter< Inspector >::Cell::Cell ( const Point thePnt,
const NCollection_Array1< Standard_Real > &  theCellSize 
)
inline

Constructor; computes cell indices.

◆ Cell() [2/2]

template<class Inspector >
NCollection_CellFilter< Inspector >::Cell::Cell ( const Cell theOther)
inline

Copy constructor: ensure that list is not deleted twice.

◆ ~Cell()

template<class Inspector >
NCollection_CellFilter< Inspector >::Cell::~Cell ( )
inline

Destructor; calls destructors for targets contained in the list.

Member Function Documentation

◆ HashCode()

template<class Inspector >
Standard_Integer NCollection_CellFilter< Inspector >::Cell::HashCode ( const Standard_Integer  theUpperBound) const
inline

Returns hash code for this cell, in the range [1, theUpperBound].

Parameters
theUpperBoundthe upper bound of the range a computing hash code must be within
Returns
a computed hash code, in the range [1, theUpperBound]

◆ IsEqual()

template<class Inspector >
Standard_Boolean NCollection_CellFilter< Inspector >::Cell::IsEqual ( const Cell theOther) const
inline

Compare cell with other one.

◆ operator=()

template<class Inspector >
void NCollection_CellFilter< Inspector >::Cell::operator= ( const Cell theOther)
inline

Assignment operator: ensure that list is not deleted twice.

Field Documentation

◆ index

template<class Inspector >
NCollection_LocalArray<long, 10> NCollection_CellFilter< Inspector >::Cell::index

◆ Objects

template<class Inspector >
ListNode* NCollection_CellFilter< Inspector >::Cell::Objects

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