Commit Graph

20 Commits

Author SHA1 Message Date
Marc Glisse 7fe5e1741b fix iterators in lazy kernel, seems ok now 2012-03-28 18:22:51 +00:00
Marc Glisse 1e22b787c3 minor lazy fix. 2012-03-27 20:30:45 +00:00
Marc Glisse 39ba4946b4 Split points and vectors some more. Might remerge them later...
Iterators are not objects, handle that everywhere. Still some not-lazy-enough issues I'll have to deal with.
2012-03-27 16:05:32 +00:00
Marc Glisse 2f6dbee262 Small fix to lazy_cartesian now that iterators are objects (will probably change that soon, only caused trouble).
Provide an easy way to have K::Point (shorter than K::Type<Point_tag>::type...). Could do the same for functors, maybe.
Now that I have an Object_list, it would be possible to use directly K::Point and get rid of that Type<Point_tag>::type horror, which sure looks simpler (although it is actually more complicated behind), but it has some drawbacks. In particular, in a CRTP context, typedef std::pair<Derived::Point> Segment; won't work (it worked inside Type<...>), one has to use typedef MySegment<Derived> Segment; instead (C++ can be a pain...).
2012-03-26 11:15:14 +00:00
Marc Glisse c64689ba83 Now the revert 2012-03-24 21:20:12 +00:00
Marc Glisse e64fd9fc7e Lazy iterators, doesn't compile, and even if it did, definitely a bad idea. Going to revert right after the commit, I just want to keep the code somewhere... 2012-03-24 21:10:19 +00:00
Marc Glisse 2dad38bb31 More Object_list. 2012-03-22 14:51:00 +00:00
Marc Glisse df87f24149 introduce Object_list 2012-03-21 20:42:34 +00:00
Marc Glisse b57b61b13b Make everything lazy by default 2011-11-08 23:42:21 +00:00
Marc Glisse 2e88bc0daf Move Segment to a module that can be included. Segmentd.h should disappear, the functionality should be in Wrapper/Segment_d.h. 2011-11-08 11:53:21 +00:00
Marc Glisse 3fd4068328 Remove non-Type<tag> stuff 2011-10-17 11:34:11 +00:00
Marc Glisse c358e2ed56 Continue with Type<*_tag> 2011-10-16 08:38:38 +00:00
Marc Glisse 21228b30e6 Continue removing LA.
Start obfuscating^Wusing an indirection for object types.
2011-10-12 19:48:23 +00:00
Marc Glisse 9c655afded More stateful kernels. 2011-05-24 15:28:27 +00:00
Marc Glisse 5f0f7fb19d couple more places for stateful kernels 2011-05-23 15:58:00 +00:00
Marc Glisse 32fecea31f Lazy_cartesian is an independent layer 2011-05-20 15:58:28 +00:00
Marc Glisse b75920fff5 make Construct_*_cartesian_const_iterator a true functor 2011-05-17 16:40:30 +00:00
Marc Glisse 3690072964 Use a single Functor template regrouping Predicate, Construct and Compute, and a map to know the category of a functor. 2011-05-17 15:21:49 +00:00
Marc Glisse 55190f7069 don't share Cartesian_const_iterator between point and vector 2011-05-12 16:15:17 +00:00
Marc Glisse 217ed569f2 pouët 2011-05-11 15:14:26 +00:00