Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Loading...
Searching...
No Matches
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.
 
int getBucket (const edge &e) override
 Returns bucket of edge e.
 
- Public Member Functions inherited from ogdf::BucketFunc< edge >
virtual ~BucketFunc ()
 

Private Attributes

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

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 371 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 380 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 383 of file EdgeArray.h.

Member Data Documentation

◆ m_pEdgeArray

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

Pointer to edge array.

Definition at line 372 of file EdgeArray.h.


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