treelite
Namespaces | Enumerations | Functions
typeinfo.h File Reference

Defines enum type TypeInfo. More...

#include <treelite/logging.h>
#include <cstdint>
#include <string>
#include <type_traits>
#include <typeinfo>
Include dependency graph for typeinfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 treelite
 

Enumerations

enum class  treelite::TypeInfo : std::uint8_t { treelite::kInvalid = 0 , treelite::kUInt32 = 1 , treelite::kFloat32 = 2 , treelite::kFloat64 = 3 }
 Types used by thresholds and leaf outputs. More...
 

Functions

std::string treelite::TypeInfoToString (treelite::TypeInfo info)
 Get string representation of TypeInfo. More...
 
TypeInfo treelite::TypeInfoFromString (std::string const &str)
 Get TypeInfo from string. More...
 
template<typename T >
TypeInfo treelite::TypeInfoFromType ()
 Convert a template type into a type info. More...
 

Detailed Description

Defines enum type TypeInfo.

Copyright (c) 2017-2023 by Contributors

Author
Hyunsu Cho