Scroom 0.14-48-ga0fee447
Loading...
Searching...
No Matches
Scroom::Utils::ProgressInterfaceMultiplexer::Child Class Reference
Inheritance diagram for Scroom::Utils::ProgressInterfaceMultiplexer::Child:
Inheritance graph
Collaboration diagram for Scroom::Utils::ProgressInterfaceMultiplexer::Child:
Collaboration graph

Public Types

using Ptr = std::shared_ptr< Child >
 
- Public Types inherited from ProgressInterface
using Ptr = std::shared_ptr< ProgressInterface >
 
using WeakPtr = std::weak_ptr< ProgressInterface >
 

Public Member Functions

 Child (const Child &)=delete
 
 Child (Child &&)=delete
 
Childoperator= (const Child &)=delete
 
Childoperator= (Child &&)=delete
 
 ~Child () override
 
void setProgress (State s, double progress=0.0) override
 
- Public Member Functions inherited from Scroom::Utils::ProgressInterfaceFromProgressStateInterface
void setIdle () override
 
void setWaiting (double progress=0.0) override
 
void setWorking (double progress) override
 
void setFinished () override
 

Static Public Member Functions

static Ptr create (ProgressInterfaceMultiplexer::Ptr parent, ChildData::Ptr data)
 

Private Member Functions

 Child (ProgressInterfaceMultiplexer::Ptr parent, ChildData::Ptr data)
 

Private Attributes

ProgressInterfaceMultiplexer::Ptr parent
 
ChildData::Ptr data
 

Additional Inherited Members

- Protected Types inherited from Scroom::Utils::ProgressStateInterface
enum  State { IDLE , WAITING , WORKING , FINISHED }
 
using Ptr = std::shared_ptr< ProgressStateInterface >
 
using WeakPtr = std::weak_ptr< ProgressStateInterface >
 

Member Typedef Documentation

◆ Ptr

Constructor & Destructor Documentation

◆ Child() [1/3]

Scroom::Utils::ProgressInterfaceMultiplexer::Child::Child ( ProgressInterfaceMultiplexer::Ptr  parent,
ChildData::Ptr  data 
)
private
227 : parent(std::move(parent_))
228 , data(std::move(data_))
229 {
230 }
ProgressInterfaceMultiplexer::Ptr parent
Definition progressinterfacehelpers.hh:215
ChildData::Ptr data
Definition progressinterfacehelpers.hh:216

◆ Child() [2/3]

Scroom::Utils::ProgressInterfaceMultiplexer::Child::Child ( const Child )
delete

◆ Child() [3/3]

Scroom::Utils::ProgressInterfaceMultiplexer::Child::Child ( Child &&  )
delete

◆ ~Child()

Scroom::Utils::ProgressInterfaceMultiplexer::Child::~Child ( )
override
233 {
234 parent->unsubscribe(data);
235 parent->updateProgressState();
236 }

Member Function Documentation

◆ create()

ProgressInterfaceMultiplexer::Child::Ptr Scroom::Utils::ProgressInterfaceMultiplexer::Child::create ( ProgressInterfaceMultiplexer::Ptr  parent,
ChildData::Ptr  data 
)
static
240 {
241 return Ptr(new Child(std::move(parent), std::move(data)));
242 }
Child(ProgressInterfaceMultiplexer::Ptr parent, ChildData::Ptr data)
Definition progressinterfacehelpers.cc:226
std::shared_ptr< Child > Ptr
Definition progressinterfacehelpers.hh:212

Referenced by Scroom::Utils::ProgressInterfaceMultiplexer::createProgressInterface().

Here is the caller graph for this function:

◆ operator=() [1/2]

Child & Scroom::Utils::ProgressInterfaceMultiplexer::Child::operator= ( Child &&  )
delete

◆ operator=() [2/2]

Child & Scroom::Utils::ProgressInterfaceMultiplexer::Child::operator= ( const Child )
delete

◆ setProgress()

void Scroom::Utils::ProgressInterfaceMultiplexer::Child::setProgress ( State  s,
double  progress = 0.0 
)
overridevirtual

Implements Scroom::Utils::ProgressStateInterface.

245 {
246 data->setProgress(state, progress);
247 parent->updateProgressState();
248 }
stub progress
Definition progressinterfaceconversion-tests.cc:65

Member Data Documentation

◆ data

ChildData::Ptr Scroom::Utils::ProgressInterfaceMultiplexer::Child::data
private

◆ parent

ProgressInterfaceMultiplexer::Ptr Scroom::Utils::ProgressInterfaceMultiplexer::Child::parent
private

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