#include <HostLookup.h>
Public Member Functions | |
HostLookup (const char *name) | |
~HostLookup () | |
void | NewEntry (const char *match_data, bool domain_record, void *opaque_data_in) |
void | AllocateSpace (int num_entries) |
bool | Match (const char *host) |
bool | Match (const char *host, void **opaque_ptr) |
bool | MatchFirst (const char *host, HostLookupState *s, void **opaque_ptr) |
bool | MatchNext (HostLookupState *s, void **opaque_ptr) |
void | Print (HostLookupPrintFunc f) |
void | Print () |
HostLeaf * | getLArray () |
Definition at line 98 of file HostLookup.h.
HostLookup::HostLookup | ( | const char * | name | ) |
Definition at line 773 of file HostLookup.cc.
References HostBranch::level, HostBranch::next_level, and HostBranch::type.
HostLookup::~HostLookup | ( | ) |
Definition at line 786 of file HostLookup.cc.
References ats_free().
void HostLookup::AllocateSpace | ( | int | num_entries | ) |
Definition at line 1286 of file HostLookup.cc.
References ink_assert.
Referenced by HostMatcher< Data, Result >::AllocateSpace(), and CacheHostMatcher::AllocateSpace().
HostLeaf* HostLookup::getLArray | ( | ) | [inline] |
Definition at line 111 of file HostLookup.h.
bool HostLookup::Match | ( | const char * | host, | |
void ** | opaque_ptr | |||
) |
bool HostLookup::Match | ( | const char * | host | ) |
bool HostLookup::MatchFirst | ( | const char * | host, | |
HostLookupState * | s, | |||
void ** | opaque_ptr | |||
) |
Definition at line 1177 of file HostLookup.cc.
References HostLookupState::array_index, ats_strdup, HostLookupState::cur, HostLookupState::host_copy, HostLookupState::host_copy_next, HostLookupState::hostname, LowerCaseStr(), MatchNext(), and HostLookupState::table_level.
Referenced by HostMatcher< Data, Result >::Match(), and CacheHostMatcher::Match().
bool HostLookup::MatchNext | ( | HostLookupState * | s, | |
void ** | opaque_ptr | |||
) |
Definition at line 1213 of file HostLookup.cc.
References HostLookupState::array_index, HostLookupState::cur, HostLookupState::host_copy, HostLookupState::host_copy_next, HOST_TERMINAL, ink_assert, HostBranch::leaf_indexs, HostLookupState::table_level, and HostBranch::type.
Referenced by HostMatcher< Data, Result >::Match(), CacheHostMatcher::Match(), and MatchFirst().
void HostLookup::NewEntry | ( | const char * | match_data, | |
bool | domain_record, | |||
void * | opaque_data_in | |||
) |
Definition at line 1303 of file HostLookup.cc.
References ats_strdup, ink_assert, HostLeaf::isNot, HostLeaf::len, HostLeaf::match, and HostLeaf::opaque_data.
Referenced by HostMatcher< Data, Result >::NewEntry(), and CacheHostMatcher::NewEntry().
void HostLookup::Print | ( | ) |
Definition at line 806 of file HostLookup.cc.
References empty_print_fn().
void HostLookup::Print | ( | HostLookupPrintFunc | f | ) |
Definition at line 812 of file HostLookup.cc.
Referenced by HostMatcher< Data, Result >::Print(), and CacheHostMatcher::Print().