Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

EdgeArray.h
Go to the documentation of this file.
1 
32 #pragma once
33 
34 #include <ogdf/basic/Graph.h>
35 #include <ogdf/basic/basic.h>
36 
37 namespace ogdf {
39 
43 class OGDF_EXPORT BucketEdgeArray : public BucketFunc<edge> {
45 
46 public:
48 
52  explicit BucketEdgeArray(const EdgeArray<int>& edgeArray) : m_pEdgeArray(&edgeArray) { }
53 
55  int getBucket(const edge& e) override { return (*m_pEdgeArray)[e]; }
56 };
57 }
ogdf
The namespace for all OGDF objects.
Definition: multilevelmixer.cpp:39
Graph.h
Includes declaration of graph class.
ogdf::BucketEdgeArray::BucketEdgeArray
BucketEdgeArray(const EdgeArray< int > &edgeArray)
Constructs a bucket function.
Definition: EdgeArray.h:52
ogdf::BucketFunc
Abstract base class for bucket functions.
Definition: basic.h:257
ogdf::BucketEdgeArray::getBucket
int getBucket(const edge &e) override
Returns bucket of edge e.
Definition: EdgeArray.h:55
ogdf::BucketEdgeArray::m_pEdgeArray
const EdgeArray< int > * m_pEdgeArray
Pointer to edge array.
Definition: EdgeArray.h:44
basic.h
Basic declarations, included by all source files.
OGDF_EXPORT
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition: config.h:101
ogdf::BucketEdgeArray
Bucket function for edges.
Definition: EdgeArray.h:43
ogdf::EdgeElement
Class for the representation of edges.
Definition: Graph_d.h:363
ogdf::internal::EdgeArrayBase2
RegisteredArray for edges of a graph, specialized for EdgeArray<edge>.
Definition: Graph_d.h:716