retdec
|
A base class of all call graph (CG) writers. More...
#include <cg_writer.h>
Public Member Functions | |
virtual | ~CGWriter ()=default |
virtual std::string | getId () const =0 |
Returns the ID of the writer. More... | |
virtual bool | emitCG ()=0 |
Emits the given CG into the given output stream. More... | |
Protected Member Functions | |
CGWriter (ShPtr< CG > cg, std::ostream &out) | |
Constructs a new writer. More... | |
Protected Attributes | |
ShPtr< CG > | cg |
CG to be emitted. More... | |
std::ostream & | out |
Stream, where the resulting CG will be emitted. More... | |
Additional Inherited Members | |
![]() | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable ()=default | |
~NonCopyable ()=default | |
A base class of all call graph (CG) writers.
Every CG writer should subclass this class and override emitCG().
Instances of this class have reference object semantics.
|
virtualdefault |
|
pure virtual |
Emits the given CG into the given output stream.
The format of the written data depends on the subclass of this class.
true
if some code has been emitted, false
otherwise. Implemented in retdec::llvmir2hll::GraphvizCGWriter.
|
pure virtual |
Returns the ID of the writer.
Implemented in retdec::llvmir2hll::GraphvizCGWriter.
|
protected |
Stream, where the resulting CG will be emitted.