Aleph-w 7.10.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
graph_filters::Weight_Of< GT, T > Struct Template Reference

The weight of an arc, read by its number from a vector. More...

#include <graph_filter_catalog.H>

Inheritance diagram for graph_filters::Weight_Of< GT, T >:
[legend]
Collaboration diagram for graph_filters::Weight_Of< GT, T >:
[legend]

Public Types

using Distance_Type = T
 

Public Member Functions

Distance_Type operator() (typename GT::Arc *a) const
 
Distance_Type operator() (typename GT::Arc *a, typename GT::Node *) const
 

Public Attributes

const std::vector< T > * weights = nullptr
 

Static Public Attributes

static const Distance_Type Zero_Distance = T()
 
static const Distance_Type Max_Distance = std::numeric_limits<T>::max()
 

Detailed Description

template<class GT, typename T = long long>
struct graph_filters::Weight_Of< GT, T >

The weight of an arc, read by its number from a vector.

Definition at line 220 of file graph_filter_catalog.H.

Member Typedef Documentation

◆ Distance_Type

template<class GT , typename T = long long>
using graph_filters::Weight_Of< GT, T >::Distance_Type = T

Definition at line 222 of file graph_filter_catalog.H.

Member Function Documentation

◆ operator()() [1/2]

template<class GT , typename T = long long>
Distance_Type graph_filters::Weight_Of< GT, T >::operator() ( typename GT::Arc *  a) const
inline

◆ operator()() [2/2]

template<class GT , typename T = long long>
Distance_Type graph_filters::Weight_Of< GT, T >::operator() ( typename GT::Arc *  a,
typename GT::Node *   
) const
inline

Definition at line 234 of file graph_filter_catalog.H.

Member Data Documentation

◆ Max_Distance

template<class GT , typename T >
const T graph_filters::Weight_Of< GT, T >::Max_Distance = std::numeric_limits<T>::max()
static

Definition at line 225 of file graph_filter_catalog.H.

◆ weights

template<class GT , typename T = long long>
const std::vector<T>* graph_filters::Weight_Of< GT, T >::weights = nullptr

◆ Zero_Distance

template<class GT , typename T >
const T graph_filters::Weight_Of< GT, T >::Zero_Distance = T()
static

Definition at line 224 of file graph_filter_catalog.H.


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