#include <ControlMatcher.h>
Inherited by HostRegexMatcher< Data, Result >.
Public Member Functions | |
RegexMatcher (const char *name, const char *filename) | |
~RegexMatcher () | |
void | Match (RequestData *rdata, Result *result) |
void | AllocateSpace (int num_entries) |
char * | NewEntry (matcher_line *line_info) |
void | Print () |
int | getNumElements () |
Data * | getDataArray () |
Protected Attributes | |
pcre ** | re_array |
char ** | re_str |
Data * | data_array |
int | array_len |
int | num_el |
const char * | matcher_name |
const char * | file_name |
Definition at line 188 of file ControlMatcher.h.
RegexMatcher< Data, Result >::RegexMatcher | ( | const char * | name, | |
const char * | filename | |||
) |
Definition at line 368 of file ControlMatcher.cc.
RegexMatcher< Data, Result >::~RegexMatcher | ( | ) |
Definition at line 382 of file ControlMatcher.cc.
References ats_free(), RegexMatcher< Data, Result >::data_array, RegexMatcher< Data, Result >::num_el, RegexMatcher< Data, Result >::re_array, and RegexMatcher< Data, Result >::re_str.
void RegexMatcher< Data, Result >::AllocateSpace | ( | int | num_entries | ) |
Definition at line 410 of file ControlMatcher.cc.
References RegexMatcher< Data, Result >::array_len, ats_malloc(), RegexMatcher< Data, Result >::data_array, ink_assert, RegexMatcher< Data, Result >::num_el, RegexMatcher< Data, Result >::re_array, and RegexMatcher< Data, Result >::re_str.
Data* RegexMatcher< Data, Result >::getDataArray | ( | ) | [inline] |
Definition at line 198 of file ControlMatcher.h.
int RegexMatcher< Data, Result >::getNumElements | ( | ) | [inline] |
Definition at line 197 of file ControlMatcher.h.
void RegexMatcher< Data, Result >::Match | ( | RequestData * | rdata, | |
Result * | result | |||
) |
Reimplemented in HostRegexMatcher< Data, Result >, and HostRegexMatcher< CongestionControlRecord, CongestionControlRule >.
Definition at line 489 of file ControlMatcher.cc.
References ats_free(), ats_strdup, RegexMatcher< Data, Result >::data_array, Debug, RequestData::get_string(), RegexMatcher< Data, Result >::matcher_name, RegexMatcher< Data, Result >::num_el, RegexMatcher< Data, Result >::re_array, and Warning.
char * RegexMatcher< Data, Result >::NewEntry | ( | matcher_line * | line_info | ) |
Definition at line 430 of file ControlMatcher.cc.
References RegexMatcher< Data, Result >::array_len, ats_free(), ats_malloc(), ats_strdup, RegexMatcher< Data, Result >::data_array, matcher_line::dest_entry, ink_assert, matcher_line::line, matcher_line::line_num, MATCHER_MAX_TOKENS, RegexMatcher< Data, Result >::matcher_name, matcher_line::num_el, RegexMatcher< Data, Result >::num_el, RegexMatcher< Data, Result >::re_array, and RegexMatcher< Data, Result >::re_str.
void RegexMatcher< Data, Result >::Print | ( | ) |
Definition at line 398 of file ControlMatcher.cc.
References RegexMatcher< Data, Result >::data_array, RegexMatcher< Data, Result >::num_el, and RegexMatcher< Data, Result >::re_str.
int RegexMatcher< Data, Result >::array_len [protected] |
Definition at line 204 of file ControlMatcher.h.
Referenced by RegexMatcher< Data, Result >::AllocateSpace(), and RegexMatcher< Data, Result >::NewEntry().
Data* RegexMatcher< Data, Result >::data_array [protected] |
Definition at line 203 of file ControlMatcher.h.
Referenced by RegexMatcher< Data, Result >::AllocateSpace(), RegexMatcher< CongestionControlRecord, CongestionControlRule >::getDataArray(), HostRegexMatcher< Data, Result >::Match(), RegexMatcher< Data, Result >::Match(), RegexMatcher< Data, Result >::NewEntry(), RegexMatcher< Data, Result >::Print(), and RegexMatcher< Data, Result >::~RegexMatcher().
const char* RegexMatcher< Data, Result >::file_name [protected] |
Definition at line 207 of file ControlMatcher.h.
const char* RegexMatcher< Data, Result >::matcher_name [protected] |
Definition at line 206 of file ControlMatcher.h.
Referenced by HostRegexMatcher< Data, Result >::Match(), RegexMatcher< Data, Result >::Match(), and RegexMatcher< Data, Result >::NewEntry().
int RegexMatcher< Data, Result >::num_el [protected] |
Definition at line 205 of file ControlMatcher.h.
Referenced by RegexMatcher< Data, Result >::AllocateSpace(), RegexMatcher< CongestionControlRecord, CongestionControlRule >::getNumElements(), HostRegexMatcher< Data, Result >::Match(), RegexMatcher< Data, Result >::Match(), RegexMatcher< Data, Result >::NewEntry(), RegexMatcher< Data, Result >::Print(), and RegexMatcher< Data, Result >::~RegexMatcher().
pcre** RegexMatcher< Data, Result >::re_array [protected] |
Definition at line 201 of file ControlMatcher.h.
Referenced by RegexMatcher< Data, Result >::AllocateSpace(), HostRegexMatcher< Data, Result >::Match(), RegexMatcher< Data, Result >::Match(), RegexMatcher< Data, Result >::NewEntry(), and RegexMatcher< Data, Result >::~RegexMatcher().
char** RegexMatcher< Data, Result >::re_str [protected] |
Definition at line 202 of file ControlMatcher.h.
Referenced by RegexMatcher< Data, Result >::AllocateSpace(), RegexMatcher< Data, Result >::NewEntry(), RegexMatcher< Data, Result >::Print(), and RegexMatcher< Data, Result >::~RegexMatcher().