bool isOutput(void) const;
public:
+ // WARN This method will be deprecated. Please use below "dependent_objects" instead
// @brief Return the set of objects that depends on this bag
ObjectSet deps(void) const;
- // TODO Rename as readers
+ // WARN This method will be deprecated. Please below "readers" instead
ReaderSet reads(void) const;
- // TODO Rename as updaters
+ // WARN This method will be dpercated. Please use below "updaters" instead
UpdaterSet updates(void) const;
private:
std::unique_ptr<BagInfo> _info;
};
+// @brief Return a set of objects that depends on a given bag
+ObjectSet dependent_objects(const Bag *);
+// @brief Return a set of readers that reads a given bag
+Bag::ReaderSet readers(const Bag *);
+// @brief Return a set of updaters that updates a given bag
+Bag::UpdaterSet updaters(const Bag *);
+
} // namespace coco
#endif // __COCO_IR_BAG_H__
return res;
}
+
+ObjectSet dependent_objects(const Bag *b) { return b->deps(); }
+Bag::ReaderSet readers(const Bag *b) { return b->reads(); }
+Bag::UpdaterSet updaters(const Bag *b) { return b->updates(); }
+
} // namespace coco