|
FreeTensor
|
#include <sub_tree.h>
Public Member Functions | |
| SubTreeList (const ChildOf &c) | |
| template<std::derived_from< T > U> | |
| SubTreeList (const std::vector< Ref< U > > &objs) | |
| template<std::derived_from< T > U> | |
| SubTreeList (std::vector< Ref< U > > &&objs) | |
| template<std::derived_from< T > U> | |
| SubTreeList (std::initializer_list< Ref< U > > objs) | |
| SubTreeList & | operator= (SubTreeList &&other) |
| SubTreeList & | operator= (const SubTreeList &other) |
| template<NullPolicy OTHER_POLICY> | |
| SubTreeList & | operator= (SubTreeList< T, OTHER_POLICY > &&other) |
| template<NullPolicy OTHER_POLICY> | |
| SubTreeList & | operator= (const SubTreeList< T, OTHER_POLICY > &other) |
| SubTreeList & | operator= (std::initializer_list< Ref< T > > &&objs) |
| template<class U > requires std::derived_from<T, U> | |
| operator std::vector< Ref< U > > () const | |
| auto | begin () |
| auto | begin () const |
| auto | end () |
| auto | end () const |
| auto | rbegin () |
| auto | rbegin () const |
| auto | rend () |
| auto | rend () const |
| auto | size () const |
| auto | empty () const |
| template<class U > | |
| auto & | operator[] (U &&i) |
| template<class U > | |
| const auto & | operator[] (U &&i) const |
| template<class U > | |
| auto & | at (U &&i) |
| template<class U > | |
| const auto & | at (U &&i) const |
| auto & | front () |
| const auto & | front () const |
| auto & | back () |
| const auto & | back () const |
| template<class U > | |
| void | emplace_back (U &&x) |
| template<class U > | |
| void | push_back (U &&x) |
| template<class... U> | |
| auto | insert (U &&...i) |
| template<class U > | |
| auto | erase (U &&i) |
| void | pop_back () |
| template<class U > | |
| void | reserve (U &&x) |
| void | clear () |
| SubTreeList (SubTreeList &&other) | |
| template<NullPolicy OTHER_POLICY> | |
| SubTreeList (SubTreeList< T, OTHER_POLICY > &&other) | |
| SubTreeList (const SubTreeList &other) | |
| template<NullPolicy OTHER_POLICY> | |
| SubTreeList (const SubTreeList< T, OTHER_POLICY > &other) | |
Friends | |
| template<class , NullPolicy > | |
| class | SubTree |
A list of SubTree
This class can be used as a list of its inner AST nodes
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Move-constructors are called when constructing a SubTreeList, so we follow the normal rules of moving an object. No copying of the AST is performed here.
|
inline |
|
inlineexplicit |
For a SubTreeList y, auto x = y will result in a deep copy of the entire SubTreeList. We avoid this misuse by making the copy constructor explicit. Please use std::vector<Ref<T>> x = y or auto &&x = y instead
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
friend |