10 #ifndef SFCSORTBENCH_SEARCHKEY_H 11 #define SFCSORTBENCH_SEARCHKEY_H 31 int m_uiStencilIndexWithDirection;
43 m_uiStencilIndexWithDirection=-1;
48 SearchKey(
unsigned int px,
unsigned int py,
unsigned int pz,
unsigned int plevel,
unsigned int pDim,
unsigned int pMaxDepth)
55 m_uiStencilIndexWithDirection=-1;
59 SearchKey(
unsigned int pLevel,
unsigned int pMaxDepth)
66 m_uiStencilIndexWithDirection=-1;
77 m_uiStencilIndexWithDirection=-1;
86 inline void operator= (
const SearchKey& node )
92 m_uiOwner=node.m_uiOwner;
93 m_uiStencilIndexWithDirection=node.m_uiStencilIndexWithDirection;
104 m_uiStencilIndexWithDirection=-1;
107 inline void addOwner(
unsigned int ownerLocalID){
108 m_uiOwner=ownerLocalID;
112 inline void addStencilIndexAndDirection(
unsigned int index,
unsigned int direction)
114 m_uiStencilIndexWithDirection=((index<<3) | direction);
117 inline void addStencilIndexAndDirection(
unsigned int direction)
119 m_uiStencilIndexWithDirection=direction;
123 inline int getOwner(){
return m_uiOwner;}
124 inline int getStencilIndexDirectionList(){
return m_uiStencilIndexWithDirection;}
132 #endif //SFCSORTBENCH_SEARCHKEY_H Simple class to manage async data transfer in the ODA class.
Definition: asyncExchangeContex.h:16
unsigned int getFlag() const
get the m_uiFlag value. Which is used to store the level and other aditional info.
Definition: TreeNode.h:402
A class to manage octants.
Definition: TreeNode.h:35
unsigned int getX() const
get integer values of the octree coordinates.
Definition: TreeNode.h:366