Commit 909ef405 authored by rmrf's avatar rmrf
Browse files

There is lots of code cleaning left to do.

parent f78f5cd5
#include <string>
#include "NotifyCalls.h"
using namespace scpar;
......@@ -11,35 +10,33 @@ NotifyCalls::~NotifyCalls() {
}
NotifyCalls::NotifyCalls() :
_name{"NONE"} {
name_{"NONE"} {
}
NotifyCalls::NotifyCalls(const string & name, FindNotify::NotifyCallListType notifyCallList ) :
_name{name},
_notifyCallList{notifyCallList} {
}
NotifyCalls::NotifyCalls(const string & name, FindNotify::NotifyCallListType notify_list ) :
name_{name},
notify_call_list_{notify_list} {
}
NotifyCalls::NotifyCalls( const NotifyCalls & from ) {
_name = from._name;
_notifyCallList = from._notifyCallList;
name_ = from.name_;
notify_call_list_ = from.notify_call_list_;
}
string NotifyCalls::getName() const {
return _name;
return name_;
}
FindNotify::NotifyCallListType NotifyCalls::getNotifyCallList() {
return _notifyCallList;
return notify_call_list_;
}
unsigned int NotifyCalls::getNumNotifyCalls() {
return _notifyCallList.size ();
return notify_call_list_.size();
}
void NotifyCalls::dump ( llvm::raw_ostream & os, int tabn ) {
for ( auto i{0}; i < _notifyCallList.size (); ++i ) {
os << "\n Notify Call: " << _notifyCallList.at (i);
for ( size_t i{0}; i < notify_call_list_.size(); ++i ) {
os << "\n Notify Call: " << notify_call_list_.at(i);
}
}
......@@ -34,7 +34,7 @@ namespace scpar {
NotifyCalls (const NotifyCalls & );
// Destructor.
~NotifyCalls();
~NotifyCalls();
/// Get parameters
string getName() const;
......@@ -45,8 +45,8 @@ namespace scpar {
void dump ( llvm::raw_ostream &, int );
private:
string _name;
FindNotify::NotifyCallListType _notifyCallList;
string name_;
FindNotify::NotifyCallListType notify_call_list_;
};
}
#endif
Supports Markdown
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