00001 // This is oxl/mvl/MatchSet.h 00002 #ifndef MatchSet_h_ 00003 #define MatchSet_h_ 00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE 00005 #pragma interface 00006 #endif 00007 //: 00008 // \file 00009 // \brief Base class for correspondences 00010 // 00011 // MatchSet is a base class for classes that store correspondences 00012 // between tuples of geometric entities. 00013 // 00014 // Currently it does no more than define the constant MatchSet::NoMatch 00015 // which is used by the subclasses as a dummy index to signify that an 00016 // entity has no matching feature. 00017 // 00018 // \author 00019 // Andrew W. Fitzgibbon, Oxford RRG, 09 Aug 96 00020 // 00021 // \verbatim 00022 // Modifications 00023 // 10 Sep. 2004 Peter Vanroose Inlined all 1-line methods in class decl 00024 // \endverbatim 00025 //----------------------------------------------------------------------------- 00026 00027 class MatchSet 00028 { 00029 public: 00030 enum { NoMatch = -1 }; 00031 00032 //: Return true if i is not the "NoMatch" value. 00033 static inline bool matchp(int i) { return i != NoMatch; } 00034 00035 MatchSet() {} 00036 virtual ~MatchSet() {} 00037 }; 00038 00039 #endif // MatchSet_h_