NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Enumerations | Functions
alphabet.h File Reference
#include <nvbio/basic/types.h>
#include <nvbio/basic/transform_iterator.h>
#include <nvbio/strings/alphabet_inl.h>

Go to the source code of this file.

Classes

struct  nvbio::AlphabetTraits< ALPHABET >
 
struct  nvbio::AlphabetTraits< DNA >
 
struct  nvbio::AlphabetTraits< DNA_N >
 
struct  nvbio::AlphabetTraits< DNA_IUPAC >
 
struct  nvbio::AlphabetTraits< PROTEIN >
 
struct  nvbio::AlphabetTraits< RNA >
 
struct  nvbio::AlphabetTraits< RNA_N >
 
struct  nvbio::AlphabetTraits< ASCII >
 
struct  nvbio::to_char_functor< ALPHABET >
 
struct  nvbio::from_char_functor< ALPHABET >
 

Namespaces

 nvbio
 Define a vector_view POD type and plain_view() for std::vector.
 

Enumerations

enum  nvbio::Alphabet {
  nvbio::DNA = 0u, nvbio::DNA_N = 1u, nvbio::DNA_IUPAC = 2u, nvbio::PROTEIN = 3u,
  nvbio::RNA = 4u, nvbio::RNA_N = 5u, nvbio::ASCII = 6u
}
 

Functions

NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE uint32 
nvbio::bits_per_symbol (const Alphabet alphabet)
 
template<Alphabet ALPHABET>
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE char 
nvbio::to_char (const uint8 c)
 
template<Alphabet ALPHABET>
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE uint8 
nvbio::from_char (const char c)
 
template<Alphabet ALPHABET, typename SymbolIterator >
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE void 
nvbio::to_string (const SymbolIterator begin, const uint32 n, char *string)
 
template<Alphabet ALPHABET, typename SymbolIterator >
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE void 
nvbio::to_string (const SymbolIterator begin, const SymbolIterator end, char *string)
 
template<Alphabet ALPHABET, typename SymbolIterator >
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE void 
nvbio::from_string (const char *begin, const char *end, SymbolIterator symbols)
 
template<Alphabet ALPHABET, typename SymbolIterator >
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE void 
nvbio::from_string (const char *begin, SymbolIterator symbols)
 
template<Alphabet ALPHABET, typename Iterator >
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE
transform_iterator< Iterator,
to_char_functor< ALPHABET > > 
nvbio::to_string (Iterator it)
 
template<Alphabet ALPHABET, typename Iterator >
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE
transform_iterator< Iterator,
from_char_functor< ALPHABET > > 
nvbio::from_string (Iterator it)