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

Translates between human-readable type names and type IDs. More...

#include <type_id.hpp>

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

Public Member Functions

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

Translates between human-readable type names and type IDs.

Member Function Documentation

◆ operator()() [1/2]

virtual type_id_t caf::type_id_mapper::operator() ( std::string_view  name) const
pure virtual

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

Implemented in caf::default_type_id_mapper.

◆ operator()() [2/2]

virtual std::string_view caf::type_id_mapper::operator() ( type_id_t  type) const
pure virtual

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

Implemented in caf::default_type_id_mapper.


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