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

#include <AbstractProperty.h>

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

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

Public Member Functions

constexpr nodeValueRef (AbstractProperty *prop, node n)
 
tlp::StoredType< typename Tnode::RealType >::ReturnedConstValue getValue () const
 
 operator typename tlp::StoredType< typename Tnode::RealType >::ReturnedConstValue ()
 
nodeValueRefoperator= (const nodeValueRef &ref) noexcept
 
nodeValueRefoperator= (typename tlp::StoredType< typename Tnode::RealType >::ReturnedConstValue val) noexcept
 

Protected Attributes

node _n
 
AbstractProperty_prop
 

Detailed Description

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

inner class used to overload the operator[] to set a node value

Definition at line 142 of file AbstractProperty.h.

Member Function Documentation

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

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

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

Definition at line 177 of file AbstractProperty.h.

◆ operator=() [1/2]

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

overloading of operator= to assign a node value which allow to write: prop1[n] = prop2[m]

Definition at line 168 of file AbstractProperty.h.

+ Here is the call graph for this function:

◆ operator=() [2/2]

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

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

Definition at line 159 of file AbstractProperty.h.

+ Here is the call graph for this function: