Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mblockData Class Reference
Collaboration diagram for mblockData:

Classes

class  blockPatches
 

Public Member Functions

 mblockData (vector< block * > &blocks_)
 
 ~mblockData ()
 
void write (block *b, FILE *out)
 
int getPatchNumber (block *dest, patch *partner)
 
vector< patch * > & getPatchListWith (block *dest, patch *partner, int *hisFace=NULL)
 

Private Attributes

int nBlock
 
vector< block * > & blocks
 
blockPatchesblock2patches
 

Detailed Description

Definition at line 63 of file writemblock.cpp.

Constructor & Destructor Documentation

mblockData ( vector< block * > &  blocks_)
inline

Definition at line 101 of file writemblock.cpp.

References block2patches, blocks, and nBlock.

102  :blocks(blocks_)
103  {
104  int b;
105  nBlock=blocks.size();
106  block2patches=new blockPatches[nBlock];
107  for (b=0;b<nBlock;b++)
108  block2patches[b].init(blocks[b]);
109  }
vector< block * > & blocks
Definition: writemblock.cpp:65
blockPatches * block2patches
Definition: writemblock.cpp:99
~mblockData ( )
inline

Definition at line 110 of file writemblock.cpp.

References block2patches.

110  {
111  delete[] block2patches;
112  }
blockPatches * block2patches
Definition: writemblock.cpp:99

Member Function Documentation

vector<patch *>& getPatchListWith ( block dest,
patch partner,
int *  hisFace = NULL 
)
inline

Definition at line 124 of file writemblock.cpp.

References block2patches, face, block::getBlockNumber(), mblockData::blockPatches::getPatchNumber(), and mblockData::blockPatches::patches.

125  {
126  blockPatches &b=block2patches[dest->getBlockNumber()];
127  int face;
128  b.getPatchNumber(partner,&face);
129  if (hisFace!=NULL) *hisFace=face;
130  return b.patches[face];
131  }
static T_VertexSet * face
Definition: vinci_lass.c:79
blockPatches * block2patches
Definition: writemblock.cpp:99
int getBlockNumber(void) const
Definition: adj.h:219

Here is the call graph for this function:

int getPatchNumber ( block dest,
patch partner 
)
inline

Definition at line 119 of file writemblock.cpp.

References block2patches, and block::getBlockNumber().

Referenced by internalBCpatch::writeMblock().

120  {
121  return block2patches[dest->getBlockNumber()].
122  getPatchNumber(partner);
123  }
blockPatches * block2patches
Definition: writemblock.cpp:99
int getBlockNumber(void) const
Definition: adj.h:219
int getPatchNumber(block *dest, patch *partner)

Here is the call graph for this function:

Here is the caller graph for this function:

void write ( block b,
FILE *  out 
)
inline

Definition at line 114 of file writemblock.cpp.

References block2patches, block::getBlockNumber(), and mblockData::blockPatches::write().

Referenced by writeMblock().

114  {
115  block2patches[b->getBlockNumber()].write(out,*this,b);
116  }
void write(FILE *out, mblockData &d, block *b)
blockPatches * block2patches
Definition: writemblock.cpp:99
int getBlockNumber(void) const
Definition: adj.h:219

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

blockPatches* block2patches
private

Definition at line 99 of file writemblock.cpp.

Referenced by getPatchListWith(), getPatchNumber(), mblockData(), write(), and ~mblockData().

vector<block *>& blocks
private

Definition at line 65 of file writemblock.cpp.

Referenced by mblockData().

int nBlock
private

Definition at line 64 of file writemblock.cpp.

Referenced by mblockData().


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