VertexTemplates
#include <poputil/VertexTemplates.hpp>
Generate a string describing a vertex type.
-
namespace poputil
General utility functions for building graphs.
Functions
-
template<typename ...Args>
inline std::string templateVertexParams(bool first, const std::string &val, Args&&... args)
-
template<typename ...Args>
inline std::string templateVertexParams(bool first, const char *val, Args&&... args)
-
template<typename ...Args>
inline std::string templateVertexParams(bool first, const poplar::Type &type, Args&&... args)
-
template<typename ...Args>
inline std::string templateVertexParams(bool first, bool b, Args&&... args)
-
template<typename T, typename ...Args>
inline std::string templateVertexParams(bool first, const T &val, Args&&... args)
-
template<typename ...Args>
inline std::string templateVertex(const std::string &name, Args&&... args) Generate a string representation of a Vertex type for use by poplar::Graph::addVertex().
- Parameters
name – The name of the vertex.
args – The types of the arguments to the vertex.
- Returns
A string representation of the vertex type.
-
template<typename T>
struct VertexTemplateToString
- template<> StringRef >
-
template<typename ...Args>