Poplar and PopLibs
poplar::VertexRef Class Reference

A reference to a vertex within a graph. More...

#include <GraphElements.hpp>

Public Member Functions

FieldRef operator[] (StringRef fieldName) const
 Access a field by name. More...
 

Detailed Description

A reference to a vertex within a graph.

This type provides a way to address vertices within a graph.

Member Function Documentation

◆ operator[]()

FieldRef poplar::VertexRef::operator[] ( StringRef  fieldName) const
inline

Access a field by name.

Given a vertex reference v, v[name] is a field reference.

Parameters
fieldNameThe name of the field.
Returns
A reference to the named field.

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