Changeset 181 in dev for trunk/jenga/include/smoothie/Procedure.h
- Timestamp:
- Jun 24, 2007, 2:05:40 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/jenga/include/smoothie/Procedure.h
r170 r181 94 94 string _paramStr; 95 95 96 pr ivate:96 protected: 97 97 bool isMacro; 98 98 … … 113 113 114 114 public: 115 116 void Serialize( bool isRead ) 117 { 118 119 } 115 120 116 121 UserProc( const string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport ): … … 127 132 { 128 133 } 129 ~UserProc(); 134 ~UserProc() 135 { 136 BOOST_FOREACH( Parameter *pParam, realParams ){ 137 delete pParam; 138 } 139 } 130 140 131 141 string GetFullName() const; … … 136 146 } 137 147 138 virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine, bool isStatic ) ;148 virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine, bool isStatic ) = 0; 139 149 140 150 int GetSecondParmNum() const … … 246 256 return *pCompilingUserProc; 247 257 } 248 };249 250 class GlobalProc : public UserProc251 {252 const NamespaceScopes namespaceScopes;253 const NamespaceScopesCollection importedNamespaces;254 public:255 // ハッシュリスト用256 GlobalProc *pNextData;257 258 GlobalProc( const NamespaceScopes &namespaceScopes, const NamespaceScopesCollection &importedNamespaces, const string &name, Kind kind, bool isMacro, bool isCdecl, bool isExport ):259 UserProc( name, kind, isMacro, isCdecl, isExport ),260 namespaceScopes( namespaceScopes ),261 importedNamespaces( importedNamespaces ),262 pNextData( NULL )263 {}264 ~GlobalProc(){}265 /*266 GlobalProc *Create( const NamespaceScopes &namespaceScopes, char *buffer,int nowLine );267 bool AddGlobalProc( const NamespaceScopes &namespaceScopes, char *buffer,int nowLine );268 */269 virtual const NamespaceScopes &GetNamespaceScopes() const;270 virtual const NamespaceScopesCollection &GetImportedNamespaces() const271 {272 return importedNamespaces;273 }274 275 virtual bool IsEqualSymbol( const NamespaceScopes &namespaceScopes, const string &name ) const;276 virtual bool IsEqualSymbol( const GlobalProc &globalProc ) const;277 virtual bool IsEqualSymbol( const string &name ) const;278 258 }; 279 259 … … 309 289 } 310 290 311 virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine ) ;291 virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine ) = 0; 312 292 313 293 const string &GetDllFileName() const … … 339 319 ~ProcPointer(){} 340 320 341 virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine ); 342 }; 321 virtual bool SetParamsAndReturnType( const char *sourceOfParams, int nowLine ) = 0; 322 }; 323 class ProcPointers : public vector<ProcPointer *> 324 { 325 public: 326 ProcPointers() 327 { 328 } 329 ~ProcPointers() 330 { 331 } 332 333 virtual int Add( const string &typeExpression ) = 0; 334 };
Note:
See TracChangeset
for help on using the changeset viewer.