2007-11-12 01:40:12 +00:00
|
|
|
//#define LEAK_TEST
|
|
|
|
|
2008-03-08 03:17:50 +00:00
|
|
|
#include "roseTable.h"
|
2011-06-13 08:02:20 +00:00
|
|
|
#include "stasis/experimental/compression/compression.h"
|
2007-11-01 20:09:55 +00:00
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
2007-11-04 21:25:08 +00:00
|
|
|
|
2007-11-15 01:33:39 +00:00
|
|
|
typedef int32_t typ0;
|
|
|
|
typedef int32_t typ1;
|
|
|
|
typedef int32_t typ2;
|
2007-11-04 21:25:08 +00:00
|
|
|
typedef int64_t typ3;
|
2007-11-15 01:33:39 +00:00
|
|
|
typedef int32_t typ4;
|
|
|
|
typedef int32_t typ5;
|
|
|
|
typedef int32_t typ6;
|
|
|
|
typedef int32_t typ7;
|
|
|
|
typedef int32_t typ8;
|
|
|
|
typedef int32_t typ9;
|
2007-11-04 21:25:08 +00:00
|
|
|
|
|
|
|
#define COLS 10
|
2008-12-02 21:45:58 +00:00
|
|
|
typedef rose::StaticTuple<COLS,1,typ0,typ1,typ2,typ3,typ4,typ5,typ6,typ7,typ8,typ9> tup;
|
2007-11-04 21:25:08 +00:00
|
|
|
using rose::For;
|
|
|
|
using rose::Rle;
|
2008-03-08 07:43:53 +00:00
|
|
|
using rose::Nop;
|
2008-03-08 03:17:50 +00:00
|
|
|
int ret;
|
2007-11-04 21:25:08 +00:00
|
|
|
// multicolumn is deprecated; want static dispatch!
|
|
|
|
|
2008-03-08 03:17:50 +00:00
|
|
|
rose::plugin_id_t * plugins = (rose::plugin_id_t*)malloc(10 * sizeof(rose::plugin_id_t));
|
|
|
|
|
|
|
|
plugins[0] = rose::plugin_id<rose::Multicolumn<tup>, Rle<typ0>, typ0>();
|
2008-03-08 07:43:53 +00:00
|
|
|
plugins[1] = rose::plugin_id<rose::Multicolumn<tup>, Nop<typ1>, typ1>(); // rle
|
2008-03-08 03:17:50 +00:00
|
|
|
plugins[2] = rose::plugin_id<rose::Multicolumn<tup>, For<typ2>, typ2>();
|
|
|
|
plugins[3] = rose::plugin_id<rose::Multicolumn<tup>, Rle<typ3>, typ3>();
|
2008-03-08 07:43:53 +00:00
|
|
|
plugins[4] = rose::plugin_id<rose::Multicolumn<tup>, Nop<typ4>, typ4>(); // rle
|
2008-03-08 03:17:50 +00:00
|
|
|
plugins[5] = rose::plugin_id<rose::Multicolumn<tup>, Rle<typ5>, typ5>();
|
|
|
|
plugins[6] = rose::plugin_id<rose::Multicolumn<tup>, For<typ6>, typ6>();
|
2008-03-08 07:43:53 +00:00
|
|
|
plugins[7] = rose::plugin_id<rose::Multicolumn<tup>, Nop<typ7>, typ7>(); // for
|
2008-03-08 03:17:50 +00:00
|
|
|
plugins[8] = rose::plugin_id<rose::Multicolumn<tup>, For<typ8>, typ8>();
|
|
|
|
plugins[9] = rose::plugin_id<rose::Multicolumn<tup>, Rle<typ9>, typ9>();
|
|
|
|
|
|
|
|
rose::DynamicMultiColumnTypePageLayout<rose::Multicolumn<tup> >::initPageLayout(plugins);
|
|
|
|
|
|
|
|
ret = rose::main
|
|
|
|
<rose::DynamicMultiColumnTypePageLayout<rose::Multicolumn<tup> > >(argc,argv);
|
2007-11-04 21:25:08 +00:00
|
|
|
|
2007-11-15 01:33:39 +00:00
|
|
|
/* return rose::main
|
2007-11-04 21:25:08 +00:00
|
|
|
<rose::MultiColumnTypePageLayout
|
|
|
|
<COLS,
|
|
|
|
rose::StaticMulticolumn<COLS,tup,
|
|
|
|
For<typ0>,Rle<typ1>,
|
|
|
|
Rle<typ2>,Rle<typ3>,
|
|
|
|
Rle<typ4>,Rle<typ5>,
|
|
|
|
Rle<typ6>,Rle<typ7>,
|
2007-11-06 02:27:04 +00:00
|
|
|
Rle<typ8>,For<typ9> >
|
2007-11-04 21:25:08 +00:00
|
|
|
>
|
|
|
|
>
|
2007-11-01 20:09:55 +00:00
|
|
|
(argc,argv);
|
2007-11-15 01:33:39 +00:00
|
|
|
*/
|
2008-03-08 03:17:50 +00:00
|
|
|
|
|
|
|
/* rose::StaticMultiColumnTypePageLayout
|
|
|
|
<COLS,
|
|
|
|
rose::StaticMulticolumn<COLS,tup,
|
|
|
|
Rle<typ0>,Rle<typ1>,
|
|
|
|
For<typ2>,Rle<typ3>,
|
|
|
|
Rle<typ4>,Rle<typ5>,
|
|
|
|
For<typ6>,For<typ7>,
|
|
|
|
For<typ8>,Rle<typ9> >
|
|
|
|
>::initPageLayout();
|
|
|
|
|
|
|
|
ret = rose::main
|
|
|
|
<rose::StaticMultiColumnTypePageLayout
|
2007-11-15 01:33:39 +00:00
|
|
|
<COLS,
|
|
|
|
rose::StaticMulticolumn<COLS,tup,
|
|
|
|
Rle<typ0>,Rle<typ1>,
|
|
|
|
For<typ2>,Rle<typ3>,
|
|
|
|
Rle<typ4>,Rle<typ5>,
|
|
|
|
For<typ6>,For<typ7>,
|
|
|
|
For<typ8>,Rle<typ9> >
|
|
|
|
>
|
|
|
|
>
|
|
|
|
(argc,argv);
|
2008-03-08 03:17:50 +00:00
|
|
|
*/
|
|
|
|
return ret;
|
2007-11-01 20:09:55 +00:00
|
|
|
}
|