mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 16:48:19 +00:00
Redo API for notifiers.
There's now an notifier::Modifiable interface class that class supposed to signal modifications are to be derived from. This takes the place of the former MutableValue class and also unifies how Val and IDs signal modifications.
This commit is contained in:
parent
f8262b65c4
commit
062a1ee6b3
8 changed files with 126 additions and 163 deletions
|
@ -899,7 +899,7 @@ static void table_entry_val_delete_func(void* val)
|
|||
delete tv;
|
||||
}
|
||||
|
||||
TableVal::TableVal(TableType* t, Attributes* a) : MutableVal(t)
|
||||
TableVal::TableVal(TableType* t, Attributes* a) : Val(t)
|
||||
{
|
||||
Init(t);
|
||||
SetAttrs(a);
|
||||
|
@ -1982,7 +1982,7 @@ unsigned int TableVal::MemoryAllocation() const
|
|||
|
||||
vector<RecordVal*> RecordVal::parse_time_records;
|
||||
|
||||
RecordVal::RecordVal(RecordType* t, bool init_fields) : MutableVal(t)
|
||||
RecordVal::RecordVal(RecordType* t, bool init_fields) : Val(t)
|
||||
{
|
||||
origin = 0;
|
||||
record_type = t;
|
||||
|
@ -2287,7 +2287,7 @@ Val* EnumVal::DoClone(CloneState* state)
|
|||
return Ref();
|
||||
}
|
||||
|
||||
VectorVal::VectorVal(VectorType* t) : MutableVal(t)
|
||||
VectorVal::VectorVal(VectorType* t) : Val(t)
|
||||
{
|
||||
vector_type = t->Ref()->AsVectorType();
|
||||
val.vector_val = new vector<Val*>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue