Defines actors, their identification, and lifecycle management.
More...
|
file | actor.h |
| Convenience header for the core QB Actor components.
|
file | actorid.h |
| Convenience header for QB ActorId and related identifiers.
|
Defines actors, their identification, and lifecycle management.
Includes `qb::Actor`, `qb::ActorId`, `qb::ServiceActor`, and related concepts for creating and managing concurrent entities.
◆ actor
Alias for the Actor class.
Provided for naming consistency with other lowercase aliases in the framework
◆ service_actor
Alias for the ServiceActor template class.
Provided for naming consistency with other lowercase aliases in the framework
- Template Parameters
-
Tag | A unique struct Tag to identify the service type |
◆ actor_factory_forward()
template<typename T>
auto qb::actor_factory_forward |
( |
T && | val | ) |
|
|
inline |
Utility function for forwarding and transforming arguments to actor factory.
This function properly forwards arguments to the actor factory, handling special cases:
- String literals are converted to std::string
- Reference wrappers are preserved as-is
- Other types are forwarded with their original value categories
- Template Parameters
-
T | The type of the argument to forward |
- Parameters
-
- Returns
- The transformed and properly forwarded value
◆ operator<<()
std::ostream & qb::operator<< |
( |
std::ostream & | os, |
|
|
qb::Actor const & | actor ) |
Stream output operator for Actor objects.
Formats and outputs actor information to a stream
- Parameters
-
os | Output stream to write to |
actor | The Actor object to format and output |
- Returns
- Reference to the output stream
◆ CoreIdBitSet() [1/2]
Constructor from a set of core IDs.
- Parameters
-
coreIds | Set of core IDs to include |
◆ CoreIdBitSet() [2/2]
qb::CoreIdBitSet::CoreIdBitSet |
( |
std::initializer_list< CoreId > | ids | ) |
|
|
inline |
Constructor from an initializer list.
- Parameters
-
ids | List of core IDs to include |
◆ BroadcastId()
qb::BroadcastId::BroadcastId |
( |
uint32_t const | core_id | ) |
|
|
inlineexplicitnoexcept |