mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 01:58:20 +00:00
Add support for opaque hash values.
This commit is contained in:
parent
23ca1c90ef
commit
624003f036
6 changed files with 340 additions and 0 deletions
18
src/Val.h
18
src/Val.h
|
@ -1013,6 +1013,24 @@ protected:
|
|||
VectorType* vector_type;
|
||||
};
|
||||
|
||||
// See OpaqueVal.h for derived classes.
|
||||
class OpaqueVal : public Val {
|
||||
public:
|
||||
OpaqueVal(OpaqueType* t);
|
||||
virtual ~OpaqueVal();
|
||||
|
||||
// Determines whether the opaque value is in a valid state.
|
||||
virtual bool IsValid() const;
|
||||
|
||||
protected:
|
||||
friend class Val;
|
||||
OpaqueVal() { }
|
||||
|
||||
DECLARE_SERIAL(OpaqueVal);
|
||||
|
||||
OpaqueType* opaque_type;
|
||||
};
|
||||
|
||||
|
||||
// Checks the given value for consistency with the given type. If an
|
||||
// exact match, returns it. If promotable, returns the promoted version,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue