Block-Structured AMR Software Framework
amrex::Vector< T, Allocator > Class Template Reference

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

#include <AMReX_Vector.H>

Inheritance diagram for amrex::Vector< T, Allocator >:

Public Member Functions

T & operator[] (size_type i) noexcept
 
const T & operator[] (size_type i) const noexcept
 
T * dataPtr () noexcept
 get access to the underlying data pointer More...
 
const T * dataPtr () const noexcept
 get access to the underlying data pointer More...
 
Long size () const noexcept
 

Detailed Description

template<class T, class Allocator = std::allocator<T>>
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.

Member Function Documentation

◆ dataPtr() [1/2]

template<class T , class Allocator = std::allocator<T>>
const T* amrex::Vector< T, Allocator >::dataPtr ( ) const
inlinenoexcept

get access to the underlying data pointer

◆ dataPtr() [2/2]

template<class T , class Allocator = std::allocator<T>>
T* amrex::Vector< T, Allocator >::dataPtr ( )
inlinenoexcept

get access to the underlying data pointer

◆ operator[]() [1/2]

template<class T , class Allocator = std::allocator<T>>
const T& amrex::Vector< T, Allocator >::operator[] ( size_type  i) const
inlinenoexcept

◆ operator[]() [2/2]

template<class T , class Allocator = std::allocator<T>>
T& amrex::Vector< T, Allocator >::operator[] ( size_type  i)
inlinenoexcept

◆ size()

template<class T , class Allocator = std::allocator<T>>
Long amrex::Vector< T, Allocator >::size ( ) const
inlinenoexcept

The documentation for this class was generated from the following file: