proj home

Files   Classes   Functions   Hierarchy  

pointindexed< PT, INDX > Class Template Reference

Associate an index with a point. More...

#include <linechopped.h>

Collaboration diagram for pointindexed< PT, INDX >:

List of all members.

Public Member Functions

 pointindexed (PT const &pt_, INDX const index_)
 Construct an indexed point.
 operator string () const
 Serialize this object by writing it out as a string.
boolc operator== (pointindexed< PT, INDX > const &p2) const
 Equal if components are equal.

Public Attributes

PT pt
 The point.
INDX index
 The index.


Detailed Description

template<typename PT, typename INDX>
class pointindexed< PT, INDX >

Associate an index with a point.

Definition at line 55 of file linechopped.h.


Constructor & Destructor Documentation

template<typename PT, typename INDX>
pointindexed< PT, INDX >::pointindexed ( PT const &  pt_,
INDX const   index_ 
) [inline]

Construct an indexed point.

Definition at line 65 of file linechopped.h.

00066     : pt(pt_), index(index_) {}


Member Function Documentation

template<typename PT, typename INDX>
pointindexed< PT, INDX >::operator string (  )  const [inline]

Serialize this object by writing it out as a string.

Definition at line 69 of file linechopped.h.

References pointindexed< PT, INDX >::index, and pointindexed< PT, INDX >::pt.

00070     { string s( (stringc)pt ); s += " "; stringstream ss; 
00071      ss << index; return s + ss.str(); }

template<typename PT, typename INDX>
boolc pointindexed< PT, INDX >::operator== ( pointindexed< PT, INDX > const &  p2  )  const [inline]

Equal if components are equal.

Definition at line 74 of file linechopped.h.

References pointindexed< PT, INDX >::index, and pointindexed< PT, INDX >::pt.

00075     { return (index==p2.index) && (pt==p2.pt); }


Member Data Documentation

template<typename PT, typename INDX>
INDX pointindexed< PT, INDX >::index

The index.

Definition at line 62 of file linechopped.h.

Referenced by pointindexed< PT, INDX >::operator string(), and pointindexed< PT, INDX >::operator==().

template<typename PT, typename INDX>
PT pointindexed< PT, INDX >::pt

The point.

Definition at line 60 of file linechopped.h.

Referenced by pointindexed< PT, INDX >::operator string(), and pointindexed< PT, INDX >::operator==().


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

Generated on Fri Mar 4 00:50:10 2011 for Chelton Evans Source by  doxygen 1.5.8