mirror of
https://github.com/zeek/zeek.git
synced 2025-10-10 10:38:20 +00:00
sundry accessors/cast-ers; RE_Matcher's track their construction values
This commit is contained in:
parent
17affdb858
commit
d53d2ac755
8 changed files with 50 additions and 3 deletions
12
src/Type.cc
12
src/Type.cc
|
@ -147,6 +147,18 @@ FuncType* Type::AsFuncType()
|
|||
return (FuncType*) this;
|
||||
}
|
||||
|
||||
const FileType* Type::AsFileType() const
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_FILE, "Type::AsFileType");
|
||||
return (const FileType*) this;
|
||||
}
|
||||
|
||||
FileType* Type::AsFileType()
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_FILE, "Type::AsFileType");
|
||||
return (FileType*) this;
|
||||
}
|
||||
|
||||
const EnumType* Type::AsEnumType() const
|
||||
{
|
||||
CHECK_TYPE_TAG(TYPE_ENUM, "Type::AsEnumType");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue