Changeset 190 in dev for trunk/jenga/include/smoothie/Prototype.h
- Timestamp:
- Jun 26, 2007, 12:05:36 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/include/smoothie/Prototype.h
r170 r190 4 4 #include <vector> 5 5 6 #include "Namespace.h" 6 #include <jenga/include/common/BoostXmlSupport.h> 7 8 #include "Symbol.h" 7 9 8 10 using namespace std; … … 11 13 class UserProc; 12 14 13 class Prototype 15 class Prototype : public Symbol 14 16 { 15 17 public: … … 22 24 23 25 private: 24 // 名前空間25 NamespaceScopes namespaceScopes;26 27 //名前28 string name;29 30 26 mutable bool isUsing; 31 27 … … 33 29 34 30 Prototype( const NamespaceScopes &namespaceScopes, const string &name ) 35 : namespaceScopes( namespaceScopes ) 36 , name( name ) 31 : Symbol( namespaceScopes, name ) 37 32 , isUsing( false ) 33 { 34 } 35 Prototype() 36 : Symbol() 38 37 { 39 38 } 40 39 ~Prototype() 41 40 { 42 }43 44 // 名前空間45 const NamespaceScopes &GetNamespaceScopes() const46 {47 return namespaceScopes;48 }49 50 const string &GetName() const51 {52 return name;53 41 } 54 42 … … 75 63 { 76 64 isUsing = true; 65 } 66 67 // XMLシリアライズ用 68 private: 69 friend class boost::serialization::access; 70 template<class Archive> void serialize(Archive& ar, const unsigned int version) 71 { 72 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Symbol ); 77 73 } 78 74
Note:
See TracChangeset
for help on using the changeset viewer.