BaseTransform Class Reference

#include <BoxLayout.H>

Inheritance diagram for BaseTransform:

Inheritance graph
[legend]

List of all members.


Detailed Description

Base class to transform boxes in an existing layout.

If you want to do something esoteric to each box in a layout and preserve its ordering and proc assignment, here is what you do. Define your own transformation that inherits from this and here is what the code will look like.

class MyTransform: public BaseTransform { virtual Box operator()(const Box& a_inputBox) { /do what you need to output the box you want given the input } };

BoxLayout bl1; //fill this one with starting layout BoxLayout bl2 = bl1; MyTransform mytrans; bl2.transform(mytrans);

Public Member Functions

virtual Box operator() (const Box &a_inputBox)=0
virtual ~BaseTransform ()
 apparently I have to declare this to make some compilers happy.


Constructor & Destructor Documentation

virtual BaseTransform::~BaseTransform (  )  [inline, virtual]

apparently I have to declare this to make some compilers happy.


Member Function Documentation

virtual Box BaseTransform::operator() ( const Box a_inputBox  )  [pure virtual]

Implemented in GrowInBlock, BoxCollapser, and BoxFixedOff.


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

Generated on Tue Mar 28 03:26:58 2017 for Chombo + EB + MF by  doxygen 1.5.5