53 #ifndef vtkDistributedGraphHelper_h 54 #define vtkDistributedGraphHelper_h 59 class vtkDistributedGraphHelperInternals;
86 vtkIdType GetVertexOwner(vtkIdType v)
const;
91 vtkIdType GetVertexIndex(vtkIdType v)
const;
96 vtkIdType GetEdgeOwner(vtkIdType e_id)
const;
102 vtkIdType GetEdgeIndex(vtkIdType e_id)
const;
107 vtkIdType MakeDistributedId(
int owner, vtkIdType local);
122 vtkIdType GetVertexOwnerByPedigreeId(
const vtkVariant& pedigreeId);
132 virtual void Synchronize() = 0;
165 vtkIdType *vertex) = 0;
171 virtual void AddVertexInternal(
const vtkVariant& pedigreeId, vtkIdType *vertex) = 0;
179 virtual void AddEdgeInternal(vtkIdType u, vtkIdType v,
bool directed,
191 virtual void AddEdgeInternal(
const vtkVariant& uPedigreeId, vtkIdType v,
203 virtual void AddEdgeInternal(vtkIdType u,
const vtkVariant& vPedigreeId,
216 virtual void AddEdgeInternal(
const vtkVariant& uPedigreeId,
226 virtual vtkIdType FindVertex(
const vtkVariant& pedigreeId) = 0;
234 FindEdgeSourceAndTarget(vtkIdType
id,
241 virtual void AttachToGraph(
vtkGraph *graph);
286 #endif // vtkDistributedGraphHelper_h helper for the vtkGraph class that allows the graph to be distributed across multiple memory spaces.
int indexBits
Number of bits required to represent {vertex,edge} index.
abstract base class for most VTK objects
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
An array holding vtkVariants.
vtkIdType highBitShiftMask
Bit mask to speed up decoding graph info {owner,index}.
A atomic type representing the union of many types.
Base class for graph data types.
vtkIdType signBitMask
Bit mask to speed up decoding graph info {owner,index}.
vtkVertexPedigreeIdDistribution VertexDistribution
The distribution function used to map a pedigree ID to a processor.
a simple class to control print indentation
void * VertexDistributionUserData
Extra, user-specified data to be passed into the distribution function.
vtkIdType(* vtkVertexPedigreeIdDistribution)(const vtkVariant &pedigreeId, void *userData)
int procBits
Number of bits required to represent # of processors (owner)
vtkGraph * Graph
The graph to which this distributed graph helper is already attached.
boost::graph_traits< vtkGraph * >::vertex_descriptor source(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
#define VTKCOMMONDATAMODEL_EXPORT