DiSMEC++
dismec::postproc::CombinePostProcessor Class Reference
Inheritance diagram for dismec::postproc::CombinePostProcessor:
dismec::postproc::PostProcessor dismec::stats::Tracked

Public Member Functions

 CombinePostProcessor (std::vector< std::unique_ptr< PostProcessor >> children)
 
void process (label_id_t label_id, Eigen::Ref< DenseRealVector > weight_vector, solvers::MinimizationResult &result) override
 Apply post-processing for the weight_vector corresponding to the label label_id. More...
 
- Public Member Functions inherited from dismec::postproc::PostProcessor
virtual ~PostProcessor ()=default
 
- Public Member Functions inherited from dismec::stats::Tracked
 Tracked ()
 Default constructor, creates the internal stats::StatisticsCollection. More...
 
void register_stat (const std::string &name, std::unique_ptr< Statistics > stat)
 Registers a tracker for the statistics name. More...
 
std::shared_ptr< StatisticsCollectionget_stats () const
 Gets an ownership-sharing reference to the StatisticsCollection. More...
 

Private Attributes

std::vector< std::unique_ptr< PostProcessor > > m_Children
 

Additional Inherited Members

- Protected Member Functions inherited from dismec::stats::Tracked
 ~Tracked ()
 Non-virtual destructor. Declared protected, so we don't accidentally try to do a polymorphic delete. More...
 
template<class T >
void record (stat_id_t stat, T &&value)
 Record statistics. This function just forwards all its arguments to the internal StatisticsCollection. More...
 
void declare_stat (stat_id_t index, StatisticMetaData meta)
 Declares a new statistics. This function just forwards all its arguments to the internal StatisticsCollection. More...
 
void declare_tag (tag_id_t index, std::string name)
 Declares a new tag. This function just forwards all its arguments to the internal StatisticsCollection. More...
 
template<class... Args>
void set_tag (tag_id_t tag, long value)
 Set value of tag. This function just forwards all its arguments to the internal StatisticsCollection. More...
 
template<class... Args>
auto make_timer (stat_id_t id, Args... args)
 Creates a new ScopeTimer using stats::record_scope_time. More...
 

Detailed Description

Definition at line 10 of file combine.cpp.

Constructor & Destructor Documentation

◆ CombinePostProcessor()

dismec::postproc::CombinePostProcessor::CombinePostProcessor ( std::vector< std::unique_ptr< PostProcessor >>  children)
explicit

Definition at line 18 of file combine.cpp.

Member Function Documentation

◆ process()

void dismec::postproc::CombinePostProcessor::process ( label_id_t  label_id,
Eigen::Ref< DenseRealVector weight_vector,
solvers::MinimizationResult result 
)
overridevirtual

Apply post-processing for the weight_vector corresponding to the label label_id.

Implements dismec::postproc::PostProcessor.

Definition at line 23 of file combine.cpp.

References m_Children.

Member Data Documentation

◆ m_Children

std::vector<std::unique_ptr<PostProcessor> > dismec::postproc::CombinePostProcessor::m_Children
private

Definition at line 15 of file combine.cpp.

Referenced by process().


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