AARE
Data analysis library for PSI hybrid detectors
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes
aare::DType Class Reference

#include <DType.hpp>

Public Types

enum  TypeIndex {
  INT8 , UINT8 , INT16 , UINT16 ,
  INT32 , UINT32 , INT64 , UINT64 ,
  FLOAT , DOUBLE , ERROR
}
 

Public Member Functions

uint8_t bitdepth () const
 
 DType (const std::type_info &t)
 
 DType (std::string_view sv)
 
 DType (DType::TypeIndex ti)
 
bool operator== (const DType &other) const noexcept
 
bool operator!= (const DType &other) const noexcept
 
bool operator== (const std::type_info &t) const
 
bool operator!= (const std::type_info &t) const
 
std::string str () const
 

Private Attributes

TypeIndex m_type {TypeIndex::ERROR}
 

Member Enumeration Documentation

◆ TypeIndex

Enumerator
INT8 
UINT8 
INT16 
UINT16 
INT32 
UINT32 
INT64 
UINT64 
FLOAT 
DOUBLE 
ERROR 

Constructor & Destructor Documentation

◆ DType() [1/3]

aare::DType::DType ( const std::type_info &  t)
explicit

◆ DType() [2/3]

aare::DType::DType ( std::string_view  sv)
explicit

◆ DType() [3/3]

aare::DType::DType ( DType::TypeIndex  ti)

Member Function Documentation

◆ bitdepth()

uint8_t aare::DType::bitdepth ( ) const

◆ operator!=() [1/2]

bool aare::DType::operator!= ( const DType other) const
noexcept

◆ operator!=() [2/2]

bool aare::DType::operator!= ( const std::type_info &  t) const

◆ operator==() [1/2]

bool aare::DType::operator== ( const DType other) const
noexcept

◆ operator==() [2/2]

bool aare::DType::operator== ( const std::type_info &  t) const

◆ str()

std::string aare::DType::str ( ) const

Field Documentation

◆ m_type

TypeIndex aare::DType::m_type {TypeIndex::ERROR}
private

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