std::size_t getIndex() const { return _index; }
- // TODO Remove (needed for transition period).
- operator Use *() const { return std::addressof(*const_cast<Use *>(this)); }
bool operator==(const Use &other) { return _node == other._node && _index == other._index; }
private:
/// @brief Returns the inputs that consume this output.
const std::vector<Use> &getUses() const { return _uses; }
- // TODO Remove (needed for transition period).
- const std::vector<Use> &getConsumers() const { return _uses; }
-
/// @brief Adds the specified use to the uses of this output.
void addUse(Use use) { _uses.push_back(use); }
std::string _name;
};
- // TODO Remove (needed for transition period).
- using Input = Use;
-
virtual ~Operation() = default;
Type getType() const { return _type; }