Fermat
Public Types | Public Methods | List of all members
cugar::vector< device_tag, T, Alloc > Struct Template Reference

Detailed description

template<typename T, typename Alloc>
struct cugar::vector< device_tag, T, Alloc >

a dynamic device vector class

#include <vector.h>

Inheritance diagram for cugar::vector< device_tag, T, Alloc >:

Public Types

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

Public Methods

 vector (const size_t size=0, const T val=T())
 
template<typename OtherAlloc >
 vector (const thrust::host_vector< T, OtherAlloc > &v)
 
template<typename OtherAlloc >
 vector (const thrust::device_vector< T, OtherAlloc > &v)
 
template<typename OtherAlloc >
vector< device_tag, T, Alloc > & operator= (const thrust::host_vector< T, OtherAlloc > &v)
 
template<typename OtherAlloc >
vector< device_tag, T, Alloc > & operator= (const thrust::device_vector< T, OtherAlloc > &v)
 
 operator plain_view_type ()
 
 operator const_plain_view_type () const
 
void expand (const size_t sz)
 
T & last ()
 
const T & last () const
 

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