Column-oriented GPU-accelerated Database Management System
CoGaDB
/home/sebastian/gpudbms/trunk/cogadb/include/compression/tmp/db2/unittest.cpp File Reference
#include <string>
#include <core/global_definitions.hpp>
#include <core/base_column.hpp>
#include <core/column_base_typed.hpp>
#include <core/column.hpp>
#include <core/compressed_column.hpp>
Include dependency graph for unittest.cpp:

Functions

template<typename T >
const T get_rand_value ()
template<>
const int get_rand_value ()
template<class T >
void fill_column (boost::shared_ptr< ColumnBaseTyped< T > > col, std::vector< T > &reference_data)
template<class T >
bool equals (std::vector< T > reference_data, boost::shared_ptr< ColumnBaseTyped< T > > col)
template<class T >
bool test_column (boost::shared_ptr< ColumnBaseTyped< T > > col, std::vector< T > &reference_data)
bool unittest (boost::shared_ptr< ColumnBaseTyped< int > > col)
bool unittest (boost::shared_ptr< ColumnBaseTyped< float > > col)
bool unittest (boost::shared_ptr< ColumnBaseTyped< std::string > > col)

Function Documentation

template<class T >
bool equals ( std::vector< T >  reference_data,
boost::shared_ptr< ColumnBaseTyped< T > >  col 
)

Referenced by test_column().

Here is the caller graph for this function:

template<class T >
void fill_column ( boost::shared_ptr< ColumnBaseTyped< T > >  col,
std::vector< T > &  reference_data 
)

Referenced by unittest().

Here is the caller graph for this function:

template<typename T >
const T get_rand_value ( )
template<>
const std::string get_rand_value ( )
template<class T >
bool test_column ( boost::shared_ptr< ColumnBaseTyped< T > >  col,
std::vector< T > &  reference_data 
)

References equals().

Referenced by unittest().

Here is the call graph for this function:

Here is the caller graph for this function:

bool unittest ( boost::shared_ptr< ColumnBaseTyped< int > >  col)

References fill_column(), and test_column().

Here is the call graph for this function:

bool unittest ( boost::shared_ptr< ColumnBaseTyped< float > >  col)

References fill_column(), and test_column().

Here is the call graph for this function:

bool unittest ( boost::shared_ptr< ColumnBaseTyped< std::string > >  col)

References fill_column(), and test_column().

Here is the call graph for this function:

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines