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

As Weight_Of, and throws std::runtime_error at the call whose number, counted from 1 through a shared counter, is throw_at. More...

#include <graph_filter_catalog.H>

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

Public Member Functions

T operator() (typename GT::Arc *a) const
 
T operator() (typename GT::Arc *a, typename GT::Node *) const
 
- Public Member Functions inherited from graph_filters::Weight_Of< GT, T >
Distance_Type operator() (typename GT::Arc *a) const
 
Distance_Type operator() (typename GT::Arc *a, typename GT::Node *) const
 

Public Attributes

size_t * calls = nullptr
 
size_t throw_at = 0
 
- Public Attributes inherited from graph_filters::Weight_Of< GT, T >
const std::vector< T > * weights = nullptr
 

Additional Inherited Members

- Public Types inherited from graph_filters::Weight_Of< GT, T >
using Distance_Type = T
 
- Static Public Attributes inherited from graph_filters::Weight_Of< GT, T >
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::Throwing_Weight< GT, T >

As Weight_Of, and throws std::runtime_error at the call whose number, counted from 1 through a shared counter, is throw_at.

Definition at line 259 of file graph_filter_catalog.H.

Member Function Documentation

◆ operator()() [1/2]

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

◆ operator()() [2/2]

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

Definition at line 271 of file graph_filter_catalog.H.

Member Data Documentation

◆ calls

template<class GT , typename T = long long>
size_t* graph_filters::Throwing_Weight< GT, T >::calls = nullptr

◆ throw_at

template<class GT , typename T = long long>
size_t graph_filters::Throwing_Weight< GT, T >::throw_at = 0

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