/home/coin/svn-release/OptimizationSuite-1.1.0/Bcp/src/include/BCP_vector.hpp File Reference

#include <memory>
#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"
Include dependency graph for BCP_vector.hpp:
This graph shows which files directly or indirectly include this file:

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.
template<class T >
void purge_ptr_vector (BCP_vec< T * > &pvec)
 This function purges all the entries from the vector of pointers pvec.
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.
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.

Function Documentation

template<class T >
bool operator== ( const BCP_vec< T > &  x,
const BCP_vec< T > &  y 
) [inline]

Definition at line 246 of file BCP_vector.hpp.

template<class T >
bool operator< ( BCP_vec< T > &  x,
BCP_vec< T > &  y 
) [inline]

Definition at line 252 of file BCP_vector.hpp.

template<class T >
void purge_ptr_vector ( BCP_vec< T * > &  pvec,
typename BCP_vec< T * >::iterator  first,
typename BCP_vec< T * >::iterator  last 
) [inline]

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 264 of file BCP_vector.hpp.

template<class T >
void purge_ptr_vector ( BCP_vec< T * > &  pvec  )  [inline]

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 283 of file BCP_vector.hpp.

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 
) [inline]

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 295 of file BCP_vector.hpp.

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 
) [inline]

This function keeps only the entries indexed by [first,last) from the vector of pointers pvec.

No sanity check is performed.

Definition at line 314 of file BCP_vector.hpp.


Generated on 15 Mar 2015 for Coin-All by  doxygen 1.6.1