Fermat
|
Wrapper class to create a "vector"-like container on top of a generic base iterator. See VectorWrapperExampleSection.
Iterator | base iterator type |
#include <vector_view.h>
Public Types | |
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 |
Public Methods | |
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 () |
Public Members | |
IndexType | m_size |
Iterator | m_vec |
|
inline |
constructor
|
inline |
constructor
|
inline |
return reference to back
|
inline |
return reference to back
|
inline |
return the base iterator
|
inline |
return begin iterator
|
inline |
return begin iterator
|
inline |
clear
|
inline |
return true iff size is null
|
inline |
return end iterator
|
inline |
return end iterator
|
inline |
return reference to front
|
inline |
return reference to front
|
inline |
return vector size
|
inline |
automatic conversion to the basic iterator type
|
inline |
dereference operator
|
inline |
dereference operator
|
inline |
const indexing operator
|
inline |
indexing operator
|
inline |
pop back
|
inline |
push back
|
inline |
resize the vector
|
inline |
return vector size