ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-4/src/lattice/LatticeCreator.hpp
(Generate patch)

Comparing trunk/OOPSE-4/src/lattice/LatticeCreator.hpp (file contents):
Revision 2181 by tim, Tue Apr 12 21:58:09 2005 UTC vs.
Revision 2204 by gezelter, Fri Apr 15 22:04:00 2005 UTC

# Line 1 | Line 1
1 < /*
1 > /*
2   * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
# Line 46 | Line 46 | class Lattice;
46  
47   namespace oopse {
48  
49 < class Lattice;
49 >  class Lattice;
50  
51 < /**
52 < * @class Lattice
53 < * @todo document
54 < */
55 < class LatticeCreator {
56 <    public:
57 <        LatticeCreator(const std::string& ident) : ident_(ident) {}
58 <        virtual ~LatticeCreator() {}
51 >  /**
52 >   * @class Lattice
53 >   * @todo document
54 >   */
55 >  class LatticeCreator {
56 >  public:
57 >    LatticeCreator(const std::string& ident) : ident_(ident) {}
58 >    virtual ~LatticeCreator() {}
59          
60 <        const std::string& getIdent() const { return ident_; }
60 >    const std::string& getIdent() const { return ident_; }
61  
62 <        virtual Lattice* create() const = 0;
62 >    virtual Lattice* create() const = 0;
63              
64 <    private:
65 <        std::string ident_;
66 < };
64 >  private:
65 >    std::string ident_;
66 >  };
67  
68 < /**
69 < * @class LatticeBuilder
70 < * @todo document
71 < */
72 < template<class ConcreteLattice>
73 < class LatticeBuilder : public LatticeCreator {
74 <    public:
75 <        LatticeBuilder(const std::string& ident) : LatticeCreator(ident) {}
76 <        virtual  Lattice* create() const {return new ConcreteLattice();}
77 < };
68 >  /**
69 >   * @class LatticeBuilder
70 >   * @todo document
71 >   */
72 >  template<class ConcreteLattice>
73 >  class LatticeBuilder : public LatticeCreator {
74 >  public:
75 >    LatticeBuilder(const std::string& ident) : LatticeCreator(ident) {}
76 >    virtual  Lattice* create() const {return new ConcreteLattice();}
77 >  };
78  
79   }
80  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines