blob: 1f8e3898ea0d0bbba4dd8dad659030781affc671 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
/**
* \class document::NumericDataType
* \ingroup datatype
*
* \brief Data type holding numbers of various types.
*
* Data type object allowing you to store a number. This is typically only
* created when initializing the global primitive datatypes in the DataType
* class.
*/
#pragma once
#include "primitivedatatype.h"
namespace document {
class NumericDataType final : public PrimitiveDataType {
public:
NumericDataType(Type type);
void print(std::ostream&, bool verbose, const std::string& indent) const override;
bool isNumeric() const noexcept override { return true; }
};
}
|