mirror of
https://github.com/Icinga/icinga2.git
synced 2025-09-10 11:28:13 +02:00
20 lines
322 B
C++
20 lines
322 B
C++
/* Icinga 2 | (c) 2020 Icinga GmbH | GPLv2+ */
|
|
|
|
#include "base/generator-map.hpp"
|
|
#include "base/value.hpp"
|
|
#include <utility>
|
|
|
|
using namespace icinga;
|
|
|
|
bool GeneratorMap::GetNext(Value& out)
|
|
{
|
|
Value buf;
|
|
|
|
if (m_Source->GetNext(buf)) {
|
|
out = m_Function->Invoke({ std::move(buf) });
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
}
|