The Battle for Wesnoth  1.19.5+dev
Public Types | Public Member Functions | Private Attributes | List of all members
progressive_base< T, D > Class Template Referenceabstract

#include <frame_private.hpp>

Inheritance diagram for progressive_base< T, D >:

Public Types

using data_t = std::vector< std::pair< D, std::chrono::milliseconds > >
 

Public Member Functions

 progressive_base (const std::string &input)
 
virtual const T get_current_element (const std::chrono::milliseconds &current_time, T default_val) const =0
 
virtual bool does_not_change () const
 
std::chrono::milliseconds duration () const
 
std::string get_original () const
 
data_tdata ()
 
const data_tdata () const
 
virtual ~progressive_base ()
 

Private Attributes

data_t data_
 
std::string input_
 

Detailed Description

template<typename T, typename D>
class progressive_base< T, D >

Definition at line 28 of file frame_private.hpp.

Member Typedef Documentation

◆ data_t

template<typename T , typename D >
using progressive_base< T, D >::data_t = std::vector<std::pair<D, std::chrono::milliseconds> >

Definition at line 31 of file frame_private.hpp.

Constructor & Destructor Documentation

◆ progressive_base()

template<typename T , typename D >
progressive_base< T, D >::progressive_base ( const std::string &  input)
inline

Definition at line 33 of file frame_private.hpp.

◆ ~progressive_base()

template<typename T , typename D >
virtual progressive_base< T, D >::~progressive_base ( )
inlinevirtual

Definition at line 70 of file frame_private.hpp.

Member Function Documentation

◆ data() [1/2]

template<typename T , typename D >
data_t& progressive_base< T, D >::data ( )
inline

Definition at line 60 of file frame_private.hpp.

◆ data() [2/2]

template<typename T , typename D >
const data_t& progressive_base< T, D >::data ( ) const
inline

Definition at line 65 of file frame_private.hpp.

◆ does_not_change()

template<typename T , typename D >
virtual bool progressive_base< T, D >::does_not_change ( ) const
inlinevirtual

◆ duration()

template<typename T , typename D >
std::chrono::milliseconds progressive_base< T, D >::duration ( ) const
inline

Definition at line 45 of file frame_private.hpp.

Referenced by frame_builder::frame_builder().

◆ get_current_element()

template<typename T , typename D >
virtual const T progressive_base< T, D >::get_current_element ( const std::chrono::milliseconds &  current_time,
default_val 
) const
pure virtual

◆ get_original()

template<typename T , typename D >
std::string progressive_base< T, D >::get_original ( ) const
inline

Member Data Documentation

◆ data_

template<typename T , typename D >
data_t progressive_base< T, D >::data_
private

Definition at line 73 of file frame_private.hpp.

◆ input_

template<typename T , typename D >
std::string progressive_base< T, D >::input_
private

Definition at line 74 of file frame_private.hpp.


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