const ann::Module *module(void) const { return _module.get(); }
public:
+ /**
+ * @brief Return the set of bags that the current ANN subnet accesses
+ */
+ std::set<coco::Bag *> bags(void) const
+ {
+ std::set<coco::Bag *> res;
+
+ for (auto it = _operands.begin(); it != _operands.end(); ++it)
+ {
+ res.insert(it->first);
+ }
+
+ return res;
+ }
+
+public:
template <typename T> ann::OperandID addOperand(void)
{
return _module->operand()->create(ann::dtype<T>());
private:
// @brief Operand ID assigned for each coco::Bag
- std::map<const coco::Bag *, ann::OperandID> _operands;
+ std::map<coco::Bag *, ann::OperandID> _operands;
};
#endif // __ANN_BINDER_H__