bool Tag::hasReference(const DataArray &reference) const { if (!util::checkEntityInput(reference, false)) { return false; } DataArray da = backend()->getReference(reference.name()); return da && da.id() == reference.id(); }
bool Tag::removeReference(const DataArray &reference) { if (!util::checkEntityInput(reference, false)) { return false; } return backend()->removeReference(reference.name()); }
void Tag::addReference(const DataArray &reference) { if (!util::checkEntityInput(reference, false)) { throw UninitializedEntity(); } backend()->addReference(reference.name()); }