SetAssociatedMinimal.h
Go to the documentation of this file.
// -*- c++ -*-
//*****************************************************************************
//*****************************************************************************
#ifndef polybori_groebner_SetAssociatedMinimal_h_
#define polybori_groebner_SetAssociatedMinimal_h_
// include basic definitions
#include "groebner_defs.h"
#include "PolyEntryVector.h"
BEGIN_NAMESPACE_PBORIGB
template <class KeyType, bool Value>
class SetAssociatedMinimal {
public:
SetAssociatedMinimal(PolyEntryVector& strat): m_strat(strat) {}
void operator()(const KeyType& key) const {
m_strat(key).minimal = Value;
}
private:
PolyEntryVector& m_strat;
};
END_NAMESPACE_PBORIGB
#endif /* polybori_groebner_SetAssociatedMinimal_h_ */