proj home

Files   Classes   Functions   Hierarchy  

cfcontainerhashtest Class Reference

Test cfcontainerhash class. More...

#include <cfcontainerhashtest.h>

Collaboration diagram for cfcontainerhashtest:

List of all members.

Static Public Member Functions

static void test01 ()

Static Public Attributes

static string doc []
 Brief description of each test.


Detailed Description

Test cfcontainerhash class.

Definition at line 10 of file cfcontainerhashtest.h.


Member Function Documentation

void cfcontainerhashtest::test01 (  )  [static]

Definition at line 13 of file cfcontainerhashtest.cpp.

References cfcontainerhash::add(), cfcontainerhash::remove(), and cfcontainerhash::reset().

Referenced by main().

00014 {
00015 
00016   cfcontainerhash h1;
00017 
00018   vector<compilationfile> vcf;
00019 
00020   vcf.push_back(compilationfile("../vrml/vrmlshapeparse.h"));
00021   vcf.push_back(compilationfile("../vrml/vrmlshapeparse.cpp"));
00022   vcf.push_back(compilationfile("../vrml/vrmlconvert.h"));
00023   vcf.push_back(compilationfile("../graphicslib/graphmisc.h"));
00024   vcf.push_back(compilationfile("../misclib/commandline.h"));
00025   vcf.push_back(compilationfile("../vrml/vrmlconvert.cpp"));
00026 
00027   h1.add(&vcf[0]);
00028   h1.add(&vcf[2]);
00029   h1.add(&vcf[3]);
00030 
00031   cout << "Adding a element twice." << endl;
00032 
00033   h1.add(&vcf[3]);
00034   h1.add(&vcf[1]);
00035   h1.add(&vcf[4]);
00036   h1.add(&vcf[5]);
00037 /*
00038   h1.add(&vcf[1]);
00039   h1.add(&vcf[3]);
00040 */
00041 
00042   cout << "Printing the hash container." << endl;
00043   for (h1.reset(); !h1; ++h1)
00044     cout << h1()->filename << endl;
00045 
00046   cout << "***" << endl;
00047 
00048   string file1="vrmlconvert.cpp";
00049   cout << "Removing file " << file1 << endl;
00050 
00051   h1.remove(file1); 
00052   cout << "Printing the hash container." << endl;
00053   for (h1.reset(); !h1; ++h1)
00054     cout << h1()->filename << endl;
00055 
00056 }


Member Data Documentation

string cfcontainerhashtest::doc [static]

Initial value:

 
{
  "",
  ""
}
Brief description of each test.

Definition at line 15 of file cfcontainerhashtest.h.

Referenced by main().


The documentation for this class was generated from the following files:

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