PolyBoRi
DegLexOrder.h
Go to the documentation of this file.
00001 // -*- c++ -*-
00002 //*****************************************************************************
00014 //*****************************************************************************
00015 
00016 // include basic definitions
00017 #include "pbori_defs.h"
00018 
00019 // include base order definitions
00020 #include "COrderingFacade.h"
00021 #include "COrderingTags.h"
00022 
00023 #ifndef DegLexOrder_h_
00024 #define DegLexOrder_h_
00025 
00026 BEGIN_NAMESPACE_PBORI
00027 
00033 class DegLexOrder:
00034   public COrderingFacade<DegLexOrder, dlex_tag> {
00035 
00037   typedef DegLexOrder self;
00038 
00039 public:
00040 
00042   typedef std::less<idx_type> idx_comparer_type;
00043 
00045   DegLexOrder(): base() {};
00046 
00048   DegLexOrder(const self& rhs): base(rhs) {};
00049 
00051   ~DegLexOrder() {};
00052 
00054   comp_type compare(idx_type, idx_type) const;
00055 
00057   comp_type compare(const monom_type&, const monom_type&) const;
00058 
00060   comp_type compare(const exp_type&, const exp_type&) const;
00061 
00063   monom_type lead(const poly_type&) const;
00064 
00067   monom_type lead(const poly_type& poly, deg_type bound) const;
00068 
00070   exp_type leadExp(const poly_type&) const;
00071 
00074   exp_type leadExp(const poly_type&, deg_type) const;
00075 };
00076 
00077 
00078 END_NAMESPACE_PBORI
00079 
00080 #endif // DegLexOrder_h_