tvm
Public Types | Public Member Functions | List of all members
tvm::TracedArray< T > Class Template Reference

Traced wrapper for Array objects. More...

#include <traced_object.h>

Collaboration diagram for tvm::TracedArray< T >:

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 ObjectPathGetPath () 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...
 

Detailed Description

template<typename T>
class tvm::TracedArray< T >

Traced wrapper for Array objects.

Member Typedef Documentation

◆ iterator

template<typename T >
using tvm::TracedArray< T >::iterator = TracedArrayIterator<T>

◆ WrappedT

template<typename T >
using tvm::TracedArray< T >::WrappedT = typename detail::TracedObjectWrapperSelector<T>::Type

Constructor & Destructor Documentation

◆ TracedArray()

template<typename T >
tvm::TracedArray< T >::TracedArray ( Array< T >  array,
ObjectPath  path 
)
inlineexplicit

Member Function Documentation

◆ begin()

template<typename T >
iterator tvm::TracedArray< T >::begin ( ) const
inline

Get an iterator to the first array element.

The iterator's dereference operator will automatically wrap each element in a traced wrapper.

◆ empty()

template<typename T >
bool tvm::TracedArray< T >::empty ( ) const
inline

Returns true iff the wrapped array is empty.

◆ end()

template<typename T >
iterator tvm::TracedArray< T >::end ( ) const
inline

Get an iterator to the end of the array.

The iterator's dereference operator will automatically wrap each element in a traced wrapper.

◆ Get()

template<typename T >
const Array<T>& tvm::TracedArray< T >::Get ( ) const
inline

Access the wrapped array object.

◆ GetPath()

template<typename T >
const ObjectPath& tvm::TracedArray< T >::GetPath ( ) const
inline

Get the path of the wrapped array object.

◆ operator[]()

template<typename T >
WrappedT tvm::TracedArray< T >::operator[] ( size_t  index) const
inline

Get an element by index, wrapped in a traced wrapper.

◆ size()

template<typename T >
size_t tvm::TracedArray< T >::size ( ) const
inline

Get the size of the wrapped array.


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