ONE - On-device Neural Engine
Loading...
Searching...
No Matches
mir::Operation::Use Struct Reference

Represents a use of an operation output. More...

#include <Operation.h>

Public Member Functions

 Use (Operation *node, std::size_t index)
 
OperationgetNode () const
 
std::size_t getIndex () const
 
bool operator== (const Use &other)
 

Detailed Description

Represents a use of an operation output.

Definition at line 43 of file Operation.h.

Constructor & Destructor Documentation

◆ Use()

mir::Operation::Use::Use ( Operation node,
std::size_t  index 
)
inline

Definition at line 45 of file Operation.h.

45: _node(node), _index(index) {}

Member Function Documentation

◆ getIndex()

std::size_t mir::Operation::Use::getIndex ( ) const
inline

Definition at line 49 of file Operation.h.

49{ return _index; }

◆ getNode()

Operation * mir::Operation::Use::getNode ( ) const
inline

Definition at line 47 of file Operation.h.

47{ return _node; }

◆ operator==()

bool mir::Operation::Use::operator== ( const Use other)
inline

Definition at line 51 of file Operation.h.

51{ return _node == other._node && _index == other._index; }

The documentation for this struct was generated from the following file: