|
ONE - On-device Neural Engine
|
A wrapper class for unsigned integral Index NOTE : Max value of the underlying type is used as the invalid value. More...
#include <Index.h>
Public Member Functions | |
| Index (void) | |
| Construct a new Index object. | |
| Index (const T o) | |
| Construct a new Index object with a value in the underlying type. | |
| Index (const Index &o)=default | |
| Copy Constructor. | |
| Index & | operator= (const T o) |
| Assign a value in the underlying time. | |
| Index & | operator= (const Index &o)=default |
| Copy assignment operator. | |
| bool | operator== (T o) const |
| Equality operator. | |
| bool | operator== (const Index &o) const |
| Equality operator. | |
| bool | operator!= (T o) const |
| Inquality operator. | |
| bool | operator!= (const Index &o) const |
| Inquality operator. | |
| Index | operator++ (int) |
| Post increment operator. | |
| bool | valid () const |
| Check whether the value is valid or not. | |
| bool | undefined () const |
| Check whether the value is undefined. | |
| T | value () const |
| Return underlying value. | |
| bool | operator< (const Index &I) const |
Static Public Member Functions | |
| static T | max () |
| Return max index value. | |
A wrapper class for unsigned integral Index NOTE : Max value of the underlying type is used as the invalid value.
| T | Underlying type. Must be unsigned integral type otherwise its behavior is undefined. |
| DummyTag | Dummy type to distinguish types with a same underlying type. Using an opaque type is recommended. |
|
inlineexplicit |
|
inlineexplicit |
|
default |
Copy Constructor.
| o | Object to be copied |
|
inlinestatic |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
Copy assignment operator.
| o | Object to be copied |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Check whether the value is valid or not.
Definition at line 125 of file Index.h.
Referenced by onert::backend::cl_common::createLifetimeMap(), onert::backend::train::DisposableTensorIndex::DisposableTensorIndex(), onert::backend::train::LayerScopeTensorIndex::LayerScopeTensorIndex(), and onert::exporter::CircleExporter::updateWeight().
|
inline |
Return underlying value.
Definition at line 137 of file Index.h.
Referenced by onert::ir::OperandIndexSequence::at(), onert::compiler::Compiler::compile(), onert::compiler::train::TrainingCompiler::compile(), onert::backend::train::DisposableTensorIndex::DisposableTensorIndex(), onert::exec::MultiModelExecutors::execute(), onert::exec::TracingObserver::handleJobBegin(), onert::exec::TracingObserver::handleJobEnd(), onert::exec::MultiModelExecutors::inputInfo(), onert::util::Index< T, DummyTag >::operator<(), onert::exec::MultiModelExecutors::outputBuffer(), onert::exec::MultiModelExecutors::outputInfo(), onert::exec::MultiModelExecutors::outputTensor(), onert::backend::basic::FirstFitPlanner::release(), onert::exporter::CircleExporter::updateWeight(), onert::ir::OperationDumper::visit(), onert::ir::OperationDumper::visit(), onert::ir::OperationDumper::visit(), onert::ir::OperationDumper::visit(), onert::ir::OperationDumper::visit(), onert::ir::OperationDumper::visit(), onert::ir::OperationDumper::visit(), onert::ir::OperationDumper::visit(), onert::ir::OperationDumper::visit(), onert::ir::OperationDumper::visit(), and onert::ir::OperationDumper::visit().