Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
lang::OptionView< T > Struct Template Reference

#include <tree_views.h>

Inheritance diagram for lang::OptionView< T >:
Collaboration diagram for lang::OptionView< T >:

Public Member Functions

 OptionView (const TreeRef &tree)
 
bool present () const
 
get () const
 
TreeRef map (std::function< TreeRef(const T &)> fn)
 
- Public Member Functions inherited from lang::TreeView
 TreeView (const TreeRef &tree_)
 
TreeRef tree () const
 
const SourceRangerange () const
 
 operator TreeRef () const
 

Additional Inherited Members

- Protected Member Functions inherited from lang::TreeView
TreeRef subtree (size_t i) const
 
- Protected Attributes inherited from lang::TreeView
TreeRef tree_
 

Constructor & Destructor Documentation

template<typename T >
lang::OptionView< T >::OptionView ( const TreeRef tree)
inlineexplicit

Member Function Documentation

template<typename T >
T lang::OptionView< T >::get ( ) const
inline
template<typename T >
TreeRef lang::OptionView< T >::map ( std::function< TreeRef(const T &)>  fn)
inline
template<typename T >
bool lang::OptionView< T >::present ( ) const
inline

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