libgrape-lite
A C++ library for parallel graph processing
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Private Attributes | List of all members
grape::cuda::VertexArray< T, VID_T > Class Template Reference
Inheritance diagram for grape::cuda::VertexArray< T, VID_T >:
grape::Array< T, grape::Allocator< T > >

Public Member Functions

 VertexArray (const VertexRange< VID_T > &range)
 
 VertexArray (const VertexRange< VID_T > &range, const T &value)
 
void Init (const VertexRange< VID_T > &range)
 
void Init (const VertexRange< VID_T > &range, const T &value)
 
void SetValue (VertexRange< VID_T > &range, const T &value)
 
void SetValue (const T &value)
 
T & operator[] (Vertex< VID_T > &loc)
 
const T & operator[] (const Vertex< VID_T > &loc) const
 
void resize (size_t size)
 
void Swap (VertexArray &rhs)
 
void Clear ()
 
const VertexRange< VID_T > & GetVertexRange () const
 
dev::VertexArray< T, VID_T > DeviceObject ()
 
void H2D ()
 
void H2D (const Stream &stream)
 
void D2H ()
 
void D2H (const Stream &stream)
 
- Public Member Functions inherited from grape::Array< T, grape::Allocator< T > >
allocator_type get_allocator () const noexcept
 
 Array (const allocator_type &__a) noexcept
 
 Array (size_type __n, const allocator_type &__a=allocator_type())
 
 Array (size_type __n, const value_type &__x, const allocator_type &__a=allocator_type())
 
 Array (const Array &__x)
 
 Array (Array &&__x) noexcept
 
 Array (const Array &__x, const allocator_type &__a)
 
 Array (Array &&__x, const allocator_type &__a)
 
Arrayoperator= (const Array &__x)
 
Arrayoperator= (Array &&__x)
 
size_type size () const noexcept
 
void resize (size_type __new_size)
 
void resize (size_type __new_size, const value_type &__x)
 
bool empty () const noexcept
 
reference operator[] (size_type __n) noexcept
 
const_reference operator[] (size_type __n) const noexcept
 
reference at (size_type __n) noexcept
 
const_reference at (size_type __n) const noexcept
 
pointer data () noexcept
 
const_pointer data () const noexcept
 
iterator begin () noexcept
 
const_iterator begin () const noexcept
 
iterator end () noexcept
 
const_iterator end () const noexcept
 
void swap (Array &__x) noexcept
 
void clear () noexcept
 

Private Types

using Base = grape::Array< T, grape::Allocator< T > >
 

Private Attributes

VertexRange< VID_T > range_
 
T * fake_start_
 
thrust::device_vector< T > d_data_
 

Additional Inherited Members

- Public Types inherited from grape::Array< T, grape::Allocator< T > >
using pointer = T *
 
using const_pointer = const T *
 
using reference = T &
 
using const_reference = const T &
 
using size_type = size_t
 
using value_type = T
 
using allocator_type = grape::Allocator< T >
 
using iterator = pointer
 
using const_iterator = const_pointer
 
using __alloc_traits = std::allocator_traits< grape::Allocator< T > >