proj home

Files   Classes   Functions   Hierarchy  

main.cpp File Reference

#include <cassert>
#include <iostream>
#include <policyselector.h>
#include <policydefault.h>

Include dependency graph for main.cpp:

Go to the source code of this file.

Functions

void test01 ()
void test02 ()
void test03 ()
int main (int argc, char **agv)


Function Documentation

int main ( int  argc,
char **  agv 
)

Definition at line 57 of file main.cpp.

References test01(), test02(), and test03().

00058 {
00059   test01();
00060   test02();
00061   test03();
00062 
00063   return 0;
00064 }

void test01 (  ) 

Definition at line 8 of file main.cpp.

00009 {
00010   cout << "Test 1" << endl;
00011   cout << "Testing the default policy" << endl;
00012   policyselector<> app;
00013   cout << endl << endl;
00014 }

void test02 (  ) 

Definition at line 28 of file main.cpp.

00029 {
00030   cout << "Test 2" << endl;
00031   cout << "Overriding the 2nd policy with policy2new" << endl;
00032 //  policyselector< policyov2< policy2new, policydefault > > app;
00033   policyselector< policyov2< policy2new > > app;
00034   cout << endl << endl;
00035 }

void test03 (  ) 

Definition at line 38 of file main.cpp.

00039 {
00040   cout << "Test 3" << endl;
00041   cout << "Default template argument overloading" << endl << endl;
00042 
00043 
00044   cout << "A silly example because there are only 3 tempate arguments" << endl;
00045   cout << "  For templates with 5,6,+ arguments this may be useful." << endl;
00046   cout << endl;
00047 
00048   cout << "Overloading the 2nd policy with policy4, then overloading" << endl;
00049   cout << "  the first policy with policy5." << endl;
00050   
00051   policyselector< policyov1< policy5, policyov2< policy4, policydefault > > > app;
00052   cout << endl << endl;
00053 }


Generated on Fri Mar 4 00:49:33 2011 for Chelton Evans Source by  doxygen 1.5.8