Tulip 6.1.0
Large graphs analysis and drawing
Loading...
Searching...
No Matches
tlp::PropertyInterface::nodeStringValueRef Class Reference

#include <PropertyInterface.h>

Collaboration diagram for tlp::PropertyInterface::nodeStringValueRef:

Public Member Functions

constexpr nodeStringValueRef (PropertyInterface *prop, node n)
std::string getStringValue () const
 operator std::string ()
nodeStringValueRef & operator= (const nodeStringValueRef &ref) noexcept
nodeStringValueRef & operator= (std::string val) noexcept
bool operator== (std::string str) noexcept

Protected Attributes

node _n
PropertyInterface * _prop

Detailed Description

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

Definition at line 216 of file PropertyInterface.h.

Constructor & Destructor Documentation

◆ nodeStringValueRef()

tlp::PropertyInterface::nodeStringValueRef::nodeStringValueRef ( PropertyInterface * prop,
node n )
inlineconstexpr

Definition at line 222 of file PropertyInterface.h.

Member Function Documentation

◆ getStringValue()

std::string tlp::PropertyInterface::nodeStringValueRef::getStringValue ( ) const
inline

Definition at line 224 of file PropertyInterface.h.

◆ operator std::string()

tlp::PropertyInterface::nodeStringValueRef::operator std::string ( )
inline

overloading of std::string conversion operator

Definition at line 257 of file PropertyInterface.h.

◆ operator=() [1/2]

nodeStringValueRef & tlp::PropertyInterface::nodeStringValueRef::operator= ( const nodeStringValueRef & ref)
inlinenoexcept

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

Definition at line 241 of file PropertyInterface.h.

◆ operator=() [2/2]

nodeStringValueRef & tlp::PropertyInterface::nodeStringValueRef::operator= ( std::string val)
inlinenoexcept

overloading of operator= to assign a node string value which allows to write: prop[n] = strval

Definition at line 232 of file PropertyInterface.h.

◆ operator==()

bool tlp::PropertyInterface::nodeStringValueRef::operator== ( std::string str)
inlinenoexcept

overloading of operator== which allows to write: prop1[n] == prop2[m]

Definition at line 250 of file PropertyInterface.h.

Member Data Documentation

◆ _n

node tlp::PropertyInterface::nodeStringValueRef::_n
protected

Definition at line 219 of file PropertyInterface.h.

◆ _prop

PropertyInterface* tlp::PropertyInterface::nodeStringValueRef::_prop
protected

Definition at line 218 of file PropertyInterface.h.