1 #ifndef cond_SmallWORMDict_h
2 #define cond_SmallWORMDict_h
11 #include <boost/bind.hpp>
12 #include <boost/iterator_adaptors.hpp>
13 #include <boost/iterator/transform_iterator.hpp>
14 #include <boost/iterator/counting_iterator.hpp>
18 namespace SmallWORMDict {
41 b(ib),
l(il),
ind(iind){}
59 unsigned int ind)
const {
71 typedef boost::transform_iterator<IterHelp,boost::counting_iterator<int> >
const_iterator;
75 return boost::make_transform_iterator(boost::counting_iterator<int>(0),
80 return boost::make_transform_iterator(boost::counting_iterator<int>(
size()),
94 explicit SmallWORMDict(std::vector<std::string>
const & idict);
99 size_t index(
char const *
s)
const;
size_t index(std::string const &s) const
const_iterator end() const
std::vector< unsigned int > m_index
const_iterator begin() const
result_type const & operator()(int i) const
Frame operator[](int i) const
const_iterator find(std::string const &s) const
Frame const & frame(char const *b, unsigned int l, unsigned int ind) const
std::vector< char > m_data
boost::transform_iterator< IterHelp, boost::counting_iterator< int > > const_iterator
IterHelp(SmallWORMDict const &iv)
#define COND_SERIALIZABLE
Frame(char const *ib, unsigned int il, unsigned int iind)