Asylo
Public Member Functions | List of all members
asylo::primitives::Client::ScopedCurrentClient Class Reference

An RAII wrapper that sets thread-local enclave "current client" reference on construction and resets it to the previous value when destroyed. More...

#include <untrusted_primitives.h>

Public Member Functions

 ScopedCurrentClient (Client *client)
 Constructs a "scope object" to set the current client pointer for the lifetime of the object. More...
 
 ~ScopedCurrentClient ()
 
 ScopedCurrentClient (const ScopedCurrentClient &other)=delete
 
ScopedCurrentClientoperator= (const ScopedCurrentClient &other)=delete
 

Detailed Description

An RAII wrapper that sets thread-local enclave "current client" reference on construction and resets it to the previous value when destroyed.

Constructor & Destructor Documentation

◆ ScopedCurrentClient() [1/2]

asylo::primitives::Client::ScopedCurrentClient::ScopedCurrentClient ( Client client)
inlineexplicit

Constructs a "scope object" to set the current client pointer for the lifetime of the object.

Parameters
clientAn unowned pointer to the new current client.

◆ ~ScopedCurrentClient()

asylo::primitives::Client::ScopedCurrentClient::~ScopedCurrentClient ( )

◆ ScopedCurrentClient() [2/2]

asylo::primitives::Client::ScopedCurrentClient::ScopedCurrentClient ( const ScopedCurrentClient other)
delete

Member Function Documentation

◆ operator=()

ScopedCurrentClient& asylo::primitives::Client::ScopedCurrentClient::operator= ( const ScopedCurrentClient other)
delete

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