Block-Structured AMR Software Framework
AMReX_Vector.H File Reference
#include <AMReX_Config.H>
#include <AMReX_BLassert.H>
#include <AMReX_Extension.H>
#include <AMReX_INT.H>
#include <AMReX_Array.H>
#include <AMReX_TypeTraits.H>
#include <algorithm>
#include <memory>
#include <vector>

Go to the source code of this file.

Classes

class  amrex::Vector< T, Allocator >
 This class is a thin wrapper around std::vector. Unlike vector, Vector::operator[] provides bound checking when compiled with DEBUG=TRUE. More...
 

Namespaces

 amrex
 
 amrex::detail
 

Functions

template<class T , typename = typename T::FABType>
Vector< T * > amrex::GetVecOfPtrs (Vector< T > &a)
 
template<class T >
Vector< T * > amrex::GetVecOfPtrs (const Vector< std::unique_ptr< T > > &a)
 
template<class T , typename = typename T::FABType>
Vector< const T * > amrex::GetVecOfConstPtrs (const Vector< T > &a)
 
template<class T >
Vector< const T * > amrex::GetVecOfConstPtrs (const Vector< std::unique_ptr< T > > &a)
 
template<class T , typename = typename T::FABType>
Vector< const T * > amrex::GetVecOfConstPtrs (const Vector< T * > &a)
 
template<class T >
Vector< Vector< T * > > amrex::GetVecOfVecOfPtrs (const Vector< Vector< std::unique_ptr< T > > > &a)
 
template<class T >
Vector< std::array< T *, AMREX_SPACEDIM > > amrex::GetVecOfArrOfPtrs (const Vector< std::array< std::unique_ptr< T >, AMREX_SPACEDIM > > &a)
 
template<class T >
Vector< std::array< T const *, AMREX_SPACEDIM > > amrex::GetVecOfArrOfPtrsConst (const Vector< std::array< std::unique_ptr< T >, AMREX_SPACEDIM > > &a)
 
template<class T >
Vector< std::array< T const *, AMREX_SPACEDIM > > amrex::GetVecOfArrOfConstPtrs (const Vector< std::array< std::unique_ptr< T >, AMREX_SPACEDIM > > &a)
 
template<class T , std::enable_if_t< IsFabArray< T >::value||IsBaseFab< T >::value, int > = 0>
Vector< std::array< T const *, AMREX_SPACEDIM > > amrex::GetVecOfArrOfConstPtrs (const Vector< std::array< T, AMREX_SPACEDIM > > &a)
 
template<class T , std::enable_if_t< IsFabArray< T >::value||IsBaseFab< T >::value, int > = 0>
Vector< std::array< T *, AMREX_SPACEDIM > > amrex::GetVecOfArrOfPtrs (Vector< std::array< T, AMREX_SPACEDIM > > &a)
 
template<class T >
void amrex::FillNull (Vector< T * > &a)
 
template<class T >
void amrex::FillNull (Vector< std::unique_ptr< T > > &a)
 
template<class T >
void amrex::RemoveDuplicates (Vector< T > &vec)
 
template<class T , class H >
std::size_t amrex::detail::removeDupDoit (Vector< T > &vec, std::size_t start, std::size_t stop)
 
template<class T , class H >
void amrex::RemoveDuplicates (Vector< T > &vec)