|
RAJA
RAJA provides a collection of platform portability abstractions for C++ HPC applications.
|
Class template that provides a simple vector implementation sufficient to insulate RAJA entities from the STL. More...
#include <RAJAVec.hpp>
Public Types | |
| using | value_type = T |
| using | allocator_type = Allocator |
| using | size_type = std::size_t |
| using | difference_type = std::ptrdiff_t |
| using | reference = value_type & |
| using | const_reference = const value_type & |
| using | pointer = typename allocator_traits_type::pointer |
| using | const_pointer = typename allocator_traits_type::const_pointer |
| using | iterator = value_type * |
| using | const_iterator = const value_type * |
Class template that provides a simple vector implementation sufficient to insulate RAJA entities from the STL.
Note: This class has limited functionality sufficient to support its usage for RAJA TypedIndexSet operations. However, it does provide a push_front method that is not found in the STL vector container.
Template type should support standard semantics for copy, swap, etc.
Note that this class has no exception safety guarantees.
| using RAJA::RAJAVec< T, Allocator >::value_type = T |
| using RAJA::RAJAVec< T, Allocator >::allocator_type = Allocator |
| using RAJA::RAJAVec< T, Allocator >::size_type = std::size_t |
| using RAJA::RAJAVec< T, Allocator >::difference_type = std::ptrdiff_t |
| using RAJA::RAJAVec< T, Allocator >::reference = value_type& |
| using RAJA::RAJAVec< T, Allocator >::const_reference = const value_type& |
| using RAJA::RAJAVec< T, Allocator >::pointer = typename allocator_traits_type::pointer |
| using RAJA::RAJAVec< T, Allocator >::const_pointer = typename allocator_traits_type::const_pointer |
| using RAJA::RAJAVec< T, Allocator >::iterator = value_type* |
| using RAJA::RAJAVec< T, Allocator >::const_iterator = const value_type* |
|
inlineexplicit |
Construct empty vector with given capacity.
|
inline |
Copy ctor for vector.
|
inline |
Move ctor for vector.
|
inline |
Destroy vector and its data.
|
inline |
Copy-assignment operator for vector.
|
inline |
Move-assignment operator for vector.
|
inline |
Swap function for copy-and-swap idiom.
|
inline |
Get a pointer to the beginning of the contiguous vector
|
inline |
|
inline |
Get an iterator to the end.
|
inline |
|
inline |
|
inline |
Get an iterator to the beginning.
|
inline |
|
inline |
|
inline |
Return true if vector has size zero; false otherwise.
|
inline |
Return current size of vector.
|
inline |
Return current capacity of vector.
|
inline |
Get the allocator used by the container.
|
inline |
Grow the capacity of the vector.
|
inline |
Shrink the capacity of the vector to the current size.
|
inline |
Empty vector of all data.
|
inline |
Change the size of the vector, default initializing any new items, destroying any extra items.
|
inline |
Change the size of the vector, initializing any new items with new_value, destroying any extra items.
|
inline |
Bracket operator accessor.
|
inline |
|
inline |
Access the last item of the vector.
|
inline |
|
inline |
Access the last item of the vector.
|
inline |
|
inline |
Add item to front end of vector. Note that this operation is unique to this class; it is not part of the C++ standard library vector interface.
|
inline |
|
inline |
|
inline |
Add item to back end of vector.
|
inline |
|
inline |
|
inline |
Remove the last item of the vector.