NVBIO
|
A simple class to cache accesses to a stream into a register. For example, this iterator can be useful to wrap the underlying (uint32 or uint4) storage of PackedStream's, so as to avoid repeated accesses to long latency memories.
Definition at line 69 of file cached_iterator.h.
#include <cached_iterator.h>
Public Types | |
typedef std::iterator_traits < InputStream >::value_type | value_type |
typedef std::iterator_traits < InputStream >::reference | reference |
typedef std::iterator_traits < InputStream >::pointer | pointer |
typedef std::iterator_traits < InputStream > ::difference_type | difference_type |
typedef std::random_access_iterator_tag | iterator_category |
Public Methods | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | cached_iterator () |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | cached_iterator (InputStream stream) |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE | ~cached_iterator () |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE value_type & | operator[] (const uint32 i) |
typedef std::iterator_traits<InputStream>::difference_type nvbio::cached_iterator< InputStream >::difference_type |
Definition at line 74 of file cached_iterator.h.
typedef std::random_access_iterator_tag nvbio::cached_iterator< InputStream >::iterator_category |
Definition at line 76 of file cached_iterator.h.
typedef std::iterator_traits<InputStream>::pointer nvbio::cached_iterator< InputStream >::pointer |
Definition at line 73 of file cached_iterator.h.
typedef std::iterator_traits<InputStream>::reference nvbio::cached_iterator< InputStream >::reference |
Definition at line 72 of file cached_iterator.h.
typedef std::iterator_traits<InputStream>::value_type nvbio::cached_iterator< InputStream >::value_type |
Definition at line 71 of file cached_iterator.h.
|
inline |
constructor
Definition at line 80 of file cached_iterator.h.
|
inline |
constructor
Definition at line 85 of file cached_iterator.h.
|
inline |
destructor
Definition at line 90 of file cached_iterator.h.
|
inline |