Back to index

salome-smesh  6.5.0
Public Member Functions | Public Attributes
StdMeshers_ShapeShapeBiDirectionMap Struct Reference

Struct used instead of a sole TopTools_DataMapOfShapeShape to avoid problems with bidirectional bindings. More...

#include <StdMeshers_ProjectionUtils.hxx>

List of all members.

Public Member Functions

bool Bind (const TopoDS_Shape &s1, const TopoDS_Shape &s2)
bool IsBound (const TopoDS_Shape &s, const bool isShape2=false) const
bool IsEmpty () const
int Extent () const
void Clear ()
const TopoDS_Shape & operator() (const TopoDS_Shape &s, const bool isShape2=false) const

Public Attributes

TopTools_DataMapOfShapeShape _map1to2
TopTools_DataMapOfShapeShape _map2to1

Detailed Description

Struct used instead of a sole TopTools_DataMapOfShapeShape to avoid problems with bidirectional bindings.

Definition at line 52 of file StdMeshers_ProjectionUtils.hxx.


Member Function Documentation

bool StdMeshers_ShapeShapeBiDirectionMap::Bind ( const TopoDS_Shape &  s1,
const TopoDS_Shape &  s2 
) [inline]

Definition at line 57 of file StdMeshers_ProjectionUtils.hxx.

  { _map1to2.Bind( s1, s2 ); return _map2to1.Bind( s2, s1 ); }

Here is the caller graph for this function:

Definition at line 63 of file StdMeshers_ProjectionUtils.hxx.

{ _map1to2.Clear(); _map2to1.Clear(); }

Definition at line 62 of file StdMeshers_ProjectionUtils.hxx.

{ return _map1to2.Extent(); }

Here is the caller graph for this function:

bool StdMeshers_ShapeShapeBiDirectionMap::IsBound ( const TopoDS_Shape &  s,
const bool  isShape2 = false 
) const [inline]

Definition at line 59 of file StdMeshers_ProjectionUtils.hxx.

  { return (isShape2 ? _map2to1 : _map1to2).IsBound( s ); }

Here is the caller graph for this function:

Definition at line 61 of file StdMeshers_ProjectionUtils.hxx.

{ return _map1to2.IsEmpty(); }

Here is the caller graph for this function:

const TopoDS_Shape& StdMeshers_ShapeShapeBiDirectionMap::operator() ( const TopoDS_Shape &  s,
const bool  isShape2 = false 
) const [inline]

Definition at line 64 of file StdMeshers_ProjectionUtils.hxx.

  { // if we get a Standard_NoSuchObject here, it means that the calling code
    // passes incorrect isShape2
    return (isShape2 ? _map2to1 : _map1to2)( s );
  }

Member Data Documentation

TopTools_DataMapOfShapeShape StdMeshers_ShapeShapeBiDirectionMap::_map1to2

Definition at line 54 of file StdMeshers_ProjectionUtils.hxx.

TopTools_DataMapOfShapeShape StdMeshers_ShapeShapeBiDirectionMap::_map2to1

Definition at line 54 of file StdMeshers_ProjectionUtils.hxx.


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