index page | pointlist.cpp
0001: //////////////////////////////////////////////////
0002: //
0003: //                      ppa-r
0004: //  point process analysis system: pair correlation
0005: //
0006: //      Copyright  November 2004 by TAKENAKA, A.
0007: 
0008: 
0009: #if !defined (___POINT_LIST_H)
0010: #define ___POINT_LIST_H
0011: 
0012: #include <list>
0013: 
0014: #include "xy.h"
0015: 
0016: typedef std::list<XY> xyList;
0017: 
0018: //////////////////////////////////
0019: //
0020: //  PointList is a subclass of std::list<XY>.
0021: //  It has a capability to load elements from a file.
0022: 
0023: class PointList : public xyList
0024: {
0025:   public:
0026: 
0027:     PointList(void);
0028:     void load (const char* fileName);
0029:     const XY& getAreaSize(void) const;
0030: 
0031:   protected:
0032: 
0033:     XY  AreaSize;
0034: };
0035: 
0036: #endif

Back to Top of this Page