aws-crt-cpp
C++ wrapper around the aws-c-* libraries. Provides Cross-Platform Transport Protocols and SSL/TLS implementations for C++.
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
 
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

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.

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

Member Function Documentation

Aws::Crt::Endpoints::BddEngine::operator bool ( ) const
inlinenoexcept
Returns
true if the engine was constructed successfully.
BddEngine& Aws::Crt::Endpoints::BddEngine::operator= ( const BddEngine &  )
delete
BddEngine& Aws::Crt::Endpoints::BddEngine::operator= ( BddEngine &&  )
delete
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: