AWS IoT Device SDK C++ v2 1.45.1
AWS IoT Device SDK C++ v2
Loading...
Searching...
No Matches
Aws::Crt::Endpoints::BddEngine Class Referencefinal

#include <BddEngine.h>

Public Member Functions

 BddEngine (const ByteCursor &bytecodeCursor, const ByteCursor &partitionsCursor, Allocator *allocator=ApiAllocator()) noexcept
 ~BddEngine ()=default
 BddEngine (const BddEngine &)=delete
BddEngine & operator= (const BddEngine &)=delete
 BddEngine (BddEngine &&)=delete
BddEngine & operator= (BddEngine &&)=delete
 operator bool () const noexcept
Optional< ResolutionOutcome > Resolve (const RequestContext &context) const

Detailed Description

Endpoints BDD Engine.

Resolves endpoints from compiled bytecode rather than a JSON ruleset. The caller is responsible for keeping the bytecode buffer alive for the lifetime of this engine.

RequestContext and ResolutionOutcome are shared with RuleEngine and are used identically.

Constructor & Destructor Documentation

◆ BddEngine() [1/3]

Aws::Crt::Endpoints::BddEngine::BddEngine ( const ByteCursor & bytecodeCursor,
const ByteCursor & partitionsCursor,
Allocator * allocator = ApiAllocator() )
noexcept

Construct from a bytecode cursor and partitions JSON. The caller is responsible for keeping the bytecode buffer alive for the lifetime of this engine.

◆ ~BddEngine()

Aws::Crt::Endpoints::BddEngine::~BddEngine ( )
default

◆ BddEngine() [2/3]

Aws::Crt::Endpoints::BddEngine::BddEngine ( const BddEngine & )
delete

◆ BddEngine() [3/3]

Aws::Crt::Endpoints::BddEngine::BddEngine ( BddEngine && )
delete

Member Function Documentation

◆ operator bool()

Aws::Crt::Endpoints::BddEngine::operator bool ( ) const
inlinenoexcept
Returns
true if the engine was constructed successfully.

◆ operator=() [1/2]

BddEngine & Aws::Crt::Endpoints::BddEngine::operator= ( BddEngine && )
delete

◆ operator=() [2/2]

BddEngine & Aws::Crt::Endpoints::BddEngine::operator= ( const BddEngine & )
delete

◆ Resolve()

Optional< ResolutionOutcome > Aws::Crt::Endpoints::BddEngine::Resolve ( const RequestContext & context) const

Resolve an endpoint from the provided request context. Returns None on failure; use Aws::Crt::LastError() to retrieve the error code.


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