xgboost
Public Member Functions | Public Attributes | List of all members
xgboost::DMatrixCache< CacheT >::Item Struct Reference

#include <cache.h>

Collaboration diagram for xgboost::DMatrixCache< CacheT >::Item:
Collaboration graph

Public Member Functions

CacheT const & Value () const
 
CacheT & Value ()
 
 Item (std::shared_ptr< DMatrix > m, std::shared_ptr< CacheT > v)
 

Public Attributes

std::weak_ptr< DMatrixref
 
std::shared_ptr< CacheT > value
 

Constructor & Destructor Documentation

◆ Item()

template<typename CacheT >
xgboost::DMatrixCache< CacheT >::Item::Item ( std::shared_ptr< DMatrix m,
std::shared_ptr< CacheT >  v 
)
inline

Member Function Documentation

◆ Value() [1/2]

template<typename CacheT >
CacheT& xgboost::DMatrixCache< CacheT >::Item::Value ( )
inline

◆ Value() [2/2]

template<typename CacheT >
CacheT const& xgboost::DMatrixCache< CacheT >::Item::Value ( ) const
inline

Member Data Documentation

◆ ref

template<typename CacheT >
std::weak_ptr<DMatrix> xgboost::DMatrixCache< CacheT >::Item::ref

◆ value

template<typename CacheT >
std::shared_ptr<CacheT> xgboost::DMatrixCache< CacheT >::Item::value

The documentation for this struct was generated from the following file: