Tulip  6.0.0
Large graphs analysis and drawing
tlp::AbstractProperty< Tnode, Tedge, Tprop >::edgeValueRef Class Reference

#include <AbstractProperty.h>

Inherited by tlp::DoubleProperty::edgeValueRef, and tlp::IntegerProperty::edgeValueRef.

+ Collaboration diagram for tlp::AbstractProperty< Tnode, Tedge, Tprop >::edgeValueRef:

Public Member Functions

constexpr edgeValueRef (AbstractProperty *prop, edge e)
 
tlp::StoredType< typename Tedge::RealType >::ReturnedConstValue getValue () const
 
 operator typename tlp::StoredType< typename Tedge::RealType >::ReturnedConstValue ()
 
edgeValueRefoperator= (const edgeValueRef &ref) noexcept
 
edgeValueRefoperator= (typename tlp::StoredType< typename Tedge::RealType >::ReturnedConstValue val) noexcept
 

Protected Attributes

edge _e
 
AbstractProperty_prop
 

Detailed Description

template<class Tnode, class Tedge, class Tprop = PropertyInterface>
class tlp::AbstractProperty< Tnode, Tedge, Tprop >::edgeValueRef

inner class used to overload the operator[] to set an edge value

Definition at line 202 of file AbstractProperty.h.

Member Function Documentation

◆ operator typename tlp::StoredType< typename Tedge::RealType >::ReturnedConstValue()

template<class Tnode , class Tedge , class Tprop = PropertyInterface>
tlp::AbstractProperty< Tnode, Tedge, Tprop >::edgeValueRef::operator typename tlp::StoredType< typename Tedge::RealType >::ReturnedConstValue ( )
inline

overloading of value type conversion operator which allow to write: if (prop[e])

Definition at line 237 of file AbstractProperty.h.

◆ operator=() [1/2]

template<class Tnode , class Tedge , class Tprop = PropertyInterface>
edgeValueRef& tlp::AbstractProperty< Tnode, Tedge, Tprop >::edgeValueRef::operator= ( const edgeValueRef ref)
inlinenoexcept

overloading of operator= to assign an edge value which allow to write: prop1[e1] = prop2[e2]

Definition at line 228 of file AbstractProperty.h.

+ Here is the call graph for this function:

◆ operator=() [2/2]

template<class Tnode , class Tedge , class Tprop = PropertyInterface>
edgeValueRef& tlp::AbstractProperty< Tnode, Tedge, Tprop >::edgeValueRef::operator= ( typename tlp::StoredType< typename Tedge::RealType >::ReturnedConstValue  val)
inlinenoexcept

overloading of operator= to assign an edge value which allow to write: prop[n] = val

Definition at line 219 of file AbstractProperty.h.

+ Here is the call graph for this function: