OpenASIP  2.0
Public Member Functions | List of all members
BoostGraph< GraphNode, GraphEdge >::GraphHashFunctions Class Reference

#include <BoostGraph.hh>

Collaboration diagram for BoostGraph< GraphNode, GraphEdge >::GraphHashFunctions:
Collaboration graph

Public Member Functions

size_t operator() (const GraphNode *node) const
 
size_t operator() (const GraphEdge *edge) const
 

Detailed Description

template<typename GraphNode, typename GraphEdge>
class BoostGraph< GraphNode, GraphEdge >::GraphHashFunctions

Definition at line 211 of file BoostGraph.hh.

Member Function Documentation

◆ operator()() [1/2]

template<typename GraphNode , typename GraphEdge >
size_t BoostGraph< GraphNode, GraphEdge >::GraphHashFunctions::operator() ( const GraphEdge edge) const
inline

Definition at line 217 of file BoostGraph.hh.

217  {
218  int tmp = reinterpret_cast<size_t>(edge);
219  return tmp ^ (tmp >> 16);
220  }

References BoostGraph< GraphNode, GraphEdge >::edge().

Here is the call graph for this function:

◆ operator()() [2/2]

template<typename GraphNode , typename GraphEdge >
size_t BoostGraph< GraphNode, GraphEdge >::GraphHashFunctions::operator() ( const GraphNode node) const
inline

Definition at line 213 of file BoostGraph.hh.

213  {
214  int tmp = reinterpret_cast<size_t>(node);
215  return tmp ^ (tmp >> 16);
216  }

References BoostGraph< GraphNode, GraphEdge >::node().

Here is the call graph for this function:

The documentation for this class was generated from the following file:
BoostGraph::node
Node & node(const int index) const
BoostGraph::edge
virtual Edge & edge(const int index) const