template<typename Iterator, typename IndexType = uint32>
struct cugar::vector_view< Iterator, IndexType >
Wrapper class to create a "vector"-like container on top of a generic base iterator. See VectorWrapperExampleSection.
- Template Parameters
-
Iterator | base iterator type |
|
typedef Iterator | iterator |
|
typedef Iterator | const_iterator |
|
typedef iterator_traits< Iterator >::forward_iterator | forward_iterator |
|
typedef iterator_traits< Iterator >::value_type | value_type |
|
typedef iterator_traits< Iterator >::reference | reference |
|
typedef to_const< reference >::type | const_reference |
|
typedef iterator_traits< Iterator >::pointer | pointer |
|
typedef IndexType | size_type |
|
typedef IndexType | index_type |
|
typedef iterator_traits< Iterator >::difference_type | difference_type |
|
typedef std::random_access_iterator_tag | iterator_category |
|
typedef vector_view< Iterator, IndexType > | plain_view_type |
|
typedef vector_view< Iterator, IndexType > | const_plain_view_type |
|
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE | vector_view () |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE | vector_view (const IndexType size, Iterator vec) |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE void | resize (const uint32 sz) |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE void | clear () |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE IndexType | size () const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE IndexType | length () const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE bool | empty () const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const_reference | operator* () const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE reference | operator* () |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const_reference | operator[] (const IndexType i) const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE reference | operator[] (const IndexType i) |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const_reference | front (void) const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE reference | front (void) |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const_reference | back (void) const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE reference | back (void) |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE Iterator | base () const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const_iterator | begin () const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE const_iterator | end () const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE iterator | begin () |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE iterator | end () |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE | operator Iterator () const |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE void | push_back (const_reference val) |
|
CUGAR_FORCEINLINE CUGAR_HOST_DEVICE void | pop_back () |
|