C++ Actor Framework 0.19
Loading...
Searching...
No Matches
Public Member Functions | List of all members
caf::default_type_id_mapper Class Reference

Dispatches to query_type_name and query_type_id. More...

#include <type_id.hpp>

Inheritance diagram for caf::default_type_id_mapper:
caf::type_id_mapper

Public Member Functions

std::string_view operator() (type_id_t type) const override
 Returns the type name for type or an empty string if type is an invalid ID.
 
type_id_t operator() (std::string_view name) const override
 Returns the type for name or invalid_type_id if name is unknown.
 
virtual std::string_view operator() (type_id_t type) const =0
 Returns the type name for type or an empty string if type is an invalid ID.
 
virtual type_id_t operator() (std::string_view name) const =0
 Returns the type for name or invalid_type_id if name is unknown.
 

Detailed Description

Dispatches to query_type_name and query_type_id.

Member Function Documentation

◆ operator()() [1/2]

type_id_t caf::default_type_id_mapper::operator() ( std::string_view  name) const
overridevirtual

Returns the type for name or invalid_type_id if name is unknown.

Implements caf::type_id_mapper.

◆ operator()() [2/2]

std::string_view caf::default_type_id_mapper::operator() ( type_id_t  type) const
overridevirtual

Returns the type name for type or an empty string if type is an invalid ID.

Implements caf::type_id_mapper.


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