MeshKit  1.0
AF2Edge2D.hpp
Go to the documentation of this file.
00001 /*
00002  * AF2Edge2D.hpp
00003  *
00004  * An immutable edge that connects two AF2Point2D points, one labeled as
00005  * the start of the edge, and the other labeled as the end of the edge.
00006  *
00007  * This class holds on to its endpoints with pointers, but it does not
00008  * manage the memory for its endpoints.  It is the reponsibility of the
00009  * context that uses AF2Edge2D to ensure that pointers to endpoints of edges
00010  * remain valid as long as they may be referenced by an AF2Edge2D instance.
00011  */
00012 #ifndef AF2EDGE2D_HPP
00013 #define AF2EDGE2D_HPP
00014 
00015 #include "meshkit/AF2Point2D.hpp"
00016 
00017 class AF2Edge2D
00018 {
00019   private:
00020 
00021     const AF2Point2D* startPnt;
00022     const AF2Point2D* endPnt;
00023 
00024   public:
00025 
00037     AF2Edge2D(const AF2Point2D* start, const AF2Point2D* end);
00038 
00042     const AF2Point2D* getStart() const;
00043 
00047     const AF2Point2D* getEnd() const;
00048 };
00049 
00050 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines