#include <P_CacheHosting.h>
Public Member Functions | |
CacheHostMatcher (const char *name, CacheType typ) | |
~CacheHostMatcher () | |
void | Match (char const *rdata, int rlen, CacheHostResult *result) |
void | AllocateSpace (int num_entries) |
void | NewEntry (matcher_line *line_info) |
void | Print () |
int | getNumElements () const |
CacheHostRecord * | getDataArray () const |
HostLookup * | getHLookup () const |
Definition at line 77 of file P_CacheHosting.h.
CacheHostMatcher::CacheHostMatcher | ( | const char * | name, | |
CacheType | typ | |||
) |
Definition at line 37 of file CacheHosting.cc.
CacheHostMatcher::~CacheHostMatcher | ( | ) |
Definition at line 46 of file CacheHosting.cc.
void CacheHostMatcher::AllocateSpace | ( | int | num_entries | ) |
Definition at line 85 of file CacheHosting.cc.
References HostLookup::AllocateSpace(), and ink_assert.
Referenced by CacheHostTable::BuildTableFromString().
CacheHostRecord* CacheHostMatcher::getDataArray | ( | ) | const [inline] |
Definition at line 89 of file P_CacheHosting.h.
Referenced by rebuild_host_table().
HostLookup* CacheHostMatcher::getHLookup | ( | ) | const [inline] |
Definition at line 90 of file P_CacheHosting.h.
int CacheHostMatcher::getNumElements | ( | ) | const [inline] |
Definition at line 88 of file P_CacheHosting.h.
Referenced by rebuild_host_table().
void CacheHostMatcher::Match | ( | char const * | rdata, | |
int | rlen, | |||
CacheHostResult * | result | |||
) |
Definition at line 104 of file CacheHosting.cc.
References ats_free(), ats_malloc(), ink_assert, HostLookup::MatchFirst(), HostLookup::MatchNext(), memcpy, and CacheHostRecord::UpdateMatch().
Referenced by CacheHostTable::Match().
void CacheHostMatcher::NewEntry | ( | matcher_line * | line_info | ) |
Definition at line 144 of file CacheHosting.cc.
References Debug, matcher_line::dest_entry, CacheHostRecord::Init(), ink_assert, matcher_line::line, MATCH_DOMAIN, MATCHER_MAX_TOKENS, HostLookup::NewEntry(), matcher_line::num_el, and matcher_line::type.
Referenced by CacheHostTable::BuildTableFromString().
void CacheHostMatcher::Print | ( | ) |
Definition at line 60 of file CacheHosting.cc.
References HostLookup::Print().
Referenced by CacheHostTable::Print().