CartoType C++ API 8.2-50-g007fde5ee
for Windows, Linux, Qt and other platforms supporting C++ development
Public Member Functions | List of all members
CartoTypeCore::Result Class Reference

#include <cartotype_errors.h>

Public Member Functions

constexpr Result (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

◆ Result()

constexpr CartoTypeCore::Result::Result ( uint32_t  aCode)
inlineconstexprnoexcept

Creates a Result object containing a specified code.

Member Function Documentation

◆ operator uint32_t()

constexpr CartoTypeCore::Result::operator uint32_t ( ) const
inlineconstexprnoexcept

Returns the integer code of this Result object.

◆ operator=()

constexpr void CartoTypeCore::Result::operator= ( uint32_t  aCode)
inlineconstexprnoexcept

Assigns an integer code to this Result object.


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