tvm
|
A span-like class which permits access to Array fields with complex elements. These array fields should be accessed from C++ using the Metadata wrapper classes. This class lazily instantiates those wrappers as they are accessed. More...
#include <metadata_base.h>
Public Types | |
using | value_type = Ref |
using | iterator = ArrayIterator< C, Ref > |
using | const_iterator = iterator |
Public Member Functions | |
template<typename T = typename std::enable_if<std::is_base_of<ObjectRef, Ref>::value>::type> | |
ArrayAccessor (const C *data, size_t num_data) | |
size_t | size () const |
Ref | operator[] (size_t index) const |
ArrayIterator< C, Ref > | begin () const |
ArrayIterator< C, Ref > | end () const |
A span-like class which permits access to Array fields with complex elements. These array fields should be accessed from C++ using the Metadata wrapper classes. This class lazily instantiates those wrappers as they are accessed.
using tvm::runtime::metadata::ArrayAccessor< C, Ref >::const_iterator = iterator |
using tvm::runtime::metadata::ArrayAccessor< C, Ref >::iterator = ArrayIterator<C, Ref> |
using tvm::runtime::metadata::ArrayAccessor< C, Ref >::value_type = Ref |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |