NVBIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Namespaces | Macros | Typedefs | Functions
types.h File Reference
#include <nvbio/basic/version.h>
#include <assert.h>
#include <vector_types.h>
#include <vector_functions.h>
#include <thrust/iterator/detail/host_system_tag.h>
#include <thrust/iterator/detail/device_system_tag.h>
#include <thrust/iterator/detail/any_system_tag.h>

Go to the source code of this file.

Classes

struct  nvbio::host_tag
 
struct  nvbio::device_tag
 
struct  nvbio::null_type
 
struct  nvbio::to_const< T >
 
struct  nvbio::to_const< T & >
 
struct  nvbio::to_const< T * >
 
struct  nvbio::to_const< const T & >
 
struct  nvbio::to_const< const T * >
 
struct  nvbio::reference_subtype< T >
 
struct  nvbio::reference_subtype< T * >
 
struct  nvbio::reference_subtype< const T * >
 
struct  nvbio::reference_subtype< null_type >
 
struct  nvbio::device_view_subtype< T >
 
struct  nvbio::device_view_subtype< null_type >
 
struct  nvbio::device_view_subtype< const T * >
 
struct  nvbio::device_view_subtype< T * >
 
struct  nvbio::plain_view_subtype< T >
 
struct  nvbio::plain_view_subtype< const T >
 
struct  nvbio::plain_view_subtype< null_type >
 
struct  nvbio::plain_view_subtype< const T * >
 
struct  nvbio::plain_view_subtype< T * >
 
struct  nvbio::signed_type< T >
 
struct  nvbio::signed_type< uint32 >
 
struct  nvbio::signed_type< uint64 >
 
struct  nvbio::signed_type< int32 >
 
struct  nvbio::signed_type< int64 >
 
struct  nvbio::unsigned_type< T >
 
struct  nvbio::unsigned_type< uint32 >
 
struct  nvbio::unsigned_type< uint64 >
 
struct  nvbio::unsigned_type< int32 >
 
struct  nvbio::unsigned_type< int64 >
 
struct  nvbio::same_type< T1, T2 >
 
struct  nvbio::same_type< T, T >
 
struct  nvbio::if_true< predicate, T, F >
 
struct  nvbio::if_true< true, T, F >
 
struct  nvbio::if_true< false, T, F >
 
struct  nvbio::if_equal< A, B, T, F >
 
struct  nvbio::binary_switch< A, B, N >
 
struct  nvbio::binary_switch< A, B, 0 >
 
union  nvbio::BinaryCast< Out, In >
 

Namespaces

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

Macros

#define NVBIO_HOST_DEVICE
 
#define NVBIO_HOST
 
#define NVBIO_DEVICE
 
#define NVBIO_RESTRICT
 
#define NVBIO_SHARED
 
#define NVBIO_API_CS
 
#define NVBIO_API_SS
 
#define NVBIO_FORCEINLINE   __inline__
 
#define NVBIO_CUDA_DEBUG_STATEMENT(x)
 
#define NVBIO_CUDA_ASSERT(x)
 
#define NVBIO_CUDA_ASSERT_IF(cond, x,...)
 
#define NVBIO_CUDA_DEBUG_ASSERT(x,...)
 
#define NVBIO_CUDA_DEBUG_PRINT(...)
 
#define NVBIO_CUDA_DEBUG_PRINT_IF(cond,...)
 
#define NVBIO_CUDA_DEBUG_SELECT(debug_val, normal_val)   (normal_val)
 
#define NVBIO_CUDA_DEBUG_CHECK_IF(cond, check,...)
 
#define NVBIO_HOST_DEVICE_TEMPLATE
 
#define WINONLY(x)
 
#define NVBIO_VAR_UNUSED
 

Typedefs

typedef unsigned long long nvbio::uint64
 
typedef unsigned int nvbio::uint32
 
typedef unsigned short nvbio::uint16
 
typedef unsigned char nvbio::uint8
 
typedef long long nvbio::int64
 
typedef int nvbio::int32
 
typedef short nvbio::int16
 
typedef signed char nvbio::int8
 

Functions

template<typename A , typename B >
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
nvbio::equal ()
 
template<typename Out , typename In >
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE Out 
nvbio::binary_cast (const In in)
 
template<uint32 C>
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
nvbio::is_pow2 ()
 
template<uint32 N, typename I >
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE I 
nvbio::align (const I a)
 
template<uint32 N, typename I >
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE I 
nvbio::align_down (const I a)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator== (const uint2 op1, const uint2 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator!= (const uint2 op1, const uint2 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator== (const uint3 op1, const uint3 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator!= (const uint3 op1, const uint3 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator== (const uint4 op1, const uint4 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator!= (const uint4 op1, const uint4 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator== (const int2 op1, const int2 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator!= (const int2 op1, const int2 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator== (const int3 op1, const int3 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator!= (const int3 op1, const int3 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator== (const int4 op1, const int4 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator!= (const int4 op1, const int4 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator== (const float2 op1, const float2 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator!= (const float2 op1, const float2 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator== (const float3 op1, const float3 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator!= (const float3 op1, const float3 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator== (const float4 op1, const float4 op2)
 
NVBIO_FORCEINLINE
NVBIO_HOST_DEVICE bool 
operator!= (const float4 op1, const float4 op2)
 

Macro Definition Documentation

#define NVBIO_API_CS

Definition at line 60 of file types.h.

#define NVBIO_API_SS

Definition at line 61 of file types.h.

#define NVBIO_CUDA_ASSERT (   x)

Definition at line 85 of file types.h.

#define NVBIO_CUDA_ASSERT_IF (   cond,
  x,
  ... 
)

Definition at line 86 of file types.h.

#define NVBIO_CUDA_DEBUG_ASSERT (   x,
  ... 
)

Definition at line 87 of file types.h.

#define NVBIO_CUDA_DEBUG_CHECK_IF (   cond,
  check,
  ... 
)

Definition at line 107 of file types.h.

#define NVBIO_CUDA_DEBUG_PRINT (   ...)

Definition at line 95 of file types.h.

#define NVBIO_CUDA_DEBUG_PRINT_IF (   cond,
  ... 
)

Definition at line 96 of file types.h.

#define NVBIO_CUDA_DEBUG_SELECT (   debug_val,
  normal_val 
)    (normal_val)

Definition at line 97 of file types.h.

#define NVBIO_CUDA_DEBUG_STATEMENT (   x)

Definition at line 72 of file types.h.

#define NVBIO_DEVICE

Definition at line 45 of file types.h.

#define NVBIO_FORCEINLINE   __inline__

Definition at line 66 of file types.h.

#define NVBIO_HOST

Definition at line 44 of file types.h.

#define NVBIO_HOST_DEVICE

Definition at line 43 of file types.h.

#define NVBIO_HOST_DEVICE_TEMPLATE

Definition at line 114 of file types.h.

#define NVBIO_RESTRICT

Definition at line 52 of file types.h.

#define NVBIO_SHARED

Definition at line 53 of file types.h.

#define NVBIO_VAR_UNUSED

Definition at line 129 of file types.h.

#define WINONLY (   x)

Definition at line 120 of file types.h.

Function Documentation

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator!= ( const uint2  op1,
const uint2  op2 
)

uint2 operator!=

Definition at line 307 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator!= ( const uint3  op1,
const uint3  op2 
)

uint3 operator!=

Definition at line 317 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator!= ( const uint4  op1,
const uint4  op2 
)

uint4 operator!=

Definition at line 327 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator!= ( const int2  op1,
const int2  op2 
)

int2 operator!=

Definition at line 337 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator!= ( const int3  op1,
const int3  op2 
)

int3 operator!=

Definition at line 347 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator!= ( const int4  op1,
const int4  op2 
)

int4 operator!=

Definition at line 357 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator!= ( const float2  op1,
const float2  op2 
)

float2 operator!=

Definition at line 367 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator!= ( const float3  op1,
const float3  op2 
)

float3 operator!=

Definition at line 377 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator!= ( const float4  op1,
const float4  op2 
)

float4 operator!=

Definition at line 387 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator== ( const uint2  op1,
const uint2  op2 
)

uint2 operator==

Definition at line 302 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator== ( const uint3  op1,
const uint3  op2 
)

uint3 operator==

Definition at line 312 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator== ( const uint4  op1,
const uint4  op2 
)

uint4 operator==

Definition at line 322 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator== ( const int2  op1,
const int2  op2 
)

int2 operator==

Definition at line 332 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator== ( const int3  op1,
const int3  op2 
)

int3 operator==

Definition at line 342 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator== ( const int4  op1,
const int4  op2 
)

int4 operator==

Definition at line 352 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator== ( const float2  op1,
const float2  op2 
)

float2 operator==

Definition at line 362 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator== ( const float3  op1,
const float3  op2 
)

float3 operator==

Definition at line 372 of file types.h.

NVBIO_FORCEINLINE NVBIO_HOST_DEVICE bool operator== ( const float4  op1,
const float4  op2 
)

float4 operator==

Definition at line 382 of file types.h.