aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
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
 
BddEngineoperator= (const BddEngine &)=delete
 
 BddEngine (BddEngine &&)=delete
 
BddEngineoperator= (BddEngine &&)=delete
 
 operator bool () const noexcept
 
Optional< ResolutionOutcomeResolve (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: