Rocstar  1.0
Rocstar multiphysics simulation application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
blockConsumer Class Referenceabstract

#include <gridutil.h>

Inheritance diagram for blockConsumer:

Public Member Functions

virtual ~blockConsumer ()
 
const char * read (const char *gridFile)
 
virtual vector3dallocateBlock (blockDim &dim)
 
virtual void freeBlock (vector3d *blk)
 
virtual const char * consume (const blockDim &dim, vector3d *locs)=0
 

Detailed Description

Definition at line 239 of file gridutil.h.

Constructor & Destructor Documentation

~blockConsumer ( )
virtual

Definition at line 155 of file read.cpp.

155 { }

Member Function Documentation

vector3d * allocateBlock ( blockDim dim)
virtual

Definition at line 146 of file read.cpp.

References blockDim::getSize().

Referenced by read_general(), read_hdf(), and read_reg().

147 {
148  return new vector3d[dim.getSize()];
149 }
int getSize(void) const
Definition: gridutil.h:126

Here is the call graph for this function:

Here is the caller graph for this function:

virtual const char* consume ( const blockDim dim,
vector3d locs 
)
pure virtual

Implemented in blockReader.

Referenced by read_general(), read_hdf(), and read_reg().

Here is the caller graph for this function:

void freeBlock ( vector3d blk)
virtual

Reimplemented in blockReader.

Definition at line 150 of file read.cpp.

Referenced by read_general(), read_hdf(), and read_reg().

151 {
152  delete[] blk;
153 }

Here is the caller graph for this function:

const char * read ( const char *  gridFile)

Definition at line 140 of file read.cpp.

References read_multiple().

Referenced by main().

141 {
142  return read_multiple(file,*this);
143 }
const char * read_multiple(const char *file, blockConsumer &dest)
Definition: read.cpp:126

Here is the call graph for this function:

Here is the caller graph for this function:


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