NebulaStream  0.6.213
NebulaStream is a data and application management framework for the internet of things
NES::Numeric Class Reference

The Numeric type represents integers and floats. More...

#include <Numeric.hpp>

Collaboration diagram for NES::Numeric:
[legend]

Public Member Functions

 Numeric (int8_t bits)
 
 ~Numeric () override=default
 
bool isNumeric () const final
 Checks if this data type is Numeric. More...
 
int8_t getBits () const
 Gets the bit size of this type. More...
 
- Public Member Functions inherited from NES::DataType
virtual ~DataType ()=default
 
virtual bool isUndefined () const
 Checks if this data type is Undefined. More...
 
virtual bool isBoolean () const
 Checks if this data type is Boolean. More...
 
virtual bool isInteger () const
 Checks if this data type is Integer. More...
 
virtual bool isFloat () const
 Checks if this data type is Float. More...
 
virtual bool isArray () const
 Checks if this data type is ArrayType. More...
 
virtual bool isCharArray () const
 Checks if this data type is ArrayType. More...
 
virtual bool isChar () const
 Checks if this data type is Char. More...
 
virtual bool isText () const
 Checks if this data type is Char. More...
 
virtual bool equals (DataTypePtr otherDataType)=0
 Checks if two data types are equal. More...
 
virtual DataTypePtr join (DataTypePtr otherDataType)=0
 Calculates the joined data type between this data type and the other. If they have no possible joined data type, the coined type is Undefined. More...
 
virtual std::string toString ()=0
 Returns a string representation of the data type. More...
 

Protected Attributes

const int8_t bits
 

Additional Inherited Members

- Static Public Member Functions inherited from NES::DataType
template<class DataType >
static std::shared_ptr< DataTypeas (DataTypePtr ptr)
 

Detailed Description

The Numeric type represents integers and floats.

Constructor & Destructor Documentation

◆ Numeric()

NES::Numeric::Numeric ( int8_t  bits)
explicit

◆ ~Numeric()

NES::Numeric::~Numeric ( )
overridedefault

Member Function Documentation

◆ getBits()

int8_t NES::Numeric::getBits ( ) const

Gets the bit size of this type.

Returns
int8_t

References bits.

◆ isNumeric()

bool NES::Numeric::isNumeric ( ) const
inlinefinalvirtual

Checks if this data type is Numeric.

Returns
bool

Reimplemented from NES::DataType.

Member Data Documentation

◆ bits


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