tvm
Public Types | Public Member Functions | List of all members
tvm::TracedMap< K, V > Class Template Reference

Traced wrapper for Map objects. More...

#include <traced_object.h>

Collaboration diagram for tvm::TracedMap< K, V >:

Public Types

using WrappedV = typename detail::TracedObjectWrapperSelector< V >::Type
 
using iterator = TracedMapIterator< K, V >
 

Public Member Functions

 TracedMap (Map< K, V > map, ObjectPath path)
 
WrappedV at (const K &key) const
 Get a value by its key, wrapped in a traced wrapper. More...
 
const Map< K, V > & Get () const
 Access the wrapped map object. More...
 
const ObjectPathGetPath () const
 Get the path of the wrapped object. More...
 
iterator begin () const
 Get an iterator to the first item of the map. More...
 
iterator end () const
 Get an iterator to the end of the map. More...
 
bool empty () const
 Returns true iff the wrapped map is empty. More...
 

Detailed Description

template<typename K, typename V>
class tvm::TracedMap< K, V >

Traced wrapper for Map objects.

Member Typedef Documentation

◆ iterator

template<typename K , typename V >
using tvm::TracedMap< K, V >::iterator = TracedMapIterator<K, V>

◆ WrappedV

template<typename K , typename V >
using tvm::TracedMap< K, V >::WrappedV = typename detail::TracedObjectWrapperSelector<V>::Type

Constructor & Destructor Documentation

◆ TracedMap()

template<typename K , typename V >
tvm::TracedMap< K, V >::TracedMap ( Map< K, V >  map,
ObjectPath  path 
)
inlineexplicit

Member Function Documentation

◆ at()

template<typename K , typename V >
WrappedV tvm::TracedMap< K, V >::at ( const K &  key) const
inline

Get a value by its key, wrapped in a traced wrapper.

◆ begin()

template<typename K , typename V >
iterator tvm::TracedMap< K, V >::begin ( ) const
inline

Get an iterator to the first item of the map.

◆ empty()

template<typename K , typename V >
bool tvm::TracedMap< K, V >::empty ( ) const
inline

Returns true iff the wrapped map is empty.

◆ end()

template<typename K , typename V >
iterator tvm::TracedMap< K, V >::end ( ) const
inline

Get an iterator to the end of the map.

◆ Get()

template<typename K , typename V >
const Map<K, V>& tvm::TracedMap< K, V >::Get ( ) const
inline

Access the wrapped map object.

◆ GetPath()

template<typename K , typename V >
const ObjectPath& tvm::TracedMap< K, V >::GetPath ( ) const
inline

Get the path of the wrapped object.


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