Commit fedb7c7a authored by Roland Levillain's avatar Roland Levillain
Browse files

No longer categories nor packed_vtypes.

	* oln/core/abstract/image.hh (oln::category::grid): Remove
	declaration.
	* oln/core/abstract/grid.hh
	(oln::packed_vtypes_in_category<category::grid, G>): 
	(oln::grid::~grid): Remove dtor.
	(oln::category::grid): Remove declaration.


git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@530 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 34b029a5
2006-09-13 Roland Levillain <roland@lrde.epita.fr>
No longer categories nor packed_vtypes.
* oln/core/abstract/image.hh (oln::category::grid): Remove
declaration.
* oln/core/abstract/grid.hh
(oln::packed_vtypes_in_category<category::grid, G>):
(oln::grid::~grid): Remove dtor.
(oln::category::grid): Remove declaration.
2006-09-12 Roland Levillain <roland@lrde.epita.fr>
Fix the current implementation of image_entry, as well as some
......
......@@ -37,13 +37,6 @@
namespace oln {
/// Category grid.
namespace category
{
struct grid;
}
// Forward declaration.
namespace abstract
{
......@@ -61,41 +54,6 @@ namespace oln {
typedef mlc::undefined dimvalue_type;
};
template <typename G>
struct packed_vtypes_in_category<category::grid, G>
{
typedef oln_type_of(G, point) point_type;
typedef oln_type_of(G, dpoint) dpoint_type;
typedef oln_type_of(G, coord) coord_type;
typedef oln_type_of(G, size) size_type;
typedef oln_type_of(G, dimvalue) dimvalue_type;
static void echo(std::ostream& ostr)
{
ostr
<< "vtypes_in_category(oln::category::grid, " << mlc_to_string(G) << ") ="
<< std::endl
<< "{" << std::endl
<< " point_type = " << mlc_to_string(point_type) << std::endl
<< " dpoint_type = " << mlc_to_string(dpoint_type) << std::endl
<< " coord_type = " << mlc_to_string(coord_type) << std::endl
<< " size_type = " << mlc_to_string(size_type) << std::endl
<< " dimvalue_type = " << mlc_to_string(dimvalue_type) << std::endl
<< "}" << std::endl;
}
static void ensure()
{
mlc::assert_< mlc_is_ok(point_type) >::check();
mlc::assert_< mlc_is_ok(dpoint_type) >::check();
mlc::assert_< mlc_is_ok(coord_type) >::check();
mlc::assert_< mlc_is_ok(size_type) >::check();
mlc::assert_< mlc_is_ok(dimvalue_type) >::check();
}
};
namespace abstract {
template <typename E>
......@@ -104,11 +62,6 @@ namespace oln {
protected:
grid()
{}
~grid()
{
packed_vtypes_in_category<category::grid, E>::ensure();
}
};
} // end of namespace oln::abstract
......
......@@ -36,13 +36,6 @@
namespace oln
{
/// Category image.
namespace category
{
struct image;
}
/*! \namespace oln::abstract
** \brief oln::abstract namespace.
*/
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment