Spicy
hilti
toolchain
include
ast
types
real.h
1
// Copyright (c) 2020-2021 by the Zeek Project. See LICENSE for details.
2
3
#pragma once
4
5
#include <utility>
6
7
#include <hilti/ast/type.h>
8
9
namespace
hilti
{
10
namespace
type {
11
13
class
Real
:
public
TypeBase
,
trait::isAllocable
{
14
public
:
15
Real
(
Meta
m =
Meta
()) :
TypeBase
(std::move(m)) {}
16
17
bool
operator==(
const
Real
&
/* other */
)
const
{
return
true
; }
18
20
auto
isEqual
(
const
Type& other)
const
{
return
node::isEqual(
this
, other); }
21
23
auto
properties
()
const
{
return
node::Properties
{}; }
24
};
25
26
}
// namespace type
27
}
// namespace hilti
hilti
hilti::Meta
Definition:
meta.h:18
hilti::type::Real
Definition:
real.h:13
hilti::type::Real::isEqual
auto isEqual(const Type &other) const
Definition:
real.h:20
hilti::node::Properties
std::map< std::string, node::detail::PropertyValue > Properties
Definition:
node.h:83
hilti::TypeBase
Definition:
type.h:152
hilti::type::trait::isAllocable
Definition:
type.h:23
hilti::type::Real::properties
auto properties() const
Definition:
real.h:23
Generated by
1.8.13