Public Member Functions | 所有成员列表
cudf::ast::tree 类参考

一个 AST 表达式树。它拥有并包含多个依赖表达式。当树被销毁时,所有表达式都会被销毁。更多...

#include <expressions.hpp>

Public Member Functions

 tree ()=default
 构造一个空的 ast 树
 
 tree (tree &&)=default
 移动 ast 树。
 
treeoperator= (tree &&)=default
 移动赋值 AST 树 更多...
 
 tree (tree const &)=delete
 
treeoperator= (tree const &)=delete
 
template<typename Expr , typename... Args>
std::enable_if_t< std::is_base_of_v< expression, Expr >, Expr const & > emplace (Args &&... args)
 向 AST 树添加一个表达式。 更多...
 
template<typename Expr >
decltype(auto) push (Expr expr)
 向 AST 树添加一个表达式。 更多...
 
expression const & front () const
 获取树中的第一个表达式 更多...
 
expression const & back () const
 获取树中的最后一个表达式 更多...
 
size_t size () const
 获取已添加到树中的表达式数量 更多...
 
expression const & at (size_t index)
 获取树中指定索引处的表达式。索引已检查。更多...
 
expression const & operator[] (size_t index) const
 获取树中指定索引处的表达式。索引未检查。更多...
 

详细描述

一个 AST 表达式树。它拥有并包含多个依赖表达式。当树被销毁时,所有表达式都会被销毁。

定义于文件 expressions.hpp561 行。

成员函数文档

◆ at()

expression const& cudf::ast::tree::at ( size_t  index)
inline

获取树中指定索引处的表达式。索引已检查。

参数
indexast 树中表达式的索引
返回
指定索引处的表达式

定义于文件 expressions.hpp633 行。

◆ back()

expression const& cudf::ast::tree::back ( ) const
inline

获取树中的最后一个表达式

返回
插入到树中的最后一个表达式

定义于文件 expressions.hpp620 行。

◆ emplace()

template<typename Expr , typename... Args>
std::enable_if_t<std::is_base_of_v<expression, Expr>, Expr const&> cudf::ast::tree::emplace ( Args &&...  args)
inline

向 AST 树添加一个表达式。

参数
args用于构造 ast 表达式的参数
返回
对已添加表达式的引用

定义于文件 expressions.hpp591 行。

◆ front()

expression const& cudf::ast::tree::front ( ) const
inline

获取树中的第一个表达式

返回
插入到树中的第一个表达式

定义于文件 expressions.hpp614 行。

◆ operator=()

tree& cudf::ast::tree::operator= ( tree &&  )
default

移动赋值 AST 树

返回
对移动赋值的树的引用

◆ operator[]()

expression const& cudf::ast::tree::operator[] ( size_t  index) const
inline

获取树中指定索引处的表达式。索引未检查。

参数
indexast 树中表达式的索引
返回
指定索引处的表达式

定义于文件 expressions.hpp640 行。

◆ push()

template<typename Expr >
decltype(auto) cudf::ast::tree::push ( Expr  expr)
inline

向 AST 树添加一个表达式。

参数
expr待添加的 AST 表达式
返回
对已添加表达式的引用

定义于文件 expressions.hpp605 行。

◆ size()

size_t cudf::ast::tree::size ( ) const
inline

获取已添加到树中的表达式数量

返回
已添加到树中的表达式数量

定义于文件 expressions.hpp626 行。


此类的文档是由以下文件生成的