walberla::cell::CellSet Class Reference

Detailed Description

A set of cells.

#include <CellSet.h>

+ Inheritance diagram for walberla::cell::CellSet:

Public Member Functions

 CellSet ()
 
 CellSet (const Cell &element)
 
 CellSet (const CellVector &cells)
 
void insert (const cell_idx_t x, const cell_idx_t y, const cell_idx_t z)
 
void insert (const uint_t x, const uint_t y, const uint_t z)
 
bool contains (const cell_idx_t x, const cell_idx_t y, const cell_idx_t z) const
 
bool contains (const uint_t x, const uint_t y, const uint_t z) const
 
CellInterval boundingBox () const
 Complexity is O(N), where N == this->size() More...
 
void pushToCellVector (CellVector &cellVector) const
 
- Public Member Functions inherited from walberla::Set< Cell >
 Set ()=default
 
 Set (const Cell &element)
 
virtual ~Set ()=default
 
std::pair< iterator, bool > insert (const Cell &element)
 
iterator insert (iterator position, const Cell &element)
 
void insert (InputIterator first, InputIterator last)
 
const Set< Cell > & operator&= (const Set< Cell > &set)
 intersection More...
 
const Set< Cell > & operator+= (const Set< Cell > &set)
 union More...
 
const Set< Cell > & operator-= (const Set< Cell > &set)
 difference / relative complement More...
 
size_t size () const
 
void swap (Set< Cell > &set)
 
void toStream (std::ostream &os) const
 
std::string toString () const
 
const_iterator begin () const
 
iterator begin ()
 
const_iterator end () const
 
iterator end ()
 
const std::set< Cell > & get () const
 
std::set< Cell > & get ()
 

Additional Inherited Members

- Public Types inherited from walberla::Set< Cell >
using value_type = typename std::set< Cell >::value_type
 
using const_iterator = typename std::set< Cell >::const_iterator
 
using iterator = typename std::set< Cell >::iterator
 
- Static Public Member Functions inherited from walberla::Set< Cell >
static const Set< CellemptySet ()
 

Constructor & Destructor Documentation

◆ CellSet() [1/3]

walberla::cell::CellSet::CellSet ( )
inline

◆ CellSet() [2/3]

walberla::cell::CellSet::CellSet ( const Cell element)
inline

◆ CellSet() [3/3]

walberla::cell::CellSet::CellSet ( const CellVector cells)
inline

Member Function Documentation

◆ boundingBox()

CellInterval walberla::cell::CellSet::boundingBox ( ) const

Complexity is O(N), where N == this->size()

◆ contains() [1/2]

bool walberla::cell::CellSet::contains ( const cell_idx_t  x,
const cell_idx_t  y,
const cell_idx_t  z 
) const
inline

◆ contains() [2/2]

bool walberla::cell::CellSet::contains ( const uint_t  x,
const uint_t  y,
const uint_t  z 
) const
inline

◆ insert() [1/2]

void walberla::cell::CellSet::insert ( const cell_idx_t  x,
const cell_idx_t  y,
const cell_idx_t  z 
)
inline

◆ insert() [2/2]

void walberla::cell::CellSet::insert ( const uint_t  x,
const uint_t  y,
const uint_t  z 
)
inline

◆ pushToCellVector()

void walberla::cell::CellSet::pushToCellVector ( CellVector cellVector) const
inline

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