Acoustic FDTD Solver
Public Member Functions | List of all members
Shape Class Reference

#include <Shape.hpp>

Inheritance diagram for Shape:
Circle Polygon Rectangle

Public Member Functions

virtual CartPosition getUpper () const =0
 Get the [max(y) max(z)] corner of the rectangle.
virtual CartPosition getLower () const =0
 Get the [min(y) min(z)] corner of the rectangle.
virtual double getXLength () const =0
virtual double getYLength () const =0
virtual double getZLength () const =0
virtual double getLargestLength () const =0
virtual unsigned getType () const =0
virtual Shapeclone () const =0
virtual std::vector
< std::vector< unsigned > > 
getCoordinateIndex (const Grid &grid) const =0
virtual ~Shape ()
 The destructor cannot be pure virtual.

Constructor & Destructor Documentation

virtual Shape::~Shape ( )
inlinevirtual

The destructor cannot be pure virtual.

With inheritance, a destructor must call the destructor of its parent. If the destructor is decleared pure virtual, the linker looks for a destructor that does not exist.

See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=2577

Member Function Documentation

virtual Shape* Shape::clone ( ) const
pure virtual

Implemented in Circle, Polygon, and Rectangle.

virtual std::vector<std::vector<unsigned> > Shape::getCoordinateIndex ( const Grid grid) const
pure virtual

Implemented in Circle, Polygon, and Rectangle.

virtual double Shape::getLargestLength ( ) const
pure virtual

Implemented in Polygon, Circle, and Rectangle.

virtual CartPosition Shape::getLower ( ) const
pure virtual

Get the [min(y) min(z)] corner of the rectangle.

Returns
the cartesian coordinate the conner.

Implemented in Polygon, Rectangle, and Circle.

virtual unsigned Shape::getType ( ) const
pure virtual

Implemented in Circle, Polygon, and Rectangle.

virtual CartPosition Shape::getUpper ( ) const
pure virtual

Get the [max(y) max(z)] corner of the rectangle.

Returns
the cartesian coordinate the conner.

Implemented in Polygon, Rectangle, and Circle.

virtual double Shape::getXLength ( ) const
pure virtual

Implemented in Polygon, Circle, and Rectangle.

virtual double Shape::getYLength ( ) const
pure virtual

Implemented in Polygon, Circle, and Rectangle.

virtual double Shape::getZLength ( ) const
pure virtual

Implemented in Polygon, Circle, and Rectangle.


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