#include <VCG.h>
Definition at line 61 of file VCG.h.
◆ VCGGraph()
Standard Constructor for the 'Graph' class.
Definition at line 186 of file VCG.cpp.
186 :
187 mTitle(strdup("VCG Graph File for PEBL-Interpreted PCode Tree")),
188 mSplines(true),
189 mWidth(700),
190 mHeight(700),
191 mX(30),
192 mY(30),
193 mColor(strdup("blue"))
194{
195
196
197}
◆ ~VCGGraph()
Standard Destructor for the 'Graph' class.
Definition at line 202 of file VCG.cpp.
203{
204 free(mTitle);
205 free(mColor);
206}
◆ AddEdge()
| void VCGGraph::AddEdge |
( |
VCGEdge * |
edge | ) |
|
◆ AddNode()
| void VCGGraph::AddNode |
( |
VCGNode * |
node | ) |
|
◆ GetColor()
| char * VCGGraph::GetColor |
( |
| ) |
const |
|
inline |
◆ GetHeight()
| int VCGGraph::GetHeight |
( |
| ) |
const |
|
inline |
◆ GetSplines()
| bool VCGGraph::GetSplines |
( |
| ) |
const |
|
inline |
Definition at line 71 of file VCG.h.
◆ GetTitle()
| char * VCGGraph::GetTitle |
( |
| ) |
const |
|
inline |
◆ GetWidth()
| int VCGGraph::GetWidth |
( |
| ) |
const |
|
inline |
◆ GetX()
| int VCGGraph::GetX |
( |
| ) |
const |
|
inline |
◆ GetY()
| int VCGGraph::GetY |
( |
| ) |
const |
|
inline |
◆ OutputEdges()
| void VCGGraph::OutputEdges |
( |
std::ostream & |
out | ) |
|
Definition at line 268 of file VCG.cpp.
269{
270
271 list<VCGEdge>::iterator p = mVCGEdges.begin();
272
273
274 while(p != mVCGEdges.end())
275 {
276 out << *p << endl;
277 p++;
278 }
279 out << "\n";
280
281}
Referenced by operator<<().
◆ OutputNodes()
| void VCGGraph::OutputNodes |
( |
std::ostream & |
out | ) |
|
Definition at line 252 of file VCG.cpp.
253{
254
255
256 list<VCGNode>::iterator p = mVCGNodes.begin();
257
258
259 while(p != mVCGNodes.end())
260 {
261 out << *p << endl;
262 p++;
263 }
264 out << "\n";
265
266}
Referenced by operator<<().
◆ SetTitle()
| void VCGGraph::SetTitle |
( |
const char * |
title | ) |
|
|
inline |
Definition at line 67 of file VCG.h.
67{if(mTitle)free(mTitle); mTitle=strdup(title);};
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & |
out, |
|
|
VCGGraph & |
v |
|
) |
| |
|
friend |
The documentation for this class was generated from the following files: