MySQL 9.1.0
Source Code Documentation
MockServerGlobalScope Class Reference

stores global data as pair of <string, jsonfied-string> More...

#include <mock_server_global_scope.h>

Public Types

using key_type = std::string
 
using value_type = std::string
 
using type = std::map< key_type, value_type >
 

Public Member Functions

type get_all ()
 
std::vector< key_typeget_keys ()
 
void set (const key_type &key, const value_type &value)
 
size_t erase (const key_type &key)
 
void reset (type globals)
 

Private Attributes

type global_
 
std::mutex global_mutex_
 

Detailed Description

stores global data as pair of <string, jsonfied-string>

Member Typedef Documentation

◆ key_type

using MockServerGlobalScope::key_type = std::string

◆ type

◆ value_type

using MockServerGlobalScope::value_type = std::string

Member Function Documentation

◆ erase()

size_t MockServerGlobalScope::erase ( const key_type key)
inline

◆ get_all()

type MockServerGlobalScope::get_all ( )
inline

◆ get_keys()

std::vector< key_type > MockServerGlobalScope::get_keys ( )
inline

◆ reset()

void MockServerGlobalScope::reset ( type  globals)
inline

◆ set()

void MockServerGlobalScope::set ( const key_type key,
const value_type value 
)
inline

Member Data Documentation

◆ global_

type MockServerGlobalScope::global_
private

◆ global_mutex_

std::mutex MockServerGlobalScope::global_mutex_
private

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