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

#include <tree_views.h>

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

Public Types

typedef ListViewIterator< T > iterator
 
typedef ListViewIterator< T > const_iterator
 

Public Member Functions

 ListView (const TreeRef &tree)
 
iterator begin () const
 
iterator end () const
 
operator[] (size_t i) const
 
TreeRef map (std::function< TreeRef(const T &)> fn)
 
size_t size () const
 
- Public Member Functions inherited from lang::TreeView
 TreeView (const TreeRef &tree_)
 
TreeRef tree () const
 
const SourceRangerange () const
 
 operator TreeRef () const
 

Static Public Member Functions

static TreeRef create (const SourceRange &range, TreeList elements)
 

Additional Inherited Members

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

Member Typedef Documentation

template<typename T >
typedef ListViewIterator<T> lang::ListView< T >::const_iterator
template<typename T >
typedef ListViewIterator<T> lang::ListView< T >::iterator

Constructor & Destructor Documentation

template<typename T >
lang::ListView< T >::ListView ( const TreeRef tree)
inline

Member Function Documentation

template<typename T >
iterator lang::ListView< T >::begin ( ) const
inline
template<typename T >
static TreeRef lang::ListView< T >::create ( const SourceRange range,
TreeList  elements 
)
inlinestatic
template<typename T >
iterator lang::ListView< T >::end ( ) const
inline
template<typename T >
TreeRef lang::ListView< T >::map ( std::function< TreeRef(const T &)>  fn)
inline
template<typename T >
T lang::ListView< T >::operator[] ( size_t  i) const
inline
template<typename T >
size_t lang::ListView< T >::size ( ) const
inline

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