The Battle for Wesnoth  1.19.5+dev
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
set_scontext_synced Class Reference

A RAII object to enter the synced context, cannot be called if we are already in a synced context. More...

#include <synced_context.hpp>

Inheritance diagram for set_scontext_synced:

Public Member Functions

 set_scontext_synced ()
 
 set_scontext_synced (int num)
 Use this constructor if you have multiple synced_context but only one replay entry. More...
 
 ~set_scontext_synced ()
 
int get_random_calls ()
 
void do_final_checkup (bool dont_throw=false)
 

Private Member Functions

void init ()
 
- Private Member Functions inherited from set_scontext_synced_base
 set_scontext_synced_base ()
 
 ~set_scontext_synced_base ()
 

Static Private Member Functions

static checkupgenerate_checkup (const std::string &tagname)
 

Private Attributes

checkupold_checkup_
 
const std::unique_ptr< checkupnew_checkup_
 
events::command_disabler disabler_
 
bool did_final_checkup_
 
- Private Attributes inherited from set_scontext_synced_base
std::shared_ptr< randomness::rngnew_rng_
 
randomness::rngold_rng_
 

Detailed Description

A RAII object to enter the synced context, cannot be called if we are already in a synced context.

Definition at line 212 of file synced_context.hpp.

Constructor & Destructor Documentation

◆ set_scontext_synced() [1/2]

set_scontext_synced::set_scontext_synced ( )

Definition at line 395 of file synced_context.cpp.

References init().

◆ set_scontext_synced() [2/2]

set_scontext_synced::set_scontext_synced ( int  num)

Use this constructor if you have multiple synced_context but only one replay entry.

Definition at line 403 of file synced_context.cpp.

References init().

◆ ~set_scontext_synced()

set_scontext_synced::~set_scontext_synced ( )

Member Function Documentation

◆ do_final_checkup()

void set_scontext_synced::do_final_checkup ( bool  dont_throw = false)

◆ generate_checkup()

checkup * set_scontext_synced::generate_checkup ( const std::string &  tagname)
staticprivate

Definition at line 411 of file synced_context.cpp.

References resources::classification, and resources::recorder.

◆ get_random_calls()

int set_scontext_synced::get_random_calls ( )

Definition at line 480 of file synced_context.cpp.

References set_scontext_synced_base::new_rng_.

◆ init()

void set_scontext_synced::init ( )
private

Member Data Documentation

◆ did_final_checkup_

bool set_scontext_synced::did_final_checkup_
private

Definition at line 232 of file synced_context.hpp.

Referenced by do_final_checkup(), init(), and ~set_scontext_synced().

◆ disabler_

events::command_disabler set_scontext_synced::disabler_
private

Definition at line 231 of file synced_context.hpp.

◆ new_checkup_

const std::unique_ptr<checkup> set_scontext_synced::new_checkup_
private

Definition at line 230 of file synced_context.hpp.

Referenced by init(), and ~set_scontext_synced().

◆ old_checkup_

checkup* set_scontext_synced::old_checkup_
private

Definition at line 229 of file synced_context.hpp.

Referenced by init(), and ~set_scontext_synced().


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