NVBIO
|
A class to prefetch a plain string using a local-memory cache
T | the string symbol type |
CACHE_SIZE | the local-memory cache size, in words |
Definition at line 255 of file prefetcher.h.
#include <prefetcher.h>
Public Types | |
typedef vector_view< const T * > | input_string_type |
typedef vector_view< const T * > | string_type |
Public Methods | |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_type | load (const input_string_type &string) |
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_type | load (const input_string_type &string, const uint2 range) |
Public Members | |
T | cache [CACHE_ITEMS] |
Static Public Members | |
static const uint32 | CACHE_BYTES = CACHE_SIZE * sizeof(uint32) |
static const uint32 | CACHE_ITEMS = CACHE_BYTES / sizeof(T) |
typedef vector_view<const T*> nvbio::StringPrefetcher< vector_view< const T * >, lmem_cache_tag< CACHE_SIZE > >::input_string_type |
Definition at line 262 of file prefetcher.h.
typedef vector_view<const T*> nvbio::StringPrefetcher< vector_view< const T * >, lmem_cache_tag< CACHE_SIZE > >::string_type |
Definition at line 263 of file prefetcher.h.
|
inline |
given a string, prefetch all its content and return a new string object wrapping the cached version
string | input string |
Definition at line 271 of file prefetcher.h.
|
inline |
given a string, prefetch the contents of a substring and return a new string object wrapping the cached version
string | input string |
range | range of the substring to load |
Definition at line 292 of file prefetcher.h.
T nvbio::StringPrefetcher< vector_view< const T * >, lmem_cache_tag< CACHE_SIZE > >::cache[CACHE_ITEMS] |
Definition at line 306 of file prefetcher.h.
|
static |
Definition at line 259 of file prefetcher.h.
|
static |
Definition at line 260 of file prefetcher.h.