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

#include <AbstractProperty.h>

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

Public Member Functions

constexpr nodeValueRef (AbstractProperty *prop, node n)
tlp::StoredType< typenameTnode::RealType >::ReturnedConstValue getValue () const
 operator typename tlp::StoredType< typename Tnode::RealType >::ReturnedConstValue ()
nodeValueRef & operator= (const nodeValueRef &ref) noexcept
nodeValueRef & operator= (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.

Constructor & Destructor Documentation

◆ nodeValueRef()

template<class Tnode, class Tedge, class Tprop = PropertyInterface>
tlp::AbstractProperty< Tnode, Tedge, Tprop >::nodeValueRef::nodeValueRef ( AbstractProperty * prop,
node n )
inlineconstexpr

Definition at line 148 of file AbstractProperty.h.

Member Function Documentation

◆ getValue()

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

Definition at line 150 of file AbstractProperty.h.

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

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

Member Data Documentation

◆ _n

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

Definition at line 145 of file AbstractProperty.h.

◆ _prop

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

Definition at line 144 of file AbstractProperty.h.