souffle
2.0.2-371-g6315b36
ram
UndefValue.h
Go to the documentation of this file.
1
/*
2
* Souffle - A Datalog Compiler
3
* Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved
4
* Licensed under the Universal Permissive License v 1.0 as shown at:
5
* - https://opensource.org/licenses/UPL
6
* - <souffle root>/licenses/SOUFFLE-UPL.txt
7
*/
8
9
/************************************************************************
10
*
11
* @file UndefValue.h
12
*
13
* Defines a class for evaluating values in the Relational Algebra Machine
14
*
15
************************************************************************/
16
17
#pragma once
18
19
#include "
ram/Expression.h
"
20
#include <ostream>
21
22
namespace
souffle::ram
{
23
24
/**
25
* @class UndefValue
26
* @brief An undefined expression
27
*
28
* Output is ⊥
29
*/
30
class
UndefValue :
public
Expression {
31
public
:
32
UndefValue*
clone
()
const override
{
33
return
new
UndefValue();
34
}
35
36
protected
:
37
void
print
(std::ostream& os)
const override
{
38
os <<
"⊥"
;
39
}
40
};
41
42
}
// namespace souffle::ram
souffle::ram::UndefValue::clone
UndefValue * clone() const override
Create a clone (i.e.
Definition:
UndefValue.h:38
souffle::ram
Definition:
AstToRamTranslator.h:54
souffle::ram::UndefValue::print
void print(std::ostream &os) const override
Print RAM node.
Definition:
UndefValue.h:43
Expression.h
Generated by
1.8.17