NdSubspace Class Template Reference

Inheritance diagram for NdSubspace:

Rectangle List of all members.

Detailed Description

template<class T>
class NdSubspace< T >

Definition at line 46 of file Subspace.H.

Public Member Functions

 NdSubspace (const int dimension)
 NdSubspace (const NdSubspace &subspace)
NdSubspaceoperator= (const NdSubspace &subspace)
bool operator== (const NdSubspace &subspace) const
Topological queries.
virtual bool interior (const RnPoint &point) const =0
virtual bool boundary (const RnPoint &point) const =0
virtual bool closure (const RnPoint &point) const =0
Dimension
int n () const
 
Returns:
The dimension of the point. */

Gnuplot drawing interface
virtual void drawGnuplot (const char *const filename, const int di=0, const int dj=1) const
virtual void drawGnuplot (std::ostream &out, const int di=0, const int dj=1) const=0

Private Attributes

int m_dimension


Constructor & Destructor Documentation

NdSubspace ( const int  dimension  )  [inline, explicit]

Allocate a subspace of the given dimension.

Parameters:
[in] dimension The dimension of the subspace.

Definition at line 50 of file Subspace.H.

NdSubspace ( const NdSubspace< T > &  subspace  )  [inline]

Allocate a copy of a subspace.

Parameters:
[in] subspace The instance to copy.

Definition at line 55 of file Subspace.H.


Member Function Documentation

NdSubspace& operator= ( const NdSubspace< T > &  subspace  )  [inline]

Assign one subspace to another.

Parameters:
[in] subspace The subspace to copy from.
Returns:
A reference to the modified subspace.

Definition at line 61 of file Subspace.H.

bool operator== ( const NdSubspace< T > &  subspace  )  const [inline]

Equality comparison operator.

Parameters:
[in] subspace The subspace to check against.
Returns:
true if the subspaces are equal, false otherwise.

Definition at line 67 of file Subspace.H.

virtual bool interior ( const RnPoint point  )  const [pure virtual]

Check if a point lies in the interior of the subspace.

Parameters:
[in] point The point to check.
Returns:
True if point is in the subspace's interior, false otherwise.

Implemented in Rectangle.

virtual bool boundary ( const RnPoint point  )  const [pure virtual]

Check if a point lies on the subspace boundary.

Parameters:
[in] point The point to check.
Returns:
true if p is on the subspace's boundary, false otherwise.

Implemented in Rectangle.

virtual bool closure ( const RnPoint point  )  const [pure virtual]

Check if a point lies in the subspace closure, e.g., the interior or the boundary.

Parameters:
[in] point The point to check.
Returns:
True if p is in the subspace closure, false otherwise.

Implemented in Rectangle.

int n (  )  const [inline]

Returns:
The dimension of the point. */

Definition at line 93 of file Subspace.H.

Referenced by Rectangle::boundary(), Rectangle::closure(), Rectangle::interior(), NdSubspace< double >::operator=(), Rectangle::operator=(), NdSubspace< double >::operator==(), Rectangle::Rectangle(), Rectangle::valid(), and Rectangle::volume().

virtual void drawGnuplot ( const char *const  filename,
const int  di = 0,
const int  dj = 1 
) const [inline, virtual]

Draw the subspace projected down to two dimensions.

Parameters:
[in] file The output file.
[in] di The first projection dimension.
[in] dj The second projection dimension.

Definition at line 102 of file Subspace.H.

Referenced by NdSubspace< double >::drawGnuplot().

virtual void drawGnuplot ( std::ostream &  out,
const int  di = 0,
const int  dj = 1 
) const [pure virtual]

Draw the subspace projected down to two dimensions.

Parameters:
[in] out The output stream.
[in] di The first projection dimension.
[in] dj The second projection dimension.

Implemented in Rectangle.


Member Data Documentation

int m_dimension [private]

Definition at line 116 of file Subspace.H.

Referenced by NdSubspace< double >::n(), NdSubspace< double >::operator=(), and NdSubspace< double >::operator==().


The documentation for this class was generated from the following file:
Generated on Thu Feb 1 15:31:55 2007 for WURDE by  doxygen 1.5.1