PointSample.h

Go to the documentation of this file.
00001 /**<!-------------------------------------------------------------------->
00002    @class  PointSample
00003    @author Travis Fischer (fisch0920@gmail.com)
00004    @author Matthew Jacobs (jacobs.mh@gmail.com)
00005    @date   Fall 2008
00006    
00007    @brief
00008       Represents the value of a generic function ({x,y} -> any) evaluated at a 
00009    particular 2D point
00010    <!-------------------------------------------------------------------->**/
00011 
00012 #ifndef POINT_SAMPLE_H_
00013 #define POINT_SAMPLE_H_
00014 
00015 #include <common/math/Point.h>
00016 #include <stats/Event.h>
00017 #include <deque>
00018 
00019 struct PointSample;
00020 
00021 DECLARE_STL_TYPEDEF(std::vector<PointSample>, PointSampleList);
00022 DECLARE_STL_TYPEDEF(std::deque<PointSample>,  PointSampleQueue);
00023 
00024 struct PointSample {
00025    
00026    ///@name Public data
00027    //@{-----------------------------------------------------------------
00028    
00029    Point2 position;
00030    Event  value;
00031    
00032    
00033    //@}-----------------------------------------------------------------
00034    ///@name Constructors
00035    //@{-----------------------------------------------------------------
00036    
00037    inline PointSample(const Point2 &position_, const Event &value_)
00038       : position(position_), value(value_)
00039    { }
00040    
00041    inline PointSample(const Point2 &position_)
00042       : position(position_), value()
00043    { }
00044    
00045    inline PointSample(const real_t x, const real_t y, const Event &value_)
00046       : position(x, y), value(value_)
00047    { }
00048    
00049    inline PointSample(const real_t x, const real_t y)
00050       : position(x, y), value()
00051    { }
00052    
00053    inline PointSample()
00054       : value()
00055    { }
00056    
00057    
00058    //@}-----------------------------------------------------------------
00059 };
00060 
00061 #endif // POINT_SAMPLE_H_
00062 

Generated on 28 Feb 2009 for Milton by doxygen 1.5.6