|
tvm
|
Traced wrapper for Optional objects. More...
#include <traced_object.h>
Public Types | |
| using | WrappedT = typename detail::TracedObjectWrapperSelector< T >::Type |
Public Member Functions | |
| TracedOptional (const WrappedT &value) | |
| Implicit conversion from the corresponding non-optional traced wrapper. More... | |
| TracedOptional (Optional< T > optional, ObjectPath path) | |
| const Optional< T > & | Get () const |
| Access the wrapped optional object. More... | |
| const ObjectPath & | GetPath () const |
| Get the path of the wrapped optional object. More... | |
| bool | defined () const |
| Returns true iff the object is present. More... | |
| WrappedT | value () const |
| Returns a non-optional traced wrapper, throws if defined() is false. More... | |
| operator bool () const | |
| Same as defined(). More... | |
Traced wrapper for Optional objects.
| using tvm::TracedOptional< T >::WrappedT = typename detail::TracedObjectWrapperSelector<T>::Type |
|
inline |
Implicit conversion from the corresponding non-optional traced wrapper.
|
inlineexplicit |
|
inline |
Returns true iff the object is present.
|
inline |
Access the wrapped optional object.
|
inline |
Get the path of the wrapped optional object.
|
inlineexplicit |
Same as defined().
|
inline |
Returns a non-optional traced wrapper, throws if defined() is false.
1.8.13