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

Detailed description

template< typename StringSet, typename StringTransform>
struct nvbio::TransformStringSet< StringSet, StringTransform >

A transformed string set

Template Parameters
StringSetthe base string set type
StringTransformthe string transformation, a functor taking StringSet::string_type as input and returning a StringTransform::result_type as output

Definition at line 43 of file string_set_transform.h.

#include <string_set_transform.h>

Public Types

typedef StringSet string_set_type
 
typedef StringTransform transform_type
 
typedef transform_type::result_type string_type
 
typedef string_type::symbol_type symbol_type
 
typedef StringSet::system_tag system_tag
 
typedef StringSetIterator
< TransformedStringSet
< StringSet, StringTransform > > 
iterator
 
typedef StringSetIterator
< TransformedStringSet
< StringSet, StringTransform > > 
const_iterator
 

Public Methods

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE TransformStringSet ()
 
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE TransformStringSet (const StringSet string_set, const StringTransform transform)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE uint32 
size () const
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE string_type 
operator[] (const uint32 i) const
 
const_iterator begin () const
 
const_iterator end () const
 
iterator begin ()
 
iterator end ()
 

Related Functions

(Note that these are not member functions.)

template<typename StringSet , typename StringTransform >
TransformStringSet< StringSet,
StringTransform > 
make_transform_string_set (const StringSet string_set, const StringTransform transform)
 

Member Typedef Documentation

template<typename StringSet, typename StringTransform>
typedef StringSetIterator< TransformedStringSet<StringSet,StringTransform> > nvbio::TransformStringSet< StringSet, StringTransform >::const_iterator

Definition at line 52 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
typedef StringSetIterator< TransformedStringSet<StringSet,StringTransform> > nvbio::TransformStringSet< StringSet, StringTransform >::iterator

Definition at line 51 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
typedef StringSet nvbio::TransformStringSet< StringSet, StringTransform >::string_set_type

Definition at line 45 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
typedef transform_type::result_type nvbio::TransformStringSet< StringSet, StringTransform >::string_type

Definition at line 47 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
typedef string_type::symbol_type nvbio::TransformStringSet< StringSet, StringTransform >::symbol_type

Definition at line 48 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
typedef StringSet::system_tag nvbio::TransformStringSet< StringSet, StringTransform >::system_tag

Definition at line 49 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
typedef StringTransform nvbio::TransformStringSet< StringSet, StringTransform >::transform_type

Definition at line 46 of file string_set_transform.h.

Constructor & Destructor Documentation

template<typename StringSet, typename StringTransform>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::TransformStringSet< StringSet, StringTransform >::TransformStringSet ( )
inline

default constructor

Definition at line 57 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::TransformStringSet< StringSet, StringTransform >::TransformStringSet ( const StringSet  string_set,
const StringTransform  transform 
)
inline

constructor

Parameters
string_setthe base string set
transformthe string transfrom

Definition at line 65 of file string_set_transform.h.

Member Function Documentation

template<typename StringSet, typename StringTransform>
const_iterator nvbio::TransformStringSet< StringSet, StringTransform >::begin ( void  ) const
inline

begin iterator

Definition at line 86 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
iterator nvbio::TransformStringSet< StringSet, StringTransform >::begin ( void  )
inline

begin iterator

Definition at line 94 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
const_iterator nvbio::TransformStringSet< StringSet, StringTransform >::end ( void  ) const
inline

begin iterator

Definition at line 90 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
iterator nvbio::TransformStringSet< StringSet, StringTransform >::end ( void  )
inline

begin iterator

Definition at line 98 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE string_type nvbio::TransformStringSet< StringSet, StringTransform >::operator[] ( const uint32  i) const
inline

indexing operator: access the i-th string

Definition at line 79 of file string_set_transform.h.

template<typename StringSet, typename StringTransform>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE uint32 nvbio::TransformStringSet< StringSet, StringTransform >::size ( void  ) const
inline

set size

Definition at line 74 of file string_set_transform.h.

Friends And Related Function Documentation

template<typename StringSet , typename StringTransform >
TransformStringSet< StringSet, StringTransform > make_transform_string_set ( const StringSet  string_set,
const StringTransform  transform 
)
related

A utility function to make a ConcatenatedStringSet

Parameters
string_setthe base string set
transformthe string transfrom

Definition at line 113 of file string_set_transform.h.


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