pops-core  0.9
PoPS (Pest or Pathogen Spread) Model Core C++ library
Public Member Functions | List of all members
pops::AbstractTreatment< IntegerRaster, FloatRaster > Class Template Referenceabstract

Abstract interface for treatment classes. More...

#include <treatments.hpp>

Inheritance diagram for pops::AbstractTreatment< IntegerRaster, FloatRaster >:
Inheritance graph
[legend]

Public Member Functions

virtual unsigned get_start ()=0
 
virtual unsigned get_end ()=0
 
virtual bool should_start (unsigned step)=0
 
virtual bool should_end (unsigned step)=0
 
virtual void apply_treatment (IntegerRaster &infected, std::vector< IntegerRaster > &exposed, IntegerRaster &susceptible, IntegerRaster &resistant, IntegerRaster &total_hosts, const std::vector< std::vector< int >> &spatial_indeices)=0
 
virtual void end_treatment (IntegerRaster &susceptible, IntegerRaster &resistant, const std::vector< std::vector< int >> &spatial_indeices)=0
 
virtual void apply_treatment_mortality (IntegerRaster &infected, const std::vector< std::vector< int >> &spatial_indeices)=0
 
virtual ~AbstractTreatment ()
 

Detailed Description

template<typename IntegerRaster, typename FloatRaster>
class pops::AbstractTreatment< IntegerRaster, FloatRaster >

Abstract interface for treatment classes.

The class is meant for better internal code layout and, at this point, it is not meant as a universal matured interface for treatments. Functions apply_treatment and end_treatment are examples where we account for the current concrete classes and will introduce more general set of parameters only when needed for additional classes.

Definition at line 79 of file treatments.hpp.

Constructor & Destructor Documentation

◆ ~AbstractTreatment()

template<typename IntegerRaster , typename FloatRaster >
virtual pops::AbstractTreatment< IntegerRaster, FloatRaster >::~AbstractTreatment ( )
inlinevirtual

Definition at line 100 of file treatments.hpp.

Member Function Documentation

◆ apply_treatment()

template<typename IntegerRaster , typename FloatRaster >
virtual void pops::AbstractTreatment< IntegerRaster, FloatRaster >::apply_treatment ( IntegerRaster &  infected,
std::vector< IntegerRaster > &  exposed,
IntegerRaster &  susceptible,
IntegerRaster &  resistant,
IntegerRaster &  total_hosts,
const std::vector< std::vector< int >> &  spatial_indeices 
)
pure virtual

◆ apply_treatment_mortality()

template<typename IntegerRaster , typename FloatRaster >
virtual void pops::AbstractTreatment< IntegerRaster, FloatRaster >::apply_treatment_mortality ( IntegerRaster &  infected,
const std::vector< std::vector< int >> &  spatial_indeices 
)
pure virtual

◆ end_treatment()

template<typename IntegerRaster , typename FloatRaster >
virtual void pops::AbstractTreatment< IntegerRaster, FloatRaster >::end_treatment ( IntegerRaster &  susceptible,
IntegerRaster &  resistant,
const std::vector< std::vector< int >> &  spatial_indeices 
)
pure virtual

◆ get_end()

template<typename IntegerRaster , typename FloatRaster >
virtual unsigned pops::AbstractTreatment< IntegerRaster, FloatRaster >::get_end ( )
pure virtual

◆ get_start()

template<typename IntegerRaster , typename FloatRaster >
virtual unsigned pops::AbstractTreatment< IntegerRaster, FloatRaster >::get_start ( )
pure virtual

◆ should_end()

template<typename IntegerRaster , typename FloatRaster >
virtual bool pops::AbstractTreatment< IntegerRaster, FloatRaster >::should_end ( unsigned  step)
pure virtual

◆ should_start()

template<typename IntegerRaster , typename FloatRaster >
virtual bool pops::AbstractTreatment< IntegerRaster, FloatRaster >::should_start ( unsigned  step)
pure virtual

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