MOAB: Mesh Oriented datABase  (version 5.2.1)
smoab::FacesAdjRegions Struct Reference

#include <FaceSets.h>

Public Member Functions

 FacesAdjRegions (int f, smoab::EntityHandle r0, smoab::EntityHandle r1)
 FacesAdjRegions (int f)
bool operator< (const FacesAdjRegions &other) const
smoab::EntityHandle otherId (smoab::EntityHandle other) const

Public Attributes

int FaceId
smoab::EntityHandle Region0
smoab::EntityHandle Region1

Detailed Description

Definition at line 32 of file FaceSets.h.


Constructor & Destructor Documentation

Definition at line 34 of file FaceSets.h.

References Region0, Region1, and swap().

                                                                    :
    FaceId(f),
    Region0(r0),
    Region1(r1)
    {
    if (r0 > r1)
      {
      std::swap(this->Region0,this->Region1);
      }
    }

Definition at line 45 of file FaceSets.h.

                        :
    FaceId(f),
    Region0(-3),
    Region1(-2)
    {}

Member Function Documentation

bool smoab::FacesAdjRegions::operator< ( const FacesAdjRegions other) const [inline]

Definition at line 51 of file FaceSets.h.

References FaceId.

    {
    return (this->FaceId < other.FaceId);
    }

Definition at line 56 of file FaceSets.h.

References Region0, and Region1.

Referenced by smoab::findFaceSets().

    {
    if(other == Region0)
      {
      return Region1;
      }
    return Region0;
    }

Member Data Documentation

Definition at line 65 of file FaceSets.h.

Referenced by operator<().

List of all members.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines