mbxmlutils  1.3.0
Multi-Body XML Utils
simdutf::internal::available_implementation_list Class Reference

#include <simdutf.h>

Public Member Functions

simdutf_really_inline available_implementation_list ()
 
size_t size () const noexcept
 
const implementation *const * begin () const noexcept
 
const implementation *const * end () const noexcept
 
const implementationoperator[] (const std::string &name) const noexcept
 
const implementationdetect_best_supported () const noexcept
 

Detailed Description

The list of available implementations compiled into simdutf.

Constructor & Destructor Documentation

◆ available_implementation_list()

simdutf_really_inline simdutf::internal::available_implementation_list::available_implementation_list ( )
inline

Get the list of available implementations compiled into simdutf

Member Function Documentation

◆ begin()

const implementation *const * simdutf::internal::available_implementation_list::begin ( ) const
noexcept

STL const begin() iterator

◆ detect_best_supported()

const implementation * simdutf::internal::available_implementation_list::detect_best_supported ( ) const
noexcept

Detect the most advanced implementation supported by the current host.

This is used to initialize the implementation on startup.

const implementation *impl =

simdutf::available_implementation::detect_best_supported(); simdutf::active_implementation = impl;

Returns
the most advanced supported implementation for the current host, or an implementation that returns UNSUPPORTED_ARCHITECTURE if there is no supported implementation. Will never return nullptr.

◆ end()

const implementation *const * simdutf::internal::available_implementation_list::end ( ) const
noexcept

STL const end() iterator

◆ operator[]()

const implementation * simdutf::internal::available_implementation_list::operator[] ( const std::string &  name) const
inlinenoexcept

Get the implementation with the given name.

Case sensitive.

const implementation *impl =

simdutf::available_implementations["westmere"]; if (!impl) { exit(1); } if (!imp->supported_by_runtime_system()) { exit(1); } simdutf::active_implementation = impl;

Parameters
namethe implementation to find, e.g. "westmere", "haswell", "arm64"
Returns
the implementation, or nullptr if the parse failed.

◆ size()

size_t simdutf::internal::available_implementation_list::size ( ) const
noexcept

Number of implementations


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