| Rev | Line | |
|---|
| [322] | 1 | #pragma once
|
|---|
| 2 |
|
|---|
| 3 | #include <Hashmap.h>
|
|---|
| [325] | 4 | #include <Procedure.h>
|
|---|
| [322] | 5 |
|
|---|
| 6 | class Delegate : public Procedure, public Jenga::Common::ObjectInHashmap<Delegate>
|
|---|
| 7 | {
|
|---|
| [339] | 8 | Parameters dynamicParams;
|
|---|
| 9 |
|
|---|
| [322] | 10 | public:
|
|---|
| 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 | }
|
|---|
| [339] | 20 |
|
|---|
| 21 | const Parameters &GetDynamicParams() const
|
|---|
| 22 | {
|
|---|
| 23 | return dynamicParams;
|
|---|
| 24 | }
|
|---|
| [322] | 25 | };
|
|---|
| 26 |
|
|---|
| 27 | class Delegates : public Jenga::Common::Hashmap<Delegate>
|
|---|
| 28 | {
|
|---|
| 29 | public:
|
|---|
| 30 | void Collect( const BasicSource &source );
|
|---|
| 31 | void GenerateSourceCode( std::string &destSource );
|
|---|
| 32 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.