source: dev/trunk/abdev/BasicCompiler_Common/include/Delegate.h@ 393

Last change on this file since 393 was 339, checked in by dai_9181, 17 years ago

64ビットコンパイラもデリゲートに対応させた

File size: 714 bytes
Line 
1#pragma once
2
3#include <Hashmap.h>
4#include <Procedure.h>
5
6class Delegate : public Procedure, public Jenga::Common::ObjectInHashmap<Delegate>
7{
8 Parameters dynamicParams;
9
10public:
11 Delegate( const NamespaceScopes &namespaceScopes, const std::string &name, Procedure::Kind procKind, const char *paramStr, const Type &returnType, int nowLine );
12 Delegate()
13 {
14 }
15
16 virtual const std::string &GetKeyName() const
17 {
18 return GetName();
19 }
20
21 const Parameters &GetDynamicParams() const
22 {
23 return dynamicParams;
24 }
25};
26
27class Delegates : public Jenga::Common::Hashmap<Delegate>
28{
29public:
30 void Collect( const BasicSource &source );
31 void GenerateSourceCode( std::string &destSource );
32};
Note: See TracBrowser for help on using the repository browser.