Page Menu
Home
Xreate
Search
Configure Global Search
Log In
Docs
Questions
Repository
Issues
Patches
Internal API
Files
F3999298
containers.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
Thu, Jul 9, 1:54 AM
Size
1 KB
Mime Type
text/x-c++
Expires
Sat, Jul 11, 1:54 AM (1 d, 7 h)
Engine
blob
Format
Raw Data
Handle
273073
Attached To
rXR Xreate
containers.h
View Options
//
// Created by pgess on 3/14/15.
//
#ifndef _XREATE_CONTAINERSQUERY_H_
#define _XREATE_CONTAINERSQUERY_H_
#include "passmanager.h"
namespace xreate {
namespace containers {
enum Implementation{
LLVM_ARRAY, LLVM_CONST_ARRAY, ON_THE_FLY
};
struct ImplementationData {
Implementation impl;
union {
unsigned int size; //valid in case of LLVM_ARRAY impl.
struct {
Symbol range;
};
};
ImplementationData(Symbol var);
ImplementationData(Symbol var, std::string implSerialized, const ImplementationData& implPrototype);
std::pair<Expression, Expression> getRange();
};
class Query : public xreate::IQuery {
public:
static ImplementationData queryImplementation(xreate::Symbol const &s);
void init(ClaspLayer* clasp);
~Query(){}
private:
bool flagIsDataLoaded = false;
PassManager *man;
};
}
template<>
struct AttachmentsDictionary<containers::ImplementationData> {
typedef containers::ImplementationData Data;
static const unsigned int key = 1;
};
}
#endif //_XREATE_CONTAINERSQUERY_H_
Event Timeline
Log In to Comment