proxygen
sample6_unittest.cc File Reference
#include "prime_tables.h"
#include "gtest/gtest.h"

Go to the source code of this file.

Classes

class  PrimeTableTest< T >
 

Functions

template<class T >
PrimeTableCreatePrimeTable ()
 
template<>
PrimeTableCreatePrimeTable< OnTheFlyPrimeTable > ()
 
template<>
PrimeTableCreatePrimeTable< PreCalculatedPrimeTable > ()
 

Function Documentation

template<class T >
PrimeTable* CreatePrimeTable ( )

Definition at line 48 of file sample6_unittest.cc.

48  {
49  return new OnTheFlyPrimeTable;
50 }

Definition at line 53 of file sample6_unittest.cc.

53  {
54  return new PreCalculatedPrimeTable(10000);
55 }