31 lines
665 B
C++
31 lines
665 B
C++
/*
|
|
* ThermalTrip.cpp
|
|
*
|
|
* Copyright (C) 2016 Spreadtrum Communications Inc.
|
|
*/
|
|
#include "ThermalAction.h"
|
|
#include "ThermalTrip.h"
|
|
|
|
namespace android {
|
|
|
|
ThermalTrip::ThermalTrip() {}
|
|
|
|
ThermalTrip::~ThermalTrip() {
|
|
std::deque<ThermalAction*>::iterator iter;
|
|
|
|
for (iter = mpActions.begin(); iter != mpActions.end(); iter++) {
|
|
delete *iter;
|
|
}
|
|
mpActions.clear();
|
|
}
|
|
|
|
std::deque<ThermalAction*>& ThermalTrip::getActionDeque() { return mpActions; }
|
|
|
|
void ThermalTrip::pushActionDeque(ThermalAction* pAction) {
|
|
mpActions.push_back(pAction);
|
|
}
|
|
|
|
void ThermalTrip::setId(int id) { mId = id; }
|
|
int ThermalTrip::getId() { return mId; }
|
|
}; // namespace android
|