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

#include <expr/Literal.h>

Inheritance diagram for taco::Literal:
taco::ExprNode taco::TreeNode

Public Member Functions

 ~Literal () 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< LiteralCreate (Datum &&val, Oid type_oid)
 
- Static Public Member Functions inherited from taco::TreeNode
static void append_indent (std::string &buf, int indent)
 

Private Member Functions

 Literal (Datum &&val, Oid type_oid)
 

Private Attributes

Datum m_value
 

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ ~Literal()

taco::Literal::~Literal ( )
inlineoverride

◆ Literal()

taco::Literal::Literal ( Datum &&  val,
Oid  type_oid 
)
private

Member Function Documentation

◆ Create()

std::unique_ptr< Literal > taco::Literal::Create ( Datum &&  val,
Oid  type_oid 
)
static

◆ Eval() [1/2]

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

Evaluate function on top of a serialized record.

Implements taco::ExprNode.

◆ Eval() [2/2]

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

Evaluate function upon a deserialized record.

Implements taco::ExprNode.

◆ node_properties_to_string()

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

Implements taco::TreeNode.

Member Data Documentation

◆ m_value

Datum taco::Literal::m_value
private

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