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);
a const_iterator for CharIndexedVector
boost::array< T, 129 > type
type::difference_type difference_type
CharIndexedVectorConstIterator & operator--()
CharIndexedVectorConstIterator(const const_iterator &itr)
type::value_type value_type
type::const_reference const_reference
CharIndexedVectorConstIterator operator++(int)
type::const_iterator const_iterator
bool operator!=(const CharIndexedVectorConstIterator &rhs) const
CharIndexedVectorConstIterator & operator++()
CharIndexedVectorConstIterator operator--(int)
const_reference operator*() const
std::random_access_iterator_tag iterator_category
bool operator<(const CharIndexedVectorConstIterator &rhs)
difference_type operator-(const CharIndexedVectorConstIterator &rhs) const
CharIndexedVectorConstIterator & operator-=(difference_type _Off)
type::size_type size_type
CharIndexedVectorConstIterator & operator+=(difference_type _Off)
type::const_iterator m_itr
type::reference reference
an iterator for CharIndexedVector
reference operator*() const
CharIndexedVectorIterator & operator--()
type::const_iterator const_iterator
std::random_access_iterator_tag iterator_category
CharIndexedVectorIterator & operator+=(difference_type _Off)
type::reference reference
type::value_type value_type
CharIndexedVectorIterator(const iterator &itr)
CharIndexedVectorIterator operator++(int)
type::const_reference const_reference
bool operator!=(const CharIndexedVectorIterator &rhs) const
difference_type operator-(const CharIndexedVectorIterator &rhs) const
CharIndexedVectorIterator & operator++()
CharIndexedVectorIterator & operator-=(difference_type _Off)
boost::array< T, 129 > type
bool operator<(const CharIndexedVectorIterator &rhs)
CharIndexedVectorIterator operator--(int)
type::difference_type difference_type
type::size_type size_type
a wrapper for boost::array that is indexable by character; supports indexes 0-127
T & operator[](const char c)
boost::array< T, 129 > type
std::reverse_iterator< const_iterator > const_reverse_iterator
CharIndexedVectorIterator< T > iterator
const_iterator begin() const
std::reverse_iterator< iterator > reverse_iterator
CharIndexedVectorConstIterator< T > const_iterator
char getIndexAsChar(size_t i) const
char getIndexAsChar(iterator itr) const
const_iterator end() const
const T & operator[](const char c) const