tvm
|
Traced wrapper for Array objects. More...
#include <traced_object.h>
Public Types | |
using | WrappedT = typename detail::TracedObjectWrapperSelector< T >::Type |
using | iterator = TracedArrayIterator< T > |
Public Member Functions | |
TracedArray (Array< T > array, ObjectPath path) | |
const Array< T > & | Get () const |
Access the wrapped array object. More... | |
const ObjectPath & | GetPath () const |
Get the path of the wrapped array object. More... | |
WrappedT | operator[] (size_t index) const |
Get an element by index, wrapped in a traced wrapper. More... | |
iterator | begin () const |
Get an iterator to the first array element. More... | |
iterator | end () const |
Get an iterator to the end of the array. More... | |
bool | empty () const |
Returns true iff the wrapped array is empty. More... | |
size_t | size () const |
Get the size of the wrapped array. More... | |
Traced wrapper for Array objects.
using tvm::TracedArray< T >::iterator = TracedArrayIterator<T> |
using tvm::TracedArray< T >::WrappedT = typename detail::TracedObjectWrapperSelector<T>::Type |
|
inlineexplicit |
|
inline |
Get an iterator to the first array element.
The iterator's dereference operator will automatically wrap each element in a traced wrapper.
|
inline |
Returns true iff the wrapped array is empty.
|
inline |
Get an iterator to the end of the array.
The iterator's dereference operator will automatically wrap each element in a traced wrapper.
|
inline |
Access the wrapped array object.
|
inline |
Get the path of the wrapped array object.
|
inline |
Get an element by index, wrapped in a traced wrapper.
|
inline |
Get the size of the wrapped array.