+ operator bool (void) const;
+ operator signed long long (void) const;
+ operator unsigned long long (void) const;
+ operator double (void) const;
+ void visit(Visitor &visitor);
+
+ const Signature *sig;
+};
+
+
+class Bitmask : public UInt
+{
+public:
+ typedef std::pair<std::string, unsigned long long> Pair;
+ typedef std::vector<Pair> Signature;
+
+ Bitmask(const Signature *_sig, unsigned long long _value) : UInt(_value), sig(_sig) {}
+
+ void visit(Visitor &visitor);
+
+ const Signature *sig;
+};
+
+
+class Struct : public Value
+{
+public:
+ struct Signature {
+ std::string name;
+ std::vector<std::string> member_names;
+ };
+
+ Struct(Signature *_sig) : sig(_sig), members(_sig->member_names.size()) { }
+ ~Struct();
+
+ operator bool (void) const;
+ void visit(Visitor &visitor);
+
+ const Signature *sig;
+ std::vector<Value *> members;