Mesh Oriented datABase  (version 5.5.0)
An array-based unstructured mesh library
Range.cpp File Reference
#include <cassert>
#include "moab/Range.hpp"
#include "Internals.hpp"
#include "moab/CN.hpp"
#include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
+ Include dependency graph for Range.cpp:

Go to the source code of this file.

Namespaces

 moab
 Class representing axis-aligned bounding box.
 

Macros

#define MAX(a, b)   ( ( a ) < ( b ) ? ( b ) : ( a ) )
 
#define MIN(a, b)   ( ( a ) > ( b ) ? ( b ) : ( a ) )
 

Functions

static moab::Range::PairNodealloc_pair (moab::Range::PairNode *n, moab::Range::PairNode *p, moab::EntityHandle f, moab::EntityHandle s)
 
static void free_pair (moab::Range::PairNode *node)
 
Range moab::intersect (const Range &, const Range &)
 intersect two ranges, placing the results in the return range More...
 
Range moab::subtract (const Range &from, const Range &)
 subtract range2 from this, placing the results in the return range More...
 
EntityID moab::operator- (const Range::const_iterator &it1, const Range::const_iterator &it2)
 
bool moab::operator== (const Range &r1, const Range &r2)
 

Macro Definition Documentation

◆ MAX

#define MAX (   a,
 
)    ( ( a ) < ( b ) ? ( b ) : ( a ) )

Definition at line 624 of file Range.cpp.

◆ MIN

#define MIN (   a,
 
)    ( ( a ) > ( b ) ? ( b ) : ( a ) )

Definition at line 625 of file Range.cpp.

Function Documentation

◆ alloc_pair()

static moab::Range::PairNode* alloc_pair ( moab::Range::PairNode n,
moab::Range::PairNode p,
moab::EntityHandle  f,
moab::EntityHandle  s 
)
inlinestatic

MOAB, a Mesh-Oriented datABase, is a software component for creating, storing and accessing finite element mesh data.

Copyright 2004 Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation, the U.S. Government retains certain rights in this software.

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

Definition at line 58 of file Range.cpp.

62 {
63  return new moab::Range::PairNode( n, p, f, s );
64 }

Referenced by moab::Range::erase(), moab::Range::insert(), moab::Range::operator-=(), moab::Range::operator=(), and moab::Range::Range().

◆ free_pair()

static void free_pair ( moab::Range::PairNode node)
inlinestatic

Definition at line 65 of file Range.cpp.

66 {
67  delete node;
68 }

Referenced by moab::Range::clear(), moab::Range::delete_pair_node(), moab::Range::erase(), and moab::Range::insert().