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

#include <DistObject.hpp>

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

Public Member Functions

 DistEdge (DistNhbdT &nhbd)
 
virtual ~DistEdge ()
 
DistNhbdTnhbd ()
 
virtual DataT * eData (const typename DistNhbdT::Vertex &v1, const typename DistNhbdT::Vertex &v2)
 
thrust::device_vector< DataT > * data ()
 
void alloc ()
 
void write ()
 
void read ()
 

Public Attributes

DistNhbdT_nhbd
 
bool _hasHostData
 
thrust::device_vector< DataT > * _data
 

Protected Member Functions

 DistEdge (DistNhbdT &nhbd, bool hasData)
 

Detailed Description

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

Distributed edge object. This class mirrors edge 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 edges themselves or fields in the attributes system.

Definition at line 273 of file DistObject.hpp.

Constructor & Destructor Documentation

◆ DistEdge() [1/2]

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

Definition at line 282 of file DistObject.hpp.

◆ DistEdge() [2/2]

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

Definition at line 286 of file DistObject.hpp.

◆ ~DistEdge()

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

Definition at line 290 of file DistObject.hpp.

Member Function Documentation

◆ alloc()

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

Definition at line 306 of file DistObject.hpp.

◆ data()

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

Definition at line 299 of file DistObject.hpp.

◆ eData()

template<typename DistNhbdT , typename DataT >
virtual DataT* mgx::DistEdge< DistNhbdT, DataT >::eData ( const typename DistNhbdT::Vertex &  v1,
const typename DistNhbdT::Vertex &  v2 
)
inlinevirtual

◆ nhbd()

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

Definition at line 293 of file DistObject.hpp.

◆ read()

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

Definition at line 345 of file DistObject.hpp.

◆ write()

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

Definition at line 320 of file DistObject.hpp.

Member Data Documentation

◆ _data

template<typename DistNhbdT , typename DataT >
thrust::device_vector<DataT>* mgx::DistEdge< DistNhbdT, DataT >::_data

Definition at line 278 of file DistObject.hpp.

◆ _hasHostData

template<typename DistNhbdT , typename DataT >
bool mgx::DistEdge< DistNhbdT, DataT >::_hasHostData

Definition at line 277 of file DistObject.hpp.

◆ _nhbd

template<typename DistNhbdT , typename DataT >
DistNhbdT& mgx::DistEdge< DistNhbdT, DataT >::_nhbd

Definition at line 276 of file DistObject.hpp.


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