aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/vespa/document/datatype/numericdatatype.h
blob: 8a94eab78d8d80bfcc77f4e09dc05aa46e112973 (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 Yahoo. 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; }
};

}