taco-db  0.1.0
Public Member Functions | Static Public Member Functions | Private Member Functions | List of all members
taco::Variable Class Reference

#include <expr/Variable.h>

Inheritance diagram for taco::Variable:
taco::ExprNode taco::TreeNode

Public Member Functions

 ~Variable () override
 
Datum Eval (const std::vector< NullableDatumRef > &record) const override
 Evaluate function upon a deserialized record. More...
 
Datum Eval (const char *record) const override
 Evaluate function on top of a serialized record. More...
 
void node_properties_to_string (std::string &buf, int indent) const override
 
- Public Member Functions inherited from taco::ExprNode
template<class ... UniquePtrs>
 ExprNode (NodeTag tag, UniquePtrs &&...input)
 Base constructor for all expression nodes. More...
 
virtual ~ExprNode ()
 Deconstructor. More...
 
std::shared_ptr< const SysTable_TypeReturnType () const
 Derive the return type of this expression. More...
 
- Public Member Functions inherited from taco::TreeNode
template<class ... UniquePtrs>
 TreeNode (NodeTag tag, UniquePtrs &&...input)
 
virtual ~TreeNode ()
 
 TreeNode (TreeNode &&)=default
 
TreeNodeoperator= (TreeNode &&)=default
 
 TreeNode (const TreeNode &)=delete
 
TreeNodeoperator= (const TreeNode &)=delete
 
constexpr NodeTag get_tag () const
 
TreeNodeget_input (size_t i) const
 
template<class Node >
Node * get_input_as (size_t i) const
 
std::string to_string () const
 
void node_to_string (std::string &buf, int indent) const
 Prints the node contents to a string buffer. More...
 
const char * node_name () const
 

Static Public Member Functions

static std::unique_ptr< VariableCreate (const Schema *schema, FieldId fid)
 
- Static Public Member Functions inherited from taco::TreeNode
static void append_indent (std::string &buf, int indent)
 

Private Member Functions

 Variable (const Schema *schema, FieldId fid)
 

Additional Inherited Members

- Protected Attributes inherited from taco::ExprNode
std::shared_ptr< const SysTable_Typem_type
 

Constructor & Destructor Documentation

◆ ~Variable()

taco::Variable::~Variable ( )
inlineoverride

◆ Variable()

taco::Variable::Variable ( const Schema schema,
FieldId  fid 
)
private

Member Function Documentation

◆ Create()

std::unique_ptr< Variable > taco::Variable::Create ( const Schema schema,
FieldId  fid 
)
static

◆ Eval() [1/2]

Datum taco::Variable::Eval ( const char *  record) const
overridevirtual

Evaluate function on top of a serialized record.

Implements taco::ExprNode.

◆ Eval() [2/2]

Datum taco::Variable::Eval ( const std::vector< NullableDatumRef > &  record) const
overridevirtual

Evaluate function upon a deserialized record.

Implements taco::ExprNode.

◆ node_properties_to_string()

void taco::Variable::node_properties_to_string ( std::string &  buf,
int  indent 
) const
overridevirtual

Implements taco::TreeNode.


The documentation for this class was generated from the following files: