Commit e4f37d48 authored by rmrf's avatar rmrf
Browse files

Clean up source code

parent 6d8e006d
#include <string>
#include "Model.h"
#include "SCModules.h"
using namespace scpar;
using namespace std;
//#include "json.hpp"
//using json = nlohmann:json;
Model::Model() {
}
Model::~Model() {
......
......@@ -33,7 +33,7 @@ ModuleDecl::~ModuleDecl() {
for ( auto io_port: _ioports ) {
// Second is the PortDecl*.
delete io_port.second;
delete io_port.second;
}
_ioports.clear();
......@@ -62,7 +62,6 @@ void ModuleDecl::addSignals( FindSignals::signalMapType *signal_map ) {
Signal *sig = new Signal(name, sc);
_signals.insert( ModuleDecl::signalPairType( name, sig ) );
}
}
......@@ -102,8 +101,7 @@ void ModuleDecl::addInputInterfaces( FindTLMInterfaces::interfaceType p ) {
}
}
void ModuleDecl::addOutputInterfaces(FindTLMInterfaces::interfaceType p)
{
void ModuleDecl::addOutputInterfaces( FindTLMInterfaces::interfaceType p ) {
for ( auto mit: p ) {
string name = mit.first;
FindTemplateTypes *tt = new FindTemplateTypes(*mit.second);
......@@ -128,7 +126,7 @@ void ModuleDecl::addConstructor( Stmt *constructor ) {
void ModuleDecl::addProcess( FindEntryFunctions::entryFunctionVectorType * efv ) {
_vef = *efv;
for (unsigned int i = 0; i < efv->size(); i++) {
for ( unsigned int i = 0; i < efv->size(); ++i ) {
EntryFunctionContainer *ef = (*efv)[i];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment