Loading [MathJax]/extensions/tex2jax.js

Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
UmlModelGraph.h
Go to the documentation of this file.
1
33#pragma once
34
37
38namespace ogdf {
39
42private:
45
48
53
58
59public:
62
65
67 void setModelName(const string& name) { m_modelName = name; }
68
70 const string& getNodeLabel(node v) const { return m_nodeLabel[v]; }
71
73 string& label(node v) { return m_nodeLabel[v]; }
74
76 const Graph::EdgeType& type(edge e) const { return m_eType[e]; }
77
79 Graph::EdgeType& type(edge e) { return m_eType[e]; }
80
82 const Graph::NodeType& type(node v) const { return m_vType[v]; }
83
85 Graph::NodeType& type(node v) { return m_vType[v]; }
86};
87
89std::ostream& operator<<(std::ostream& os, const UmlModelGraph& modelGraph);
90
91}
Declaration and implementation of EdgeArray class.
Declaration and implementation of NodeArray class.
Dynamic arrays indexed with edges.
Definition EdgeArray.h:125
Class for the representation of edges.
Definition Graph_d.h:300
Data type for general directed graphs (adjacency list representation).
Definition Graph_d.h:521
NodeType
The type of nodes.
Definition Graph_d.h:569
EdgeType
The type of edges (only used in derived classes).
Definition Graph_d.h:566
Dynamic arrays indexed with nodes.
Definition NodeArray.h:125
Class for the representation of nodes.
Definition Graph_d.h:177
This class represents the complete UML Model in a graph-like data structure.
void setModelName(const string &name)
Sets the name of the model.
NodeArray< string > m_nodeLabel
The label of the contained nodes.
~UmlModelGraph()
Destructor.
const Graph::EdgeType & type(edge e) const
Returns a const reference to the type of the given edge.
EdgeArray< Graph::EdgeType > m_eType
The types of the contained edges.
string m_modelName
The name of the model.
const Graph::NodeType & type(node v) const
Returns a const reference to the type of the given node.
NodeArray< Graph::NodeType > m_vType
The types of the contained nodes.
Graph::EdgeType & type(edge e)
Returns a reference to the type of the given edge.
string & label(node v)
Returns a reference to the label of the given node.
const string & getNodeLabel(node v) const
Returns a const reference to the label of the given node.
UmlModelGraph()
Constructor.
Graph::NodeType & type(node v)
Returns a reference to the type of the given node.
#define OGDF_EXPORT
Specifies that a function or class is exported by the OGDF DLL.
Definition config.h:101
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.
std::ostream & operator<<(std::ostream &os, const ogdf::Array< E, INDEX > &a)
Prints array a to output stream os.
Definition Array.h:978