walberla::blockforest::PhantomBlock Class Reference

#include <PhantomBlock.h>

Classes

struct  NeighborBlock
 

Public Member Functions

 PhantomBlock (PhantomBlockForest &phantomForest, const BlockID &id, const Set< SUID > &state, const AABB &aabb, const uint_t level, const uint_t sourceLevel, const std::vector< uint_t > sourceProcess, const uint_t targetProcess)
 
const PhantomBlockForestgetPhantomForest () const
 
PhantomBlockForestgetPhantomForest ()
 
const BlockIDgetId () const
 
const Set< SUID > & getState () const
 
const AABB & getAABB () const
 
uint_t getProcess () const
 
uint_t getLevel () const
 
template<typename T >
void addData (const T &data)
 
template<typename T >
getData () const
 
bool hasData () const
 
void clearNeighborhoodSection (const uint_t index)
 
const std::vector< NeighborBlock * > & getNeighborhoodSection (const uint_t index) const
 
uint_t getNeighborhoodSectionSize (const uint_t index) const
 
void addNeighbor (const uint_t sectionIndex, const uint_t neighborIndex)
 
const NeighborBlockgetNeighbor (const uint_t sectionIndex, const uint_t neighborIndex) const
 
const BlockIDgetNeighborId (const uint_t sectionIndex, const uint_t neighborIndex) const
 
uint_t getNeighborProcess (const uint_t sectionIndex, const uint_t neighborIndex) const
 
bool neighborExistsLocally (const uint_t sectionIndex, const uint_t neighborIndex) const
 
bool neighborExistsRemotely (const uint_t sectionIndex, const uint_t neighborIndex) const
 
const Set< SUID > & getNeighborState (const uint_t sectionIndex, const uint_t neighborIndex) const
 
const AABB & getNeighborAABB (const uint_t sectionIndex, const uint_t neighborIndex) const
 
bool neighborhoodSectionHasBlocks (const uint_t sectionIndex) const
 
bool neighborhoodSectionHasSmallerBlocks (const uint_t sectionIndex) const
 
bool neighborhoodSectionHasEquallySizedBlock (const uint_t sectionIndex) const
 
bool neighborhoodSectionHasLargerBlock (const uint_t sectionIndex) const
 
void clearNeighborhood ()
 
const std::vector< NeighborBlock > & getNeighborhood () const
 
uint_t getNeighborhoodSize () const
 
void addNeighbor (const BlockID &id, const uint_t process, const Set< SUID > &state)
 
const NeighborBlockgetNeighbor (const uint_t index) const
 
const BlockIDgetNeighborId (const uint_t index) const
 
uint_t getNeighborProcess (const uint_t index) const
 
void setNeighborProcess (const uint_t index, const uint_t process)
 
bool neighborExistsLocally (const uint_t index) const
 
bool neighborExistsRemotely (const uint_t index) const
 
const Set< SUID > & getNeighborState (const uint_t index) const
 
const AABB & getNeighborAABB (const uint_t index) const
 
bool sourceBlockHasTheSameSize () const
 
bool sourceBlockIsLarger () const
 
bool sourceBlockIsSmaller () const
 
uint_t getSourceLevel () const
 
const std::vector< uint_t > & getSourceProcess () const
 
uint_t getTargetProcess () const
 
void setTargetProcess (const uint_t p)
 

Private Attributes

PhantomBlockForestphantomForest_
 
BlockID id_
 
Set< SUID > state_
 
AABB aabb_
 
uint_t level_
 
walberla::any data_
 
std::vector< NeighborBlock * > neighborhoodSection_ [26]
 
std::vector< NeighborBlockneighborhood_
 
uint_t sourceLevel_
 
std::vector< uint_tsourceProcess_
 
uint_t targetProcess_
 

Constructor & Destructor Documentation

◆ PhantomBlock()

walberla::blockforest::PhantomBlock::PhantomBlock ( PhantomBlockForest phantomForest,
const BlockID id,
const Set< SUID > &  state,
const AABB &  aabb,
const uint_t  level,
const uint_t  sourceLevel,
const std::vector< uint_t sourceProcess,
const uint_t  targetProcess 
)
inline

Member Function Documentation

◆ addData()

template<typename T >
void walberla::blockforest::PhantomBlock::addData ( const T &  data)
inline

◆ addNeighbor() [1/2]

void walberla::blockforest::PhantomBlock::addNeighbor ( const BlockID id,
const uint_t  process,
const Set< SUID > &  state 
)
inline

◆ addNeighbor() [2/2]

void walberla::blockforest::PhantomBlock::addNeighbor ( const uint_t  sectionIndex,
const uint_t  neighborIndex 
)
inline

◆ clearNeighborhood()

void walberla::blockforest::PhantomBlock::clearNeighborhood ( )
inline

◆ clearNeighborhoodSection()

void walberla::blockforest::PhantomBlock::clearNeighborhoodSection ( const uint_t  index)
inline

◆ getAABB()

const AABB& walberla::blockforest::PhantomBlock::getAABB ( ) const
inline

◆ getData()

template<typename T >
T walberla::blockforest::PhantomBlock::getData ( ) const
inline

◆ getId()

const BlockID& walberla::blockforest::PhantomBlock::getId ( ) const
inline

◆ getLevel()

uint_t walberla::blockforest::PhantomBlock::getLevel ( ) const
inline

◆ getNeighbor() [1/2]

const PhantomBlock::NeighborBlock & walberla::blockforest::PhantomBlock::getNeighbor ( const uint_t  index) const
inline

◆ getNeighbor() [2/2]

const PhantomBlock::NeighborBlock & walberla::blockforest::PhantomBlock::getNeighbor ( const uint_t  sectionIndex,
const uint_t  neighborIndex 
) const
inline

◆ getNeighborAABB() [1/2]

const AABB & walberla::blockforest::PhantomBlock::getNeighborAABB ( const uint_t  index) const
inline

◆ getNeighborAABB() [2/2]

const AABB & walberla::blockforest::PhantomBlock::getNeighborAABB ( const uint_t  sectionIndex,
const uint_t  neighborIndex 
) const
inline

◆ getNeighborhood()

const std::vector< NeighborBlock >& walberla::blockforest::PhantomBlock::getNeighborhood ( ) const
inline

◆ getNeighborhoodSection()

const std::vector< PhantomBlock::NeighborBlock * > & walberla::blockforest::PhantomBlock::getNeighborhoodSection ( const uint_t  index) const
inline

◆ getNeighborhoodSectionSize()

uint_t walberla::blockforest::PhantomBlock::getNeighborhoodSectionSize ( const uint_t  index) const
inline

◆ getNeighborhoodSize()

uint_t walberla::blockforest::PhantomBlock::getNeighborhoodSize ( ) const
inline

◆ getNeighborId() [1/2]

const BlockID & walberla::blockforest::PhantomBlock::getNeighborId ( const uint_t  index) const
inline

◆ getNeighborId() [2/2]

const BlockID & walberla::blockforest::PhantomBlock::getNeighborId ( const uint_t  sectionIndex,
const uint_t  neighborIndex 
) const
inline

◆ getNeighborProcess() [1/2]

uint_t walberla::blockforest::PhantomBlock::getNeighborProcess ( const uint_t  index) const
inline

◆ getNeighborProcess() [2/2]

uint_t walberla::blockforest::PhantomBlock::getNeighborProcess ( const uint_t  sectionIndex,
const uint_t  neighborIndex 
) const
inline

◆ getNeighborState() [1/2]

const Set< SUID > & walberla::blockforest::PhantomBlock::getNeighborState ( const uint_t  index) const
inline

◆ getNeighborState() [2/2]

const Set< SUID > & walberla::blockforest::PhantomBlock::getNeighborState ( const uint_t  sectionIndex,
const uint_t  neighborIndex 
) const
inline

◆ getPhantomForest() [1/2]

PhantomBlockForest& walberla::blockforest::PhantomBlock::getPhantomForest ( )
inline

◆ getPhantomForest() [2/2]

const PhantomBlockForest& walberla::blockforest::PhantomBlock::getPhantomForest ( ) const
inline

◆ getProcess()

uint_t walberla::blockforest::PhantomBlock::getProcess ( ) const

◆ getSourceLevel()

uint_t walberla::blockforest::PhantomBlock::getSourceLevel ( ) const
inline

◆ getSourceProcess()

const std::vector< uint_t >& walberla::blockforest::PhantomBlock::getSourceProcess ( ) const
inline

◆ getState()

const Set<SUID>& walberla::blockforest::PhantomBlock::getState ( ) const
inline

◆ getTargetProcess()

uint_t walberla::blockforest::PhantomBlock::getTargetProcess ( ) const
inline

◆ hasData()

bool walberla::blockforest::PhantomBlock::hasData ( ) const
inline

◆ neighborExistsLocally() [1/2]

bool walberla::blockforest::PhantomBlock::neighborExistsLocally ( const uint_t  index) const
inline

◆ neighborExistsLocally() [2/2]

bool walberla::blockforest::PhantomBlock::neighborExistsLocally ( const uint_t  sectionIndex,
const uint_t  neighborIndex 
) const
inline

◆ neighborExistsRemotely() [1/2]

bool walberla::blockforest::PhantomBlock::neighborExistsRemotely ( const uint_t  index) const
inline

◆ neighborExistsRemotely() [2/2]

bool walberla::blockforest::PhantomBlock::neighborExistsRemotely ( const uint_t  sectionIndex,
const uint_t  neighborIndex 
) const
inline

◆ neighborhoodSectionHasBlocks()

bool walberla::blockforest::PhantomBlock::neighborhoodSectionHasBlocks ( const uint_t  sectionIndex) const
inline

◆ neighborhoodSectionHasEquallySizedBlock()

bool walberla::blockforest::PhantomBlock::neighborhoodSectionHasEquallySizedBlock ( const uint_t  sectionIndex) const
inline

◆ neighborhoodSectionHasLargerBlock()

bool walberla::blockforest::PhantomBlock::neighborhoodSectionHasLargerBlock ( const uint_t  sectionIndex) const
inline

◆ neighborhoodSectionHasSmallerBlocks()

bool walberla::blockforest::PhantomBlock::neighborhoodSectionHasSmallerBlocks ( const uint_t  sectionIndex) const
inline

◆ setNeighborProcess()

void walberla::blockforest::PhantomBlock::setNeighborProcess ( const uint_t  index,
const uint_t  process 
)
inline

◆ setTargetProcess()

void walberla::blockforest::PhantomBlock::setTargetProcess ( const uint_t  p)
inline

◆ sourceBlockHasTheSameSize()

bool walberla::blockforest::PhantomBlock::sourceBlockHasTheSameSize ( ) const
inline

◆ sourceBlockIsLarger()

bool walberla::blockforest::PhantomBlock::sourceBlockIsLarger ( ) const
inline

◆ sourceBlockIsSmaller()

bool walberla::blockforest::PhantomBlock::sourceBlockIsSmaller ( ) const
inline

Member Data Documentation

◆ aabb_

AABB walberla::blockforest::PhantomBlock::aabb_
private

◆ data_

walberla::any walberla::blockforest::PhantomBlock::data_
private

◆ id_

BlockID walberla::blockforest::PhantomBlock::id_
private

◆ level_

uint_t walberla::blockforest::PhantomBlock::level_
private

◆ neighborhood_

std::vector< NeighborBlock > walberla::blockforest::PhantomBlock::neighborhood_
private

◆ neighborhoodSection_

std::vector< NeighborBlock* > walberla::blockforest::PhantomBlock::neighborhoodSection_[26]
private

◆ phantomForest_

PhantomBlockForest& walberla::blockforest::PhantomBlock::phantomForest_
private

◆ sourceLevel_

uint_t walberla::blockforest::PhantomBlock::sourceLevel_
private

◆ sourceProcess_

std::vector< uint_t > walberla::blockforest::PhantomBlock::sourceProcess_
private

◆ state_

Set<SUID> walberla::blockforest::PhantomBlock::state_
private

◆ targetProcess_

uint_t walberla::blockforest::PhantomBlock::targetProcess_
private

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