35 #include "VariableMap.h"
55 typedef std::map<std::string,std::string> amap_t;
63 typedef std::initializer_list<std::pair<const char *,const Variable> > init_t;
67 void setAttributes(
const init_t & args);
86 template<
typename ... TT>
99 template<
typename ... TT>
100 void setName(
const TT &... args){
101 std::stringstream sstr;
102 _setName(sstr, args...);
119 template<
typename T,
typename ... TT>
120 void _setName(std::stringstream & sstr,
const T & arg,
const TT &... args){
122 _setName(sstr, args...);
125 void _setName(std::stringstream & sstr){
130 void _setAttributes(std::stringstream & sstr){
135 template<
typename T,
typename ... TT>
136 void _setAttributes(std::stringstream & sstr,
const T & arg,
const TT &... args){
138 _setAttributes(sstr, args...);
149 template<
typename ... TT>
151 setAttributes({{
"shape",
"point"}});
155 setAttributes({{
"shape",
"point"}});
165 setAttributes({{
"style",
"invis"}});
172 std::ostream & operator<<(std::ostream & ostr,
const DotNode & node);
180 DotHeader(
const init_t & args = {},
const init_t & nodeArgs = {}){
182 nodeStyle.setAttributes(nodeArgs);
186 void setNodeAttributes(
const init_t & args){
187 nodeStyle.setAttributes(args);
192 return nodeStyle.attributes;
202 std::ostream & operator<<(std::ostream & ostr,
const DotHeader & header);
209 DotComment(
const std::string & s =
"") : comment(s){
213 const std::string & str()
const {
225 std::ostream & operator<<(std::ostream & ostr,
const DotComment & comment);
242 std::ostream & operator<<(std::ostream & ostr,
const DotLink & link);
248 DotRank(
const std::string & s =
"same") : rank(s){
252 const std::string & str()
const {
257 void add(
const DotNode & node){
258 nodes.push_back(&node);
261 std::list<const DotNode *> nodes;
272 std::ostream & operator<<(std::ostream & ostr,
const DotRank & rank);
Definition: DotGraph.h:145
Definition: DotGraph.h:59
static const std::string fill
Definition: DotGraph.h:74
Definition: DotGraph.h:42
Definition: DotGraph.h:228
Definition: DotGraph.h:80
const std::string & getName() const
Returns the key of this entity.
Definition: DotGraph.h:110
Definition: DotGraph.h:160
Definition: DotGraph.h:244
Definition: Sprinter.h:603
A map of Variables.
Definition: VariableMap.h:61
Definition: DataSelector.cpp:1277
Definition: Sprinter.h:137