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_ */
polybori::groebner::PolyEntryVector
Definition: PolyEntryVector.h:28
polybori::groebner::SetAssociatedMinimal::SetAssociatedMinimal
SetAssociatedMinimal(PolyEntryVector &strat)
Definition: SetAssociatedMinimal.h:34
END_NAMESPACE_PBORIGB
#define END_NAMESPACE_PBORIGB
Definition: groebner_defs.h:16
BEGIN_NAMESPACE_PBORIGB
#define BEGIN_NAMESPACE_PBORIGB
Definition: groebner_defs.h:15
polybori::groebner::SetAssociatedMinimal
This class set the attribute minimal of a given index to a valued selected by the template parameter ...
Definition: SetAssociatedMinimal.h:32
groebner_defs.h
polybori::groebner::SetAssociatedMinimal::operator()
void operator()(const KeyType &key) const
Definition: SetAssociatedMinimal.h:36
PolyEntryVector.h