MorphoGraphX  2.0-1-227
Public Member Functions | Protected Member Functions | List of all members
mgx::DistVertex< DistNhbdT, DataT > Class Template Reference

#include <DistObject.hpp>

+ Inheritance diagram for mgx::DistVertex< DistNhbdT, DataT >:

Public Member Functions

 DistVertex (DistNhbdT &nhbd)
 
virtual ~DistVertex ()
 
virtual DataT * vData (const typename DistNhbdT::Vertex &)
 
DistNhbdTnhbd ()
 
thrust::device_vector< DataT > * data ()
 
void alloc ()
 
void write ()
 
void read ()
 

Protected Member Functions

 DistVertex (DistNhbdT &nhbd, bool hasData)
 

Detailed Description

template<typename DistNhbdT, typename DataT>
class mgx::DistVertex< DistNhbdT, DataT >

Distributed vertex object. This class mirrors vertex data onto the GPU. Use this class directly if there is no host side data, otherwise use one of the derived classes that associates data to fields within the vertices themselves or fields in the attributes system.

Definition at line 133 of file DistObject.hpp.

Constructor & Destructor Documentation

◆ DistVertex() [1/2]

template<typename DistNhbdT , typename DataT >
mgx::DistVertex< DistNhbdT, DataT >::DistVertex ( DistNhbdT nhbd,
bool  hasData 
)
inlineprotected

Definition at line 141 of file DistObject.hpp.

◆ DistVertex() [2/2]

template<typename DistNhbdT , typename DataT >
mgx::DistVertex< DistNhbdT, DataT >::DistVertex ( DistNhbdT nhbd)
inline

Definition at line 145 of file DistObject.hpp.

◆ ~DistVertex()

template<typename DistNhbdT , typename DataT >
virtual mgx::DistVertex< DistNhbdT, DataT >::~DistVertex ( )
inlinevirtual

Definition at line 148 of file DistObject.hpp.

Member Function Documentation

◆ alloc()

template<typename DistNhbdT , typename DataT >
void mgx::DistVertex< DistNhbdT, DataT >::alloc ( )
inline

Definition at line 164 of file DistObject.hpp.

◆ data()

template<typename DistNhbdT , typename DataT >
thrust::device_vector<DataT>* mgx::DistVertex< DistNhbdT, DataT >::data ( )
inline

Definition at line 157 of file DistObject.hpp.

◆ nhbd()

template<typename DistNhbdT , typename DataT >
DistNhbdT& mgx::DistVertex< DistNhbdT, DataT >::nhbd ( )
inline

Definition at line 154 of file DistObject.hpp.

◆ read()

template<typename DistNhbdT , typename DataT >
void mgx::DistVertex< DistNhbdT, DataT >::read ( )
inline

Definition at line 195 of file DistObject.hpp.

◆ vData()

template<typename DistNhbdT , typename DataT >
virtual DataT* mgx::DistVertex< DistNhbdT, DataT >::vData ( const typename DistNhbdT::Vertex &  )
inlinevirtual

◆ write()

template<typename DistNhbdT , typename DataT >
void mgx::DistVertex< DistNhbdT, DataT >::write ( )
inline

Definition at line 178 of file DistObject.hpp.


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