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

Detailed description

template< typename T>
struct nvbio::vector< device_tag, T >

a dynamic device vector class

Definition at line 113 of file vector.h.

#include <vector.h>

Inheritance diagram for nvbio::vector< device_tag, T >:

Public Types

typedef device_tag system_tag
 
typedef thrust::device_vector< T > base_type
 
typedef base_type::const_iterator const_iterator
 
typedef base_type::iterator iterator
 
typedef base_type::value_type value_type
 
typedef nvbio::vector_view< T
*, uint64
plain_view_type
 
typedef nvbio::vector_view
< const T *, uint64
const_plain_view_type
 

Public Methods

 vector (const size_t size=0, const T val=T())
 
 vector (const thrust::host_vector< T > &v)
 
 vector (const thrust::device_vector< T > &v)
 
vector< device_tag, T > & operator= (const thrust::host_vector< T > &v)
 
vector< device_tag, T > & operator= (const thrust::device_vector< T > &v)
 
 operator plain_view_type ()
 
 operator const_plain_view_type () const
 

Member Typedef Documentation

template<typename T >
typedef thrust::device_vector<T> nvbio::vector< device_tag, T >::base_type

Definition at line 117 of file vector.h.

template<typename T >
typedef base_type::const_iterator nvbio::vector< device_tag, T >::const_iterator

Definition at line 118 of file vector.h.

Definition at line 123 of file vector.h.

template<typename T >
typedef base_type::iterator nvbio::vector< device_tag, T >::iterator

Definition at line 119 of file vector.h.

template<typename T >
typedef nvbio::vector_view<T*,uint64> nvbio::vector< device_tag, T >::plain_view_type

Definition at line 122 of file vector.h.

template<typename T >
typedef device_tag nvbio::vector< device_tag, T >::system_tag

Definition at line 115 of file vector.h.

template<typename T >
typedef base_type::value_type nvbio::vector< device_tag, T >::value_type

Definition at line 120 of file vector.h.

Constructor & Destructor Documentation

template<typename T >
nvbio::vector< device_tag, T >::vector ( const size_t  size = 0,
const val = T() 
)
inline

constructor

Definition at line 127 of file vector.h.

template<typename T >
nvbio::vector< device_tag, T >::vector ( const thrust::host_vector< T > &  v)
inline

Definition at line 128 of file vector.h.

template<typename T >
nvbio::vector< device_tag, T >::vector ( const thrust::device_vector< T > &  v)
inline

Definition at line 129 of file vector.h.

Member Function Documentation

template<typename T >
nvbio::vector< device_tag, T >::operator const_plain_view_type ( ) const
inline

conversion to const_plain_view_type

Definition at line 140 of file vector.h.

template<typename T >
nvbio::vector< device_tag, T >::operator plain_view_type ( )
inline

conversion to plain_view_type

Definition at line 136 of file vector.h.

template<typename T >
vector<device_tag,T>& nvbio::vector< device_tag, T >::operator= ( const thrust::host_vector< T > &  v)
inline

Definition at line 131 of file vector.h.

template<typename T >
vector<device_tag,T>& nvbio::vector< device_tag, T >::operator= ( const thrust::device_vector< T > &  v)
inline

Definition at line 132 of file vector.h.


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