OTB  9.0.0
Orfeo Toolbox
Public Member Functions | Public Attributes | List of all members
GapFilling::doy_multi_year Struct Reference

#include <otbDateUtils.h>

Public Member Functions

 doy_multi_year ()=default
 
 doy_multi_year (unsigned int d_prev_init)
 
unsigned int operator() (const std::tm &d)
 

Public Attributes

unsigned int d_prev = 0
 
bool first_date = true
 
unsigned int year_count = 0
 

Detailed Description

Functor with state to return the day of the year dealing with dates spread over multiple years adding 365*year_count to the doy. Does not take into account leap years.

Definition at line 53 of file otbDateUtils.h.

Constructor & Destructor Documentation

◆ doy_multi_year() [1/2]

GapFilling::doy_multi_year::doy_multi_year ( )
default

◆ doy_multi_year() [2/2]

GapFilling::doy_multi_year::doy_multi_year ( unsigned int  d_prev_init)
inline

Definition at line 56 of file otbDateUtils.h.

Member Function Documentation

◆ operator()()

unsigned int GapFilling::doy_multi_year::operator() ( const std::tm &  d)
inline

Definition at line 60 of file otbDateUtils.h.

References d_prev, GapFilling::doy(), first_date, and year_count.

Member Data Documentation

◆ d_prev

unsigned int GapFilling::doy_multi_year::d_prev = 0

Definition at line 77 of file otbDateUtils.h.

Referenced by operator()().

◆ first_date

bool GapFilling::doy_multi_year::first_date = true

Definition at line 78 of file otbDateUtils.h.

Referenced by operator()().

◆ year_count

unsigned int GapFilling::doy_multi_year::year_count = 0

Definition at line 76 of file otbDateUtils.h.

Referenced by operator()().


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