Tulip 6.1.0
Large graphs analysis and drawing
Loading...
Searching...
No Matches
tlp::AbstractProperty< Tnode, Tedge, Tprop >::edgeValueRef Class Reference

#include <AbstractProperty.h>

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

Public Member Functions

constexpr edgeValueRef (AbstractProperty *prop, edge e)
tlp::StoredType< typenameTedge::RealType >::ReturnedConstValue getValue () const
 operator typename tlp::StoredType< typename Tedge::RealType >::ReturnedConstValue ()
edgeValueRef & operator= (const edgeValueRef &ref) noexcept
edgeValueRef & operator= (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.

Constructor & Destructor Documentation

◆ edgeValueRef()

template<class Tnode, class Tedge, class Tprop = PropertyInterface>
tlp::AbstractProperty< Tnode, Tedge, Tprop >::edgeValueRef::edgeValueRef ( AbstractProperty * prop,
edge e )
inlineconstexpr

Definition at line 208 of file AbstractProperty.h.

Member Function Documentation

◆ getValue()

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

Definition at line 210 of file AbstractProperty.h.

◆ 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.

◆ 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.

Member Data Documentation

◆ _e

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

Definition at line 205 of file AbstractProperty.h.

◆ _prop

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

Definition at line 204 of file AbstractProperty.h.