Loading...
Searching...
No Matches
ignition::math::IGNITION_MATH_VERSION_NAMESPACE::graph::EdgeInitializer< E > Struct Template Reference

Used in the Graph constructors for uniform initialization. More...

#include <Edge.hh>

Public Member Functions

 EdgeInitializer (const VertexId_P &_vertices, const E &_data=E(), const double _weight=1)
 Constructor.

Public Attributes

data
 User data.
VertexId_P vertices
 IDs of the vertices.
double weight = 1
 The weight (cost) of the edge.

Detailed Description

template<typename E>
struct ignition::math::IGNITION_MATH_VERSION_NAMESPACE::graph::EdgeInitializer< E >

Used in the Graph constructors for uniform initialization.

Constructor & Destructor Documentation

◆ EdgeInitializer()

template<typename E>
ignition::math::IGNITION_MATH_VERSION_NAMESPACE::graph::EdgeInitializer< E >::EdgeInitializer ( const VertexId_P & _vertices,
const E & _data = E(),
const double _weight = 1 )
inline

Constructor.

Parameters
[in]_verticesThe vertices of the edge.
[in]_dataThe data stored in the edge.
[in]_weightThe weight (cost) of the edge.

References data, vertices, and weight.

Member Data Documentation

◆ data

User data.

Referenced by EdgeInitializer().

◆ vertices

IDs of the vertices.

Referenced by EdgeInitializer().

◆ weight

The weight (cost) of the edge.

Referenced by EdgeInitializer().


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