#include "PDG_PartitionByParity.h"
{
"partitionbyparity", "Partition by Parity", "Partitioners", partitioner);
}
using namespace HDK_Sample;
PDG_PartitionByParity::onPartition(
{
for (auto&& work_item : work_items)
{
auto&& attrib = work_item->attributes().refRO(attrib_name);
if (!attrib)
{
myNode->addWarningFmt(
"'{}' has no attribute with the name '{}'",
work_item->name(), attrib_name);
continue;
}
{
myNode->addWarningFmt(
"'{}' does not have a numeric value for attribute '{}'",
work_item->name(), attrib_name);
continue;
}
{
myNode->addError(errors.
buffer());
}
}
}