simdjson  0.3.1
Ridiculously Fast JSON
Public Member Functions | List of all members
simdjson::implementation Class Referenceabstract

An implementation of simdjson for a particular CPU architecture. More...

Public Member Functions

virtual const std::string & name () const
 The name of this implementation. More...
 
virtual const std::string & description () const
 The description of this implementation. More...
 

Detailed Description

An implementation of simdjson for a particular CPU architecture.

Also used to maintain the currently active implementation. The active implementation is automatically initialized on first use to the most advanced implementation supported by the host.

Definition at line 18 of file implementation.h.

Member Function Documentation

◆ description()

virtual const std::string& simdjson::implementation::description ( ) const
inlinevirtual

The description of this implementation.

const implementation *impl = simdjson::active_implementation;
cout << "simdjson is optimized for " << impl->name() << "(" << impl->description() << ")" << endl;
Returns
the name of the implementation, e.g. "haswell", "westmere", "arm64"

Definition at line 38 of file implementation.h.

◆ name()

virtual const std::string& simdjson::implementation::name ( ) const
inlinevirtual

The name of this implementation.

const implementation *impl = simdjson::active_implementation;
cout << "simdjson is optimized for " << impl->name() << "(" << impl->description() << ")" << endl;
Returns
the name of the implementation, e.g. "haswell", "westmere", "arm64"

Definition at line 28 of file implementation.h.


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