Commit ef21e4f5 authored by Carla Guillen Carias's avatar Carla Guillen Carias
Browse files

Forgot to implement operator= and copyconstructor

parent b37c550a
......@@ -15,6 +15,16 @@ SMUCNGPerfOperator::SMUCNGPerfOperator(const std::string& name): OperatorTemplat
SMUCNGPerfOperator::~SMUCNGPerfOperator() {
}
SMUCNGPerfOperator::SMUCNGPerfOperator(const SMUCNGPerfOperator& other) : OperatorTemplate(other){
this->_buffers = other._buffers;
}
SMUCNGPerfOperator& SMUCNGPerfOperator::operator=(const SMUCNGPerfOperator& other){
OperatorTemplate::operator =(other);
this->_buffers = other._buffers;
return *this;
}
void SMUCNGPerfOperator::printConfig(LOG_LEVEL ll) {
OperatorTemplate<SMUCSensorBase>::printConfig(ll);
LOG_VAR(ll) << " metric to position map: ";
......
......@@ -19,6 +19,8 @@ private:
public:
SMUCNGPerfOperator(const std::string& name);
virtual ~SMUCNGPerfOperator();
SMUCNGPerfOperator(const SMUCNGPerfOperator& other);
SMUCNGPerfOperator& operator=(const SMUCNGPerfOperator& other);
void printConfig(LOG_LEVEL ll) override;
void setMetricToPosition(const std::map<SMUCSensorBase::Metrics,unsigned int>&metricToPosition) {
......
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