#include <memory>
#include <cstddef>
#include <cstring>
#include <algorithm>
#include "BCP_vector_sanity.hpp"
#include "BCP_error.hpp"
#include "BCP_vector_bool.hpp"
#include "BCP_vector_char.hpp"
#include "BCP_vector_short.hpp"
#include "BCP_vector_int.hpp"
#include "BCP_vector_double.hpp"
#include "BCP_vector_general.hpp"
Go to the source code of this file.
Classes | |
class | BCP_vec< T > |
The class BCP_vec serves the same purpose as the vector class in the standard template library. More... | |
Functions | |
template<class T > | |
bool | operator== (const BCP_vec< T > &x, const BCP_vec< T > &y) |
template<class T > | |
bool | operator< (BCP_vec< T > &x, BCP_vec< T > &y) |
template<class T > | |
void | purge_ptr_vector (BCP_vec< T * > &pvec, typename BCP_vec< T * >::iterator first, typename BCP_vec< T * >::iterator last) |
This function purges the entries [first,last) from the vector of pointers pvec . More... | |
template<class T > | |
void | purge_ptr_vector (BCP_vec< T * > &pvec) |
This function purges all the entries from the vector of pointers pvec . More... | |
template<class T > | |
void | purge_ptr_vector_by_index (BCP_vec< T * > &pvec, typename BCP_vec< int >::const_iterator first, typename BCP_vec< int >::const_iterator last) |
This function purges the entries indexed by [first,last) from the vector of pointers pvec . More... | |
template<class T > | |
void | keep_ptr_vector_by_index (BCP_vec< T * > &pvec, typename BCP_vec< int >::const_iterator first, typename BCP_vec< int >::const_iterator last) |
This function keeps only the entries indexed by [first,last) from the vector of pointers pvec . More... | |
Definition at line 248 of file BCP_vector.hpp.
Definition at line 254 of file BCP_vector.hpp.
void purge_ptr_vector | ( | BCP_vec< T * > & | pvec, |
typename BCP_vec< T * >::iterator | first, | ||
typename BCP_vec< T * >::iterator | last | ||
) |
This function purges the entries [first,last)
from the vector of pointers pvec
.
Since these entries are pointers, first operator delete
is invoked for each of them, then the pointers are erased from the vector.
Definition at line 266 of file BCP_vector.hpp.
This function purges all the entries from the vector of pointers pvec
.
Since these entries are pointers, first operator delete
is invoked for each of them, then the pointers are erased from the vector.
Definition at line 285 of file BCP_vector.hpp.
void purge_ptr_vector_by_index | ( | BCP_vec< T * > & | pvec, |
typename BCP_vec< int >::const_iterator | first, | ||
typename BCP_vec< int >::const_iterator | last | ||
) |
This function purges the entries indexed by [first,last)
from the vector of pointers pvec
.
Since these entries are pointers, first operator delete
is invoked for each of them, then the pointers are erased from the vector.
Definition at line 297 of file BCP_vector.hpp.
void keep_ptr_vector_by_index | ( | BCP_vec< T * > & | pvec, |
typename BCP_vec< int >::const_iterator | first, | ||
typename BCP_vec< int >::const_iterator | last | ||
) |
This function keeps only the entries indexed by [first,last)
from the vector of pointers pvec
.
No sanity check is performed.
Definition at line 316 of file BCP_vector.hpp.