Open
Graph Drawing
Framework

 v. 2022.02 (Dogwood)
 

ogdf::BucketEdgeArray Class Reference

Bucket function for edges. More...

#include <ogdf/basic/EdgeArray.h>

+ Inheritance diagram for ogdf::BucketEdgeArray:

Public Member Functions

 BucketEdgeArray (const EdgeArray< int > &edgeArray)
 Constructs a bucket function. More...
 
int getBucket (const edge &e) override
 Returns bucket of edge e. More...
 
- Public Member Functions inherited from ogdf::BucketFunc< edge >
virtual ~BucketFunc ()
 

Private Attributes

const EdgeArray< int > * m_pEdgeArray
 Pointer to edge array. More...
 

Detailed Description

Bucket function for edges.

The bucket of an edge is stored in an edge array which is passed by the user at construction; only a pointer is stored to that array.

Definition at line 362 of file EdgeArray.h.

Constructor & Destructor Documentation

◆ BucketEdgeArray()

ogdf::BucketEdgeArray::BucketEdgeArray ( const EdgeArray< int > &  edgeArray)
inlineexplicit

Constructs a bucket function.

Parameters
edgeArraycontains the buckets for the edges. May not be deleted as long as the bucket function is used.

Definition at line 372 of file EdgeArray.h.

Member Function Documentation

◆ getBucket()

int ogdf::BucketEdgeArray::getBucket ( const edge e)
inlineoverridevirtual

Returns bucket of edge e.

Implements ogdf::BucketFunc< edge >.

Definition at line 375 of file EdgeArray.h.

Member Data Documentation

◆ m_pEdgeArray

const EdgeArray<int>* ogdf::BucketEdgeArray::m_pEdgeArray
private

Pointer to edge array.

Definition at line 364 of file EdgeArray.h.


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