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

Comparing branches/new_design/OOPSE-3.0/src/applications/simpleBuilder/LatticeFactory.cpp (file contents):
Revision 1902 by tim, Wed Dec 15 22:34:41 2004 UTC vs.
Revision 1903 by tim, Thu Jan 6 00:16:07 2005 UTC

# Line 6 | Line 6 | LatticeFactory::~LatticeFactory(){
6  
7   LatticeFactory* LatticeFactory::instance = NULL;
8   LatticeFactory::~LatticeFactory(){
9 <   std::map<string, BaseLatticeCreator*>::iterator mapIter;
9 >   std::map<std::string, BaseLatticeCreator*>::iterator mapIter;
10          for (mapIter = creatorMap.begin(); mapIter == creatorMap.end(); ++mapIter) {
11                  delete mapIter->second;
12          }  
# Line 21 | Line 21 | bool LatticeFactory::registerCreator( BaseLatticeCreat
21  
22   bool LatticeFactory::registerCreator( BaseLatticeCreator*  latCreator ){  
23     std::string latticeType = latCreator->getType();
24 <   std::map<string, BaseLatticeCreator*>::iterator mapIter;
24 >   std::map<std::string, BaseLatticeCreator*>::iterator mapIter;
25  
26    mapIter = creatorMap.find(latticeType);
27  
# Line 37 | Line 37 | BaseLattice* LatticeFactory::createLattice( const std:
37   }
38  
39   BaseLattice* LatticeFactory::createLattice( const std::string& latticeType ){
40 <   std::map<string, BaseLatticeCreator*>::iterator mapIter;
40 >   std::map<std::string, BaseLatticeCreator*>::iterator mapIter;
41    
42    mapIter = creatorMap.find(latticeType);
43  
# Line 49 | Line 49 | bool LatticeFactory::hasLatticeCreator( const std::str
49   }
50  
51   bool LatticeFactory::hasLatticeCreator( const std::string& latticeType ){
52 <   std::map<string, BaseLatticeCreator*>::iterator mapIter;
52 >   std::map<std::string, BaseLatticeCreator*>::iterator mapIter;
53  
54    mapIter = creatorMap.find(latticeType);
55  
# Line 61 | Line 61 | const  std::string LatticeFactory::toString(){
61  
62   const  std::string LatticeFactory::toString(){
63     std::string result;
64 <   std::map<string, BaseLatticeCreator*>::iterator mapIter;
64 >   std::map<std::string, BaseLatticeCreator*>::iterator mapIter;
65  
66    result = "Avaliable lattice creators in LatticeFactory are:\n";
67    

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines