treelite
Public Types | Public Member Functions | Public Attributes | List of all members
treelite::ModelPreset< ThresholdT, LeafOutputT > Class Template Reference

Typed portion of the model class. More...

#include <tree.h>

Collaboration diagram for treelite::ModelPreset< ThresholdT, LeafOutputT >:
Collaboration graph

Public Types

using threshold_type = ThresholdT
 
using leaf_output_type = LeafOutputT
 

Public Member Functions

 ModelPreset ()=default
 disable copy; use default move More...
 
 ~ModelPreset ()=default
 
 ModelPreset (ModelPreset const &)=delete
 
ModelPresetoperator= (ModelPreset const &)=delete
 
 ModelPreset (ModelPreset &&) noexcept=default
 
ModelPresetoperator= (ModelPreset &&) noexcept=default
 
TypeInfo GetThresholdType () const
 
TypeInfo GetLeafOutputType () const
 
std::size_t GetNumTree () const
 
void SetTreeLimit (std::size_t limit)
 

Public Attributes

std::vector< Tree< ThresholdT, LeafOutputT > > trees
 member trees More...
 

Detailed Description

template<typename ThresholdT, typename LeafOutputT>
class treelite::ModelPreset< ThresholdT, LeafOutputT >

Typed portion of the model class.

Member Typedef Documentation

◆ leaf_output_type

template<typename ThresholdT , typename LeafOutputT >
using treelite::ModelPreset< ThresholdT, LeafOutputT >::leaf_output_type = LeafOutputT

◆ threshold_type

template<typename ThresholdT , typename LeafOutputT >
using treelite::ModelPreset< ThresholdT, LeafOutputT >::threshold_type = ThresholdT

Constructor & Destructor Documentation

◆ ModelPreset() [1/3]

template<typename ThresholdT , typename LeafOutputT >
treelite::ModelPreset< ThresholdT, LeafOutputT >::ModelPreset ( )
default

disable copy; use default move

◆ ~ModelPreset()

template<typename ThresholdT , typename LeafOutputT >
treelite::ModelPreset< ThresholdT, LeafOutputT >::~ModelPreset ( )
default

◆ ModelPreset() [2/3]

template<typename ThresholdT , typename LeafOutputT >
treelite::ModelPreset< ThresholdT, LeafOutputT >::ModelPreset ( ModelPreset< ThresholdT, LeafOutputT > const &  )
delete

◆ ModelPreset() [3/3]

template<typename ThresholdT , typename LeafOutputT >
treelite::ModelPreset< ThresholdT, LeafOutputT >::ModelPreset ( ModelPreset< ThresholdT, LeafOutputT > &&  )
defaultnoexcept

Member Function Documentation

◆ GetLeafOutputType()

template<typename ThresholdT , typename LeafOutputT >
TypeInfo treelite::ModelPreset< ThresholdT, LeafOutputT >::GetLeafOutputType ( ) const
inline

◆ GetNumTree()

template<typename ThresholdT , typename LeafOutputT >
std::size_t treelite::ModelPreset< ThresholdT, LeafOutputT >::GetNumTree ( ) const
inline

◆ GetThresholdType()

template<typename ThresholdT , typename LeafOutputT >
TypeInfo treelite::ModelPreset< ThresholdT, LeafOutputT >::GetThresholdType ( ) const
inline

◆ operator=() [1/2]

template<typename ThresholdT , typename LeafOutputT >
ModelPreset& treelite::ModelPreset< ThresholdT, LeafOutputT >::operator= ( ModelPreset< ThresholdT, LeafOutputT > &&  )
defaultnoexcept

◆ operator=() [2/2]

template<typename ThresholdT , typename LeafOutputT >
ModelPreset& treelite::ModelPreset< ThresholdT, LeafOutputT >::operator= ( ModelPreset< ThresholdT, LeafOutputT > const &  )
delete

◆ SetTreeLimit()

template<typename ThresholdT , typename LeafOutputT >
void treelite::ModelPreset< ThresholdT, LeafOutputT >::SetTreeLimit ( std::size_t  limit)
inline

Member Data Documentation

◆ trees

template<typename ThresholdT , typename LeafOutputT >
std::vector<Tree<ThresholdT, LeafOutputT> > treelite::ModelPreset< ThresholdT, LeafOutputT >::trees

member trees


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