ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/branches/new_design/OOPSE-4/src/applications/simpleBuilder/LatticeFactory.cpp
(Generate patch)

Comparing branches/new_design/OOPSE-4/src/applications/simpleBuilder/LatticeFactory.cpp (file contents):
Revision 1825 by tim, Thu Dec 2 04:55:10 2004 UTC vs.
Revision 1826 by tim, Thu Dec 2 05:04:20 2004 UTC

# Line 4 | Line 4 | LatticeFactory::~LatticeFactory(){
4  
5   LatticeFactory* LatticeFactory::instance = NULL;
6   LatticeFactory::~LatticeFactory(){
7 <  map<string, BaseLatticeCreator*>::iterator mapIter;
7 >   std::map<string, BaseLatticeCreator*>::iterator mapIter;
8          for (mapIter = creatorMap.begin(); mapIter == creatorMap.end(); ++mapIter) {
9                  delete mapIter->second;
10          }  
# Line 19 | Line 19 | bool LatticeFactory::registerCreator( BaseLatticeCreat
19  
20   bool LatticeFactory::registerCreator( BaseLatticeCreator*  latCreator ){  
21     std::stringlatticeType = latCreator->getType();
22 <  map<string, BaseLatticeCreator*>::iterator mapIter;
22 >   std::map<string, BaseLatticeCreator*>::iterator mapIter;
23  
24    mapIter = creatorMap.find(latticeType);
25  
# Line 35 | Line 35 | BaseLattice* LatticeFactory::createLattice( const stri
35   }
36  
37   BaseLattice* LatticeFactory::createLattice( const string& latticeType ){
38 <  map<string, BaseLatticeCreator*>::iterator mapIter;
38 >   std::map<string, BaseLatticeCreator*>::iterator mapIter;
39    
40    mapIter = creatorMap.find(latticeType);
41  
# Line 47 | Line 47 | bool LatticeFactory::hasLatticeCreator( const string&
47   }
48  
49   bool LatticeFactory::hasLatticeCreator( const string& latticeType ){
50 <  map<string, BaseLatticeCreator*>::iterator mapIter;
50 >   std::map<string, BaseLatticeCreator*>::iterator mapIter;
51  
52    mapIter = creatorMap.find(latticeType);
53  
# Line 59 | Line 59 | const  std::stringLatticeFactory::toString(){
59  
60   const  std::stringLatticeFactory::toString(){
61     std::stringresult;
62 <  map<string, BaseLatticeCreator*>::iterator mapIter;
62 >   std::map<string, BaseLatticeCreator*>::iterator mapIter;
63  
64    result = "Avaliable lattice creators in LatticeFactory are:\n";
65    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines