CAF  0.17.3
Public Types | Public Member Functions | Related Functions | List of all members
caf::type_id_list Class Reference

A list of type IDs, stored in a size-prefix, contiguous memory block. More...

#include <type_id_list.hpp>

Inheritance diagram for caf::type_id_list:
caf::detail::comparable< type_id_list >

Public Types

using pointer = const type_id_t *
 

Public Member Functions

constexpr type_id_list (pointer data) noexcept
 
constexpr type_id_list (const type_id_list &) noexcept=default
 
type_id_listoperator= (const type_id_list &) noexcept=default
 
constexpr operator bool () const noexcept
 Queries whether this type list contains data, i.e, data() != nullptr.
 
constexpr pointer data () const noexcept
 Returns the raw pointer to the size-prefixed list.
 
constexpr size_t size () const noexcept
 Returns the number of elements in the list. More...
 
constexpr type_id_t operator[] (size_t index) const noexcept
 Returns the type ID at index. More...
 
int compare (type_id_list other) const noexcept
 Compares this list to other.
 

Related Functions

(Note that these are not member functions.)

template<class... Ts>
constexpr type_id_list make_type_id_list ()
 Constructs a ::type_id_list from the template parameter pack Ts.
 
CAF_CORE_EXPORT std::string to_string (type_id_list xs)
 

Detailed Description

A list of type IDs, stored in a size-prefix, contiguous memory block.

Member Function Documentation

◆ operator[]()

constexpr type_id_t caf::type_id_list::operator[] ( size_t  index) const
constexprnoexcept

Returns the type ID at index.

Precondition
data() != nullptr

◆ size()

constexpr size_t caf::type_id_list::size ( ) const
constexprnoexcept

Returns the number of elements in the list.

Precondition
data() != nullptr

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