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

Detailed description

template< typename word_type>
struct nvbio::leading_bits< word_type >

A functor to take the n leading bits of a word

Definition at line 979 of file numbers.h.

#include <numbers.h>

Public Types

typedef word_type argument_type
 
typedef word_type result_type
 

Public Methods

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE leading_bits (const uint32 n)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE result_type 
operator() (const argument_type op) const
 

Public Members

const uint32 n_bits
 

Static Public Members

static const uint32 BITS = 8u*sizeof(word_type)
 

Member Typedef Documentation

template<typename word_type >
typedef word_type nvbio::leading_bits< word_type >::argument_type

Definition at line 981 of file numbers.h.

template<typename word_type >
typedef word_type nvbio::leading_bits< word_type >::result_type

Definition at line 982 of file numbers.h.

Constructor & Destructor Documentation

template<typename word_type >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE nvbio::leading_bits< word_type >::leading_bits ( const uint32  n)
inline

constructor

Definition at line 989 of file numbers.h.

Member Function Documentation

template<typename word_type >
NVBIO_FORCEINLINE NVBIO_HOST_DEVICE result_type nvbio::leading_bits< word_type >::operator() ( const argument_type  op) const
inline

functor implementation

Definition at line 994 of file numbers.h.

Member Data Documentation

template<typename word_type >
const uint32 nvbio::leading_bits< word_type >::BITS = 8u*sizeof(word_type)
static

Definition at line 984 of file numbers.h.

template<typename word_type >
const uint32 nvbio::leading_bits< word_type >::n_bits

Definition at line 996 of file numbers.h.


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