##// END OF EJS Templates
Fixes the refresh of data that was not working all the time
Fixes the refresh of data that was not working all the time

File last commit:

r537:8c1ac858caa5
r1270:c436df4b66de
Show More
VariableSynchronizationGroup.cpp
32 lines | 824 B | text/x-c | CppLexer
/ core / src / Variable / VariableSynchronizationGroup.cpp
#include "Variable/VariableSynchronizationGroup.h"
#include "Variable/Variable.h"
Q_LOGGING_CATEGORY(LOG_VariableSynchronizationGroup, "VariableSynchronizationGroup")
struct VariableSynchronizationGroup::VariableSynchronizationGroupPrivate {
std::set<QUuid> m_VariableIdSet;
};
VariableSynchronizationGroup::VariableSynchronizationGroup(QObject *parent)
: QObject{parent}, impl{spimpl::make_unique_impl<VariableSynchronizationGroupPrivate>()}
{
}
void VariableSynchronizationGroup::addVariableId(QUuid vIdentifier)
{
impl->m_VariableIdSet.insert(vIdentifier);
}
void VariableSynchronizationGroup::removeVariableId(QUuid vIdentifier)
{
impl->m_VariableIdSet.erase(vIdentifier);
}
const std::set<QUuid> &VariableSynchronizationGroup::getIds() const noexcept
{
return impl->m_VariableIdSet;
}