CartoType C++ API 7.8.2, 2022-03-25
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoType::TResult Class Reference

#include <cartotype_errors.h>

Public Member Functions

constexpr TResult (uint32_t aCode) noexcept
constexpr operator uint32_t () const noexcept
constexpr void operator= (uint32_t aCode) noexcept

Detailed Description

The result and error code type. It is a class, to enforce initialization to zero, and to allow a breakpoint to be placed in the constructor or assignment operator. In release builds on modern compilers the use of a class rather than a plain integer has no cost.

Constructor & Destructor Documentation

◆ TResult()

constexpr CartoType::TResult::TResult ( uint32_t  aCode)

Creates a TResult object containing a specified code.

Member Function Documentation

◆ operator uint32_t()

constexpr CartoType::TResult::operator uint32_t ( ) const

Returns the integer code of this TResult object.

◆ operator=()

constexpr void CartoType::TResult::operator= ( uint32_t  aCode)

Assigns an integer code to this TResult object.

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