1 #ifndef MINT_POLYMORPH_VECTOR 2 #define MINT_POLYMORPH_VECTOR 29 T&
at(
unsigned int i){
return _vec.at(i);}
30 const T&
at(
unsigned int i)
const{
return _vec.at(i);}
32 typename std::vector<T>::iterator
begin(){
return _vec.begin();}
33 typename std::vector<T>::const_iterator
begin()
const{
return _vec.begin();}
35 typename std::vector<T>::iterator
end(){
return _vec.end();}
36 typename std::vector<T>::const_iterator
end()
const{
return _vec.end();}
38 typename std::vector<T>::iterator
find(
const T& c){
return _vec.find(c);}
39 typename std::vector<T>::const_iterator
find(
const T& c)
const{
return _vec.find(c);}
53 void erase(
typename std::vector<T>::iterator pos){
_vec.erase(pos);}
54 void erase(
typename std::vector<T>::iterator first,
55 typename std::vector<T>::iterator last){
56 _vec.erase(first, last);
66 void resize(
unsigned int N,
const T& c){
_vec.resize(N, c);}
68 operator const typename std::vector<T>& ()
const{
71 operator typename std::vector<T>& (){
85 return v2 <
_vec.theVector();
std::vector< T >::const_iterator end() const
bool operator==(const MINT::PolymorphVector< T > &v2) const
PolymorphVector(unsigned int N, const T &c)
std::vector< T >::iterator end()
void resize(unsigned int N)
void push_back(const T &c)
std::vector< T >::const_iterator find(const T &c) const
PolymorphVector(const PolymorphVector &other)
bool operator!=(const MINT::PolymorphVector< T > &v2) const
bool operator<(const MINT::PolymorphVector< T > &v2) const
void resize(unsigned int N, const T &c)
std::vector< T >::const_iterator begin() const
const T & at(unsigned int i) const
PolymorphVector(unsigned int N)
T & operator[](unsigned int i)
void erase(typename std::vector< T >::iterator pos)
std::vector< T >::iterator begin()
PolymorphVector< T > & operator=(const PolymorphVector< T > &other)
void erase(typename std::vector< T >::iterator first, typename std::vector< T >::iterator last)
const std::vector< T > & theVector() const
virtual ~PolymorphVector()
const T & operator[](unsigned int i) const
unsigned int size() const
std::vector< T > & theVector()
bool operator>(const MINT::PolymorphVector< T > &v2) const
PolymorphVector(const typename std::vector< T > &other)
std::vector< T >::iterator find(const T &c)