mirror of
https://github.com/zeek/zeek.git
synced 2025-10-09 18:18:19 +00:00
added some class accessors/set-ers
This commit is contained in:
parent
8389fc85d7
commit
1505fd4aa1
4 changed files with 23 additions and 2 deletions
|
@ -344,14 +344,19 @@ public:
|
|||
const IDPtr& GetID() const { return id; }
|
||||
|
||||
const StmtPtr& Body() const { return body; }
|
||||
void SetBody(StmtPtr _body) { body = std::move(_body); }
|
||||
|
||||
const auto& Inits() const { return inits; }
|
||||
void ClearInits() { inits.clear(); }
|
||||
|
||||
size_t FrameSize() const { return frame_size; }
|
||||
int Priority() const { return priority; }
|
||||
const ScopePtr& Scope() const { return scope; }
|
||||
const auto& Groups() const { return groups; }
|
||||
|
||||
// Used by script optimization to update lambda ingredients
|
||||
// after compilation.
|
||||
void SetFrameSize(size_t _frame_size) { frame_size = std::move(_frame_size); }
|
||||
|
||||
private:
|
||||
IDPtr id;
|
||||
StmtPtr body;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue