/** * Copyright 2016-2023 by XGBoost contributors */ #ifndef XGBOOST_COMMON_API_ENTRY_H_ #define XGBOOST_COMMON_API_ENTRY_H_ #include // std::string #include // std::vector #include "xgboost/base.h" // GradientPair,bst_ulong #include "xgboost/predictor.h" // PredictionCacheEntry namespace xgboost { /** * \brief entry to to easily hold returning information */ struct XGBAPIThreadLocalEntry { /*! \brief result holder for returning string */ std::string ret_str; /*! \brief result holder for returning raw buffer */ std::vector ret_char_vec; /*! \brief result holder for returning strings */ std::vector ret_vec_str; /*! \brief result holder for returning string pointers */ std::vector ret_vec_charp; /*! \brief returning float vector. */ std::vector ret_vec_float; /*! \brief temp variable of gradient pairs. */ std::vector tmp_gpair; /*! \brief Temp variable for returning prediction result. */ PredictionCacheEntry prediction_entry; /*! \brief Temp variable for returning prediction shape. */ std::vector prediction_shape; }; } // namespace xgboost #endif // XGBOOST_COMMON_API_ENTRY_H_