MeshKit  1.0
AF2AlgorithmResult.hpp
Go to the documentation of this file.
00001 /*
00002  * AF2AlgorithmResult.hpp
00003  *
00004  * \brief An AF2AlgorithmResult stores the result of executing
00005  * a two-dimensional advancing front algorithm.
00006  *
00007  * The result may be successful or unsuccessful.
00008  */
00009 #ifndef AF2ALGORITHMRESULT_HPP
00010 #define AF2ALGORITHMRESULT_HPP
00011 
00012 // C++
00013 #include <list>
00014 
00015 // MeshKit
00016 #include "meshkit/AF2Point3D.hpp"
00017 #include "meshkit/AF2Polygon3D.hpp"
00018 
00019 class AF2AlgorithmResult
00020 {
00021   private:
00022 
00023     bool succeeded;
00024     const std::list<AF2Point3D*> points;
00025     const std::list<const AF2Polygon3D*> faces;
00026 
00027   public:
00028 
00035     AF2AlgorithmResult();
00036 
00053     AF2AlgorithmResult(const std::list<AF2Point3D*> & pointsArg,
00054         const std::list<const AF2Polygon3D*> & facesArg);
00055 
00059     ~AF2AlgorithmResult();
00060 
00067     AF2AlgorithmResult(const AF2AlgorithmResult & toCopy);
00068 
00075     AF2AlgorithmResult& operator=(const AF2AlgorithmResult & rhs);
00076 
00086     const std::list<const AF2Polygon3D*>* getFaces() const;
00087 
00097     const std::list<AF2Point3D*>* getPoints() const;
00098 
00104     bool isSuccessful() const;
00105 };
00106 
00107 #endif
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines