nxpp
Header-only graph utilities on top of Boost Graph Library
Loading...
Searching...
No Matches
nxpp::Graph< NodeID, EdgeWeight, Directed, Multi, Weighted, OutEdgeSelector, VertexSelector >::NodeAttrProxy Struct Reference
Collaboration diagram for nxpp::Graph< NodeID, EdgeWeight, Directed, Multi, Weighted, OutEdgeSelector, VertexSelector >::NodeAttrProxy:

Public Member Functions

template<typename T >
NodeAttrProxyoperator= (const T &val)
 Sets attribute key on node u, creating the node if it does not exist.
 
template<typename T >
 operator T () const
 

Public Attributes

Graphgraph
 
NodeID u
 
std::string key
 

Member Function Documentation

◆ operator=()

template<typename NodeID = std::string, typename EdgeWeight = double, bool Directed = false, bool Multi = false, bool Weighted = true, typename OutEdgeSelector = boost::vecS, typename VertexSelector = boost::vecS>
template<typename T >
NodeAttrProxy & nxpp::Graph< NodeID, EdgeWeight, Directed, Multi, Weighted, OutEdgeSelector, VertexSelector >::NodeAttrProxy::operator= ( const T &  val)
inline

Sets attribute key on node u, creating the node if it does not exist.

This matches the wrapper's write-creates policy for proxy-based assignment. Read-oriented accessors do not create implicitly.

References nxpp::Graph< NodeID, EdgeWeight, Directed, Multi, Weighted, OutEdgeSelector, VertexSelector >::add_node(), and nxpp::Graph< NodeID, EdgeWeight, Directed, Multi, Weighted, OutEdgeSelector, VertexSelector >::has_node().


The documentation for this struct was generated from the following file: