Changeset 6bfd78 in git for dyn_modules/syzextra/syzextra.h
- Timestamp:
- Feb 12, 2013, 6:33:16 PM (11 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 13a431151fe0f14cbbed84bbf95df65eff7bc567
- Parents:
- 1a4c34381788487464977b182596acb57f904d2f
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2013-02-12 18:33:16+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-05-07 04:41:47+02:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
dyn_modules/syzextra/syzextra.h
r1a4c343 r6bfd78 139 139 class CReducerFinder: public SchreyerSyzygyComputationFlags 140 140 { 141 friend class CDivisorEnumerator; 142 friend class CDivisorEnumerator2; 141 143 private: 142 144 typedef long TComponentKey; … … 144 146 typedef std::map< TComponentKey, TReducers> CReducersHash; 145 147 146 /*147 /// TODO:148 class const_iterator: public TReducers::const_iterator149 {150 typedef TReducers::const_iterator TBase;151 private:152 // const TReducers& m_reds;153 const TBase m_the_end;154 155 const_iterator(TBase start, TBase end):156 TBase(start), m_the_end(end)157 { find_proper(); }158 159 public:160 inline bool at_end() const { return m_the_end == (*this); }161 162 inline const_iterator& operator++()163 {164 find_next();165 return *this;166 }167 168 inline const_iterator operator++(int)169 {170 const_iterator tmp(*this);171 find_next();172 return tmp;173 }174 175 protected:176 bool is_proper() const; // difficult - needs all of CReducerFinder internals!?177 178 inline void find_next()179 {180 while (!at_end())181 {182 static_cast<TBase*>(this)->operator++();183 if( is_proper() ) break;184 }185 }186 };187 */188 189 148 public: 190 149 /// goes over all leading terms
Note: See TracChangeset
for help on using the changeset viewer.