3 #ifndef __tr_selector_inline_hpp
4 #define __tr_selector_inline_hpp
6 template <
typename AttrT>
9 const AttrT &attr_val):
12 m_hdr_attr_vals.push_back(attr_val);
15 template <
typename AttrT>
18 std::vector<AttrT> &attr_vals):
19 TrSelBaseRule(), m_op(op), m_hdr_attr_id(hdr_attr_id), m_hdr_attr_vals(attr_vals)
24 template <
typename AttrT>
30 template <
typename AttrT>
36 template <
typename AttrT>
42 template <
typename AttrT>
48 template <
typename AttrT>
51 return m_hdr_attr_vals;
56 template <
typename AttrT>
65 template <
typename AttrT>
71 template <
typename AttrT>
77 template <
typename AttrT>
83 template <
typename AttrT>
89 template <
typename AttrT>
TrSelRangeRule(TrHeaderAttrId hdr_attr_id, const AttrT &av1, const AttrT &av2)
Definition: tr_selector_inline.hpp:57
TrHeaderAttrId hdrAttrId() const
Definition: tr_selector_inline.hpp:84
Definition: tr_selector.hpp:52
virtual ~TrSelRangeRule()
Definition: tr_selector_inline.hpp:66
virtual TrSelBaseRule * clone() const
Definition: tr_selector_inline.hpp:31
virtual ~TrSelMatchRule()
Definition: tr_selector_inline.hpp:25
TrSelMatchRule(TrSelMatchOp op, TrHeaderAttrId hdr_attr_id, const AttrT &attr_val)
Definition: tr_selector_inline.hpp:7
TrHeaderAttrId hdrAttrId() const
Definition: tr_selector_inline.hpp:43
TrHeaderAttrId
Definition: tr_header_context.hpp:16
Definition: tr_selector.hpp:104
virtual TrSelBaseRule * clone() const
Definition: tr_selector_inline.hpp:72
const std::pair< AttrT, AttrT > & range() const
Definition: tr_selector_inline.hpp:90
const std::vector< AttrT > & hdrAttrVals() const
Definition: tr_selector_inline.hpp:49
Definition: tr_selector.hpp:44
TrSelMatchOp
Definition: tr_selector.hpp:30
virtual int opType() const
Definition: tr_selector_inline.hpp:78
virtual int opType() const
Definition: tr_selector_inline.hpp:37
Definition: tr_selector.hpp:149