Changeset 422 in dev for trunk/abdev/BasicCompiler_Common/include
- Timestamp:
- Mar 8, 2008, 10:38:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abdev/BasicCompiler_Common/include/Delegate.h
r339 r422 4 4 #include <Procedure.h> 5 5 6 class Delegate : public Procedure, public Jenga::Common::ObjectInHashmap<Delegate> 6 class Delegates; 7 8 class Delegate 9 : public Procedure 10 , public Jenga::Common::ObjectInHashmap<Delegate> 7 11 { 12 friend Delegates; 13 14 std::string paramStr; 15 std::string returnTypeName; 16 int sourceIndex; 17 8 18 Parameters dynamicParams; 9 19 20 // XMLシリアライズ用 21 private: 22 friend class boost::serialization::access; 23 template<class Archive> void serialize(Archive& ar, const unsigned int version) 24 { 25 trace_for_serialize( "serializing - Delegate" ); 26 27 ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP( Procedure ); 28 ar & BOOST_SERIALIZATION_NVP( dynamicParams ); 29 } 30 10 31 public: 11 Delegate( const NamespaceScopes &namespaceScopes, const std::string &name, Procedure::Kind procKind, const char *paramStr, const Type &returnType, int nowLine ); 32 Delegate( const NamespaceScopes &namespaceScopes, const std::string &name, Procedure::Kind procKind, const char *paramStr, const std::string &returnTypeName, int sourceIndex ) 33 : Procedure( namespaceScopes, name, procKind, false ) 34 , paramStr( paramStr ) 35 , returnTypeName( returnTypeName ) 36 , sourceIndex( sourceIndex ) 37 { 38 } 12 39 Delegate() 13 40 { 14 41 } 42 43 void RefleshParameterAndReturnType(); 15 44 16 45 virtual const std::string &GetKeyName() const … … 30 59 void Collect( const BasicSource &source ); 31 60 void GenerateSourceCode( std::string &destSource ); 61 void RefleshParameterAndReturnType(); 32 62 };
Note:
See TracChangeset
for help on using the changeset viewer.