Lines Matching refs:SBPrefix
33 bool PrefixLess(const std::pair<SBPrefix,size_t>& a, in PrefixLess() argument
34 const std::pair<SBPrefix,size_t>& b) { in PrefixLess()
42 PrefixSet::PrefixSet(const std::vector<SBPrefix>& sorted_prefixes) { in PrefixSet()
45 SBPrefix prev_prefix = sorted_prefixes[0]; in PrefixSet()
92 static const size_t kMaxBitsPerPrefix = sizeof(SBPrefix) * CHAR_BIT; in PrefixSet()
99 PrefixSet::PrefixSet(std::vector<std::pair<SBPrefix,size_t> > *index, in PrefixSet() argument
108 bool PrefixSet::Exists(SBPrefix prefix) const { in Exists()
113 std::vector<std::pair<SBPrefix,size_t> >::const_iterator in Exists()
115 std::pair<SBPrefix,size_t>(prefix, 0), in Exists()
129 SBPrefix current = iter->first; in Exists()
141 void PrefixSet::GetPrefixes(std::vector<SBPrefix>* prefixes) const { in GetPrefixes()
148 SBPrefix current = index_[ii].first; in GetPrefixes()
177 std::vector<std::pair<SBPrefix,size_t> > index; in LoadFile()