Overture  Version 25
Classes | Public Member Functions | Protected Attributes | List of all members
MultigridCompositeGrid Class Reference

MultigridCompositeGrid : holds the CompositeGrid and state for Multigrid so that multiple solvers can share the same multigrid hierarchy. More...

#include <MultigridCompositeGrid.h>

Inheritance diagram for MultigridCompositeGrid:
Inheritance graph
[legend]
Collaboration diagram for MultigridCompositeGrid:
Collaboration graph
[legend]

Classes

class  MultigridCompositeGridData
 

Public Member Functions

 MultigridCompositeGrid ()
 multigrid hierarchy so that multiple solvers can share the same multigrid hierarchy.
 
 ~MultigridCompositeGrid ()
 Destructor.
 
 MultigridCompositeGrid (const MultigridCompositeGrid &rcc, const CopyType copyType=DEEP)
 
MultigridCompositeGridoperator= (const MultigridCompositeGrid &rcc)
 
int allocate ()
 Allocate space for the CompositeGrid.
 
const CompositeGridcompositeGrid () const
 Return the CompositeGrid.
 
CompositeGridoperator() ()
 
const CompositeGridoperator() () const
 
bool isGridUpToDate ()
 Return true if the multigrid hierarchy is up to date.
 
bool isNull () const
 
void setGridIsUpToDate (bool trueOrFalse=true)
 Specify whether the multigrid hierarchy is up to date. This is used as a mechanism to know when the multigrid hierachy needs to be regenerated.
 
void updateToMatchGrid (CompositeGrid &cg)
 Update the grid to match a new CompositeGrid.
 
void reference (const MultigridCompositeGrid &rcc)
 Reference this object to another.
 
void breakReference ()
 Break the reference that this object has with any other objects after calling this function the object will have a separate copy of all member data.
 
- Public Member Functions inherited from ReferenceCounting
 ReferenceCounting ()
 
 ReferenceCounting (const ReferenceCounting &x, const CopyType ct=DEEP)
 
virtual ~ReferenceCounting ()
 
virtual ReferenceCountingvirtualConstructor (const CopyType ct=DEEP) const
 
Integer incrementReferenceCount ()
 
Integer decrementReferenceCount ()
 
Integer getReferenceCount () const
 
Logical uncountedReferencesMayExist ()
 
virtual aString getClassName () const
 
Integer getGlobalID () const
 
void setGlobalID (int id)
 
virtual void consistencyCheck () const
 

Protected Attributes

MultigridCompositeGridDatarcData
 

Detailed Description

MultigridCompositeGrid : holds the CompositeGrid and state for Multigrid so that multiple solvers can share the same multigrid hierarchy.

Until the CompositeGrid is allocated, this is a very lightweight class.

Constructor & Destructor Documentation

MultigridCompositeGrid::MultigridCompositeGrid ( )

multigrid hierarchy so that multiple solvers can share the same multigrid hierarchy.

MultigridCompositeGrid : holds the CompositeGrid with multigrid hierarchy so that multiple solvers can share the same multigrid hierarchy.

MultigridCompositeGrid::~MultigridCompositeGrid ( )
MultigridCompositeGrid::MultigridCompositeGrid ( const MultigridCompositeGrid rcc,
const CopyType  copyType = DEEP 
)

Member Function Documentation

int MultigridCompositeGrid::allocate ( )
void MultigridCompositeGrid::breakReference ( void  )
virtual

Break the reference that this object has with any other objects after calling this function the object will have a separate copy of all member data.

Reimplemented from ReferenceCounting.

References ReferenceCounting::getReferenceCount(), rcData, and reference().

const CompositeGrid& MultigridCompositeGrid::compositeGrid ( ) const
inline
bool MultigridCompositeGrid::isGridUpToDate ( )
inline

Return true if the multigrid hierarchy is up to date.

References MultigridCompositeGrid::MultigridCompositeGridData::isUpToDate, and rcData.

bool MultigridCompositeGrid::isNull ( ) const
inline
CompositeGrid& MultigridCompositeGrid::operator() ( )
inline
const CompositeGrid& MultigridCompositeGrid::operator() ( ) const
inline
MultigridCompositeGrid & MultigridCompositeGrid::operator= ( const MultigridCompositeGrid rcc)

References rcData.

void MultigridCompositeGrid::reference ( const MultigridCompositeGrid rcc)
void MultigridCompositeGrid::setGridIsUpToDate ( bool  trueOrFalse = true)

Specify whether the multigrid hierarchy is up to date. This is used as a mechanism to know when the multigrid hierachy needs to be regenerated.

References MultigridCompositeGrid::MultigridCompositeGridData::isUpToDate, and rcData.

Referenced by Oges::setGrid().

void MultigridCompositeGrid::updateToMatchGrid ( CompositeGrid cg)

Member Data Documentation

MultigridCompositeGridData* MultigridCompositeGrid::rcData
protected

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