xgboost
Public Member Functions | List of all members
xgboost::CopyUniquePtr< T > Class Template Reference

Helper for defining copyable data structure that contains unique pointers. More...

#include <tree_model.h>

Collaboration diagram for xgboost::CopyUniquePtr< T >:
Collaboration graph

Public Member Functions

 CopyUniquePtr ()=default
 
 CopyUniquePtr (CopyUniquePtr const &that)
 
T * get () const noexcept
 
T & operator* ()
 
T * operator-> () noexcept
 
T const & operator* () const
 
T const * operator-> () const noexcept
 
 operator bool () const
 
bool operator! () const
 
void reset (T *ptr)
 

Detailed Description

template<typename T>
class xgboost::CopyUniquePtr< T >

Helper for defining copyable data structure that contains unique pointers.

Constructor & Destructor Documentation

◆ CopyUniquePtr() [1/2]

template<typename T >
xgboost::CopyUniquePtr< T >::CopyUniquePtr ( )
default

◆ CopyUniquePtr() [2/2]

template<typename T >
xgboost::CopyUniquePtr< T >::CopyUniquePtr ( CopyUniquePtr< T > const &  that)
inline

Member Function Documentation

◆ get()

template<typename T >
T* xgboost::CopyUniquePtr< T >::get ( ) const
inlinenoexcept

◆ operator bool()

template<typename T >
xgboost::CopyUniquePtr< T >::operator bool ( ) const
inlineexplicit

◆ operator!()

template<typename T >
bool xgboost::CopyUniquePtr< T >::operator! ( ) const
inline

◆ operator*() [1/2]

template<typename T >
T& xgboost::CopyUniquePtr< T >::operator* ( )
inline

◆ operator*() [2/2]

template<typename T >
T const& xgboost::CopyUniquePtr< T >::operator* ( ) const
inline

◆ operator->() [1/2]

template<typename T >
T const* xgboost::CopyUniquePtr< T >::operator-> ( ) const
inlinenoexcept

◆ operator->() [2/2]

template<typename T >
T* xgboost::CopyUniquePtr< T >::operator-> ( )
inlinenoexcept

◆ reset()

template<typename T >
void xgboost::CopyUniquePtr< T >::reset ( T *  ptr)
inline

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