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

Detailed description

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

a dynamic host vector class

Definition at line 80 of file vector.h.

#include <vector.h>

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

Public Types

typedef host_tag system_tag
 
typedef thrust::host_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< host_tag, T > & operator= (const thrust::host_vector< T > &v)
 
vector< host_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::host_vector<T> nvbio::vector< host_tag, T >::base_type

Definition at line 84 of file vector.h.

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

Definition at line 85 of file vector.h.

template<typename T >
typedef nvbio::vector_view<const T*,uint64> nvbio::vector< host_tag, T >::const_plain_view_type

Definition at line 90 of file vector.h.

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

Definition at line 86 of file vector.h.

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

Definition at line 89 of file vector.h.

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

Definition at line 82 of file vector.h.

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

Definition at line 87 of file vector.h.

Constructor & Destructor Documentation

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

constructor

Definition at line 94 of file vector.h.

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

Definition at line 95 of file vector.h.

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

Definition at line 96 of file vector.h.

Member Function Documentation

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

conversion to const_plain_view_type

Definition at line 107 of file vector.h.

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

conversion to plain_view_type

Definition at line 103 of file vector.h.

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

Definition at line 98 of file vector.h.

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

Definition at line 99 of file vector.h.


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