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

Detailed description

template< typename IndexType>
struct nvbio::OffsetXform< IndexType >

A utility functor to apply an offset to a given a stream

Definition at line 80 of file utils.h.

#include <utils.h>

Public Types

typedef IndexType index_type
 
typedef index_type argument_type
 
typedef index_type result_type
 

Public Methods

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE OffsetXform ()
 
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE OffsetXform (const index_type n)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE index_type 
operator() (const index_type i) const
 

Public Members

const index_type pos
 

Member Typedef Documentation

template<typename IndexType>
typedef index_type nvbio::OffsetXform< IndexType >::argument_type

Definition at line 83 of file utils.h.

template<typename IndexType>
typedef IndexType nvbio::OffsetXform< IndexType >::index_type

Definition at line 82 of file utils.h.

template<typename IndexType>
typedef index_type nvbio::OffsetXform< IndexType >::result_type

Definition at line 84 of file utils.h.

Constructor & Destructor Documentation

template<typename IndexType>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::OffsetXform< IndexType >::OffsetXform ( )
inline

empty constructor

Definition at line 89 of file utils.h.

template<typename IndexType>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::OffsetXform< IndexType >::OffsetXform ( const index_type  n)
inline

constructor

Definition at line 94 of file utils.h.

Member Function Documentation

template<typename IndexType>
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE index_type nvbio::OffsetXform< IndexType >::operator() ( const index_type  i) const
inline

functor operator

Definition at line 99 of file utils.h.

Member Data Documentation

template<typename IndexType>
const index_type nvbio::OffsetXform< IndexType >::pos

Definition at line 101 of file utils.h.


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