PolyBoRi
PolyFromPolyEntry.h
Go to the documentation of this file.
00001 // -*- c++ -*-
00002 //*****************************************************************************
00014 //*****************************************************************************
00015 
00016 #ifndef polybori_groebner_PolyFromPolyEntry_h_
00017 #define polybori_groebner_PolyFromPolyEntry_h_
00018 
00019 // include basic definitions
00020 #include "groebner_defs.h"
00021 
00022 #include "PolyEntry.h"
00023 #include <functional>
00024 
00025 BEGIN_NAMESPACE_PBORIGB
00026 
00032 class PolyFromPolyEntry:
00033   public std::unary_function<PolyEntry, Polynomial> {
00034 public:
00035   const Polynomial& operator()(const PolyEntry& entry) const {
00036     return entry.p;
00037   }
00038 };
00039 
00040 END_NAMESPACE_PBORIGB
00041 
00042 #endif /* polybori_groebner_PolyFromPolyEntry_h_ */