#include <Attr.h>
Inheritance diagram for Attr:


Public Member Functions | |
| Attr (attr_tag t, Expr *e=0) | |
| ~Attr () | |
| attr_tag | Tag () const |
| Expr * | AttrExpr () const |
| int | RedundantAttrOkay () const |
| void | Describe (ODesc *d) const |
| Attr (AttrType arg_type) | |
| AttrType | Type () const |
Protected Member Functions | |
| void | AddTag (ODesc *d) const |
Protected Attributes | |
| attr_tag | tag |
| Expr * | expr |
| AttrType | type |
|
||||||||||||
|
Definition at line 42 of file Attr.cc. References end_location, expr, BroObj::SetLocationInfo(), start_location, and tag.
00043 {
00044 tag = t;
00045 expr = e;
00046 SetLocationInfo(&start_location, &end_location);
00047 }
|
|
|
Definition at line 49 of file Attr.cc. References expr, and BroObj::Unref.
00050 {
00051 Unref(expr);
00052 }
|
|
|
Definition at line 865 of file pac.h.
00866 : type(arg_type) {} |
|
|
Definition at line 67 of file Attr.cc. References ODesc::Add(), attr_name(), bro_int_t, ODesc::IsBinary(), and Tag(). Referenced by Describe().
|
|
|
Definition at line 59 of file Attr.h. References expr. Referenced by Attributes::CheckAttr(), TableVal::CheckExpireAttr(), FlattenExpr::Fold(), FieldExpr::Fold(), TableVal::Lookup(), RecordVal::RecordVal(), TableVal::SetAttrs(), BroFile::SetAttrs(), and ID::SetVal().
00059 { return expr; }
|
|
|
Implements BroObj. Definition at line 54 of file Attr.cc. References ODesc::Add(), AddTag(), Expr::Describe(), expr, and ODesc::IsBinary().
|
|
|
Definition at line 61 of file Attr.h. References ATTR_OPTIONAL, ATTR_REDEF, and tag. Referenced by Attributes::AddAttr().
00062 { return tag == ATTR_REDEF || tag == ATTR_OPTIONAL; }
|
|
|
Definition at line 58 of file Attr.h. Referenced by Attributes::AddAttr(), AddTag(), Attributes::CheckAttr(), and Attributes::FindAttr().
00058 { return tag; }
|
|
|
Definition at line 868 of file pac.h. References AttrType, and type. Referenced by RecordField::genParseCode(), and TypeDecl::ProcessAttr().
00868 { return type; }
|
|
|
Reimplemented in AttrCheck. Definition at line 70 of file Attr.h. Referenced by Attr(), AttrExpr(), Describe(), and ~Attr(). |
|
|
Definition at line 69 of file Attr.h. Referenced by Attr(), RedundantAttrOkay(), and Tag(). |
|
|
Definition at line 871 of file pac.h. Referenced by Type(). |
1.3.5