libgrape-lite
A C++ library for parallel graph processing
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
grape::cuda::ArrayView< T > Class Template Reference

Public Member Functions

 ArrayView (const thrust::device_vector< T > &vec)
 
 ArrayView (const pinned_vector< T > &vec)
 
DEV_HOST ArrayView (T *data, size_t size)
 
DEV_HOST_INLINE T * data ()
 
DEV_HOST_INLINE const T * data () const
 
DEV_HOST_INLINE size_t size () const
 
DEV_HOST_INLINE bool empty () const
 
DEV_INLINE T & operator[] (size_t i)
 
DEV_INLINE const T & operator[] (size_t i) const
 
DEV_INLINE void Swap (ArrayView< T > &rhs)
 
DEV_INLINE T * begin ()
 
DEV_INLINE T * end ()
 
DEV_INLINE const T * begin () const
 
DEV_INLINE const T * end () const
 

Private Attributes

T * data_ {}
 
size_t size_ {}