13 m_data(
std::accumulate(idict.
begin(), idict.
end(), 0,
20 [&idict](
unsigned int a,
unsigned int b) {
return std::less<std::string>()(idict[a], idict[
b]); });
23 std::vector<char>::iterator
p=
m_data.begin();
24 for (
size_t j=0; j<
m_index.size(); j++) {
35 return std::lexicographical_compare(rh.
b,rh.
b+rh.
l,lh.
b,lh.
b+lh.
l);
41 return (*
find(s)).ind;
45 return (*
find(s)).ind;
49 Frame sp(&s[0], s.size(),0);
55 Frame sp(s, ::strlen(s),0);
size_t index(std::string const &s) const
const_iterator end() const
std::vector< unsigned int > m_index
const_iterator begin() const
const_iterator find(std::string const &s) const
std::vector< char > m_data
bool operator()(SmallWORMDict::Frame const &rh, SmallWORMDict::Frame const &lh) const
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator