Go to the documentation of this file.
25 #ifndef _CHARINDEXEDVECTOR_HPP_
26 #define _CHARINDEXEDVECTOR_HPP_
28 #include "boost/array.hpp"
37 typedef boost::array<T, 129>
type;
102 return (*
this += -_Off);
115 typedef boost::array<T, 129>
type;
116 typename type::const_iterator
m_itr;
180 return (*
this += -_Off);
193 typedef boost::array<T, 129>
type;
216 std::fill(type::begin(), type::end(), T());
221 return 'A' + (itr - type::begin());
226 return 'A' + (&this->
operator[](i) - type::begin());
231 return type::operator[]((
size_t) c);
236 return type::operator[]((
size_t) c);
248 #endif // _CHARINDEXEDVECTOR_HPP_
type::size_type size_type
CharIndexedVectorConstIterator & operator--()
boost::array< T, 129 > type
const_iterator begin() const
a const_iterator for CharIndexedVector
bool operator!=(const CharIndexedVectorConstIterator &rhs) const
CharIndexedVectorIterator operator--(int)
type::reference reference
CharIndexedVectorIterator< T > iterator
type::const_iterator const_iterator
char getIndexAsChar(size_t i) const
bool operator!=(const CharIndexedVectorIterator &rhs) const
const_iterator end() const
CharIndexedVectorIterator & operator-=(difference_type _Off)
CharIndexedVectorConstIterator operator--(int)
const_reference operator*() const
CharIndexedVectorConstIterator & operator-=(difference_type _Off)
a wrapper for boost::array that is indexable by character; supports indexes 0-127
reference operator*() const
type::const_reference const_reference
type::const_iterator m_itr
CharIndexedVectorConstIterator & operator+=(difference_type _Off)
type::size_type size_type
boost::array< T, 129 > type
type::difference_type difference_type
bool operator<(const CharIndexedVectorConstIterator &rhs)
std::reverse_iterator< const_iterator > const_reverse_iterator
bool operator<(const CharIndexedVectorIterator &rhs)
CharIndexedVectorIterator & operator--()
CharIndexedVectorConstIterator< T > const_iterator
std::random_access_iterator_tag iterator_category
CharIndexedVectorIterator operator++(int)
std::random_access_iterator_tag iterator_category
std::reverse_iterator< iterator > reverse_iterator
type::value_type value_type
CharIndexedVectorIterator & operator++()
difference_type operator-(const CharIndexedVectorIterator &rhs) const
type::value_type value_type
difference_type operator-(const CharIndexedVectorConstIterator &rhs) const
const T & operator[](const char c) const
type::difference_type difference_type
an iterator for CharIndexedVector
T & operator[](const char c)
CharIndexedVectorConstIterator(const const_iterator &itr)
type::reference reference
char getIndexAsChar(iterator itr) const
type::const_reference const_reference
boost::array< T, 129 > type
CharIndexedVectorConstIterator operator++(int)
CharIndexedVectorConstIterator & operator++()
CharIndexedVectorIterator(const iterator &itr)
CharIndexedVectorIterator & operator+=(difference_type _Off)
type::const_iterator const_iterator