NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Methods | List of all members
nvbio::StringPrefetcher< StringType, CacheTag > Struct Template Reference

Detailed description

template< typename StringType, typename CacheTag>
struct nvbio::StringPrefetcher< StringType, CacheTag >

A class to prefetch a string using a given caching strategy

Template Parameters
StringTypethe input string type
CacheTagthe cache type

Definition at line 60 of file prefetcher.h.

#include <prefetcher.h>

Public Types

typedef StringType input_string_type
 
typedef StringType string_type
 

Public Methods

NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE const
string_type
load (const input_string_type &string)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE const
string_type
load (const input_string_type &string, const uint2 range)
 

Member Typedef Documentation

template<typename StringType, typename CacheTag>
typedef StringType nvbio::StringPrefetcher< StringType, CacheTag >::input_string_type

Definition at line 62 of file prefetcher.h.

template<typename StringType, typename CacheTag>
typedef StringType nvbio::StringPrefetcher< StringType, CacheTag >::string_type

Definition at line 63 of file prefetcher.h.

Member Function Documentation

template<typename StringType, typename CacheTag>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE const string_type& nvbio::StringPrefetcher< StringType, CacheTag >::load ( const input_string_type string)
inline

given a string, prefetch all its content and return a new string object wrapping the cached version

Parameters
stringinput string

Definition at line 71 of file prefetcher.h.

template<typename StringType, typename CacheTag>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE const string_type& nvbio::StringPrefetcher< StringType, CacheTag >::load ( const input_string_type string,
const uint2  range 
)
inline

given a string, prefetch the contents of a substring and return a new string object wrapping the cached version

Parameters
stringinput string
rangerange of the substring to load

Definition at line 80 of file prefetcher.h.


The documentation for this struct was generated from the following file: