|
TVM
0.9.4
|
#include <tvm/internal/PairElementToken.h>
Public Member Functions | |
| PairElementToken () noexcept | |
| PairElementToken (const PairElementToken &)=delete | |
| PairElementToken & | operator= (const PairElementToken &)=delete |
| PairElementToken (PairElementToken &&other) noexcept | |
| PairElementToken (PairElementTokenHandle &&h) noexcept | |
| PairElementToken & | operator= (PairElementToken &&other) noexcept |
| PairElementToken & | operator= (PairElementTokenHandle &&h) noexcept |
| ~PairElementToken () | |
| void | pairWith (PairElementToken &other) |
| bool | isPaired () const |
| bool | isPairedWith (const PairElementToken &other) const |
| const PairElementToken & | otherPairElement () const |
A class for representing a token that can be paired with another one. Paired tokens inform each other in case they are moved or destroyed so that they can keep track of one another. Each Token must be unique and therefore cannot be copied.
|
inlinenoexcept |
|
delete |
|
inlinenoexcept |
Move constructor.
|
inlinenoexcept |
Construction from a PairElementTokenHandle. The token constructed and the token pointed to by the handle are paired.
|
inline |
|
inline |
Is this token paired?
|
inline |
Is this token paired with other?
|
delete |
|
inlinenoexcept |
Move-assign operator
|
inlinenoexcept |
Move-assign-like operator for PairElementTokenHandle. The token assigned to and the token pointed to by the handle are paired.
|
inline |
Return the other element of the pair. Throw if this object is not paired
|
inline |
Pair this with other. Throw if this object is already paired.