Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F3995900
abstractpass.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Jul 8, 6:44 AM
Size
872 B
Mime Type
text/x-c++
Expires
Fri, Jul 10, 6:44 AM (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
271798
Attached To
rXR Xreate
abstractpass.h
View Options
#ifndef ABSTRACTPASS_H
#define ABSTRACTPASS_H
#include "passmanager.h"
namespace xreate
{
struct PassContext
{
CodeScope* scope = 0;
ManagedFnPtr function;
ManagedRulePtr rule;
std::string varDecl;
PassContext()
{}
~PassContext(){}
};
class AbstractPass
{
public:
AbstractPass(PassManager* man);
virtual void run();
virtual void finish();
virtual void processFnCall(ManagedFnPtr function, PassContext context);
virtual void process(ManagedFnPtr function);
virtual void process(ManagedRulePtr rule);
virtual void process(CodeScope* scope, PassContext context);
virtual void process(const Expression& expression, PassContext context, const std::string& varDecl="");
protected:
PassManager* man;
};
}
#endif
Event Timeline
Log In to Comment