class write_command_state
Declaration
class write_command_state { /* full declaration omitted */ };
Description
write_command_state is a command pointer with two bits of additional information: - Whether the data written by this command is globally still the newest version ("fresh" or "stale") - Whether this data has been replicated from somewhere else, i.e., we are not the original producer
Declared at: include/command_graph_generator.h:43
Member Variables
- uintptr_t m_bits = 0
- static const uintptr_t stale_bit = 1
- static const uintptr_t replicated_bit = 2
Member Function Overview
- get_command() const → command *
- is_fresh() const → bool
- is_replicated() const → bool
- mark_as_stale() → void
- operator celerity::detail::command *() const
- write_command_state()
- write_command_state(command * cmd)
- write_command_state(command * cmd, bool is_replicated)
Friend Function Overview
- operator==(const write_command_state & lhs, const write_command_state & rhs) → friend bool
- operator==(const write_command_state & lhs, std::nullptr_t) → friend bool
- operator==(std::nullptr_t, const write_command_state & rhs) → friend bool
Member Functions
¶command* get_command() const
command* get_command() const
Declared at: include/command_graph_generator.h:59
¶bool is_fresh() const
bool is_fresh() const
Declared at: include/command_graph_generator.h:61
¶bool is_replicated() const
bool is_replicated() const
Declared at: include/command_graph_generator.h:63
¶void mark_as_stale()
void mark_as_stale()
Declared at: include/command_graph_generator.h:65
¶operator celerity::detail::command*() const
operator celerity::detail::command*() const
Declared at: include/command_graph_generator.h:67
¶write_command_state()
write_command_state()
Declared at: include/command_graph_generator.h:51
¶write_command_state(command* cmd)
write_command_state(command* cmd)
Declared at: include/command_graph_generator.h:53
Parameters
- command* cmd
¶write_command_state(command* cmd,
bool is_replicated)
write_command_state(command* cmd,
bool is_replicated)
Declared at: include/command_graph_generator.h:55
Parameters
- command* cmd
- bool is_replicated
Friend Functions
¶friend bool operator==(
const write_command_state& lhs,
const write_command_state& rhs)
friend bool operator==(
const write_command_state& lhs,
const write_command_state& rhs)
Declared at: include/command_graph_generator.h:69
Parameters
- const write_command_state& lhs
- const write_command_state& rhs
¶friend bool operator==(
const write_command_state& lhs,
std::nullptr_t)
friend bool operator==(
const write_command_state& lhs,
std::nullptr_t)
Declared at: include/command_graph_generator.h:70
Parameters
- const write_command_state& lhs
- std::nullptr_t
¶friend bool operator==(
std::nullptr_t,
const write_command_state& rhs)
friend bool operator==(
std::nullptr_t,
const write_command_state& rhs)
Declared at: include/command_graph_generator.h:71
Parameters
- std::nullptr_t
- const write_command_state& rhs