DEENESPTFRRUARHIKOZHNL

clase ara::per::UniqueHandle

[SWS_PER_00359] Upstream: RS_PER_00002, RS_AP_00122, RS_AP_00140

template <typename T> class UniqueHandle final {...};

Handle to a ReadAccessor or ReadWriteAccessor. A UniqueHandle is returned by the functions OpenFileReadOnly(), OpenFileWriteOnly(), and OpenFileReadWrite().

Header-Datei#include "ara/per/unique_handle.h"
Forwarding-Header#include "ara/per/per_fwd.h"
Scopenamespace ara::per

Guía del usuarioGENERADO POR IA

Gestiona el acceso exclusivo y transferible por movimiento a objetos de acceso a archivos con semántica RAII.
GENERADO POR IA no revisado Modelo: gemini-3.8-flash-medium · Esfuerzo: medium · Temperatura: no controlable · Prompt: 7be811cdf7d8 Procedencia Preguntas abiertas (1)
traducido de la guía alemanagemini-3.8-flash-low · 2026-10-13 · Original en alemán

Gestiona el acceso exclusivo y transferible por movimiento a objetos de acceso a archivos con semántica RAII.

La plantilla de clase ara::per::UniqueHandle gestiona la propiedad exclusiva de objetos de acceso a archivos de la persistencia de AUTOSAR en el marco de una estricta semántica de solo movimiento (move-only). Tras su obtención mediante funciones de acceso a archivos, es obligatorio comprobar la validez de la instancia mediante operator bool() antes de cualquier uso [SWS_PER_00371]. La llamada a otros operadores sobre un handle vacío o transferido conduce a un comportamiento indefinido [SWS_PER_00399]. Todas las operaciones están declaradas como noexcept, siendo los accesos de lectura seguros para subprocesos, mientras que las operaciones modificadoras no lo son.

Contexto

La plantilla de clase ara::per::UniqueHandle sirve como handle de acceso con seguridad de tipos a objetos de recursos de la persistencia de AUTOSAR Adaptive, a saber ReadAccessor o ReadWriteAccessor. Se proporciona como valor de retorno de las funciones OpenFileReadOnly(), OpenFileWriteOnly() y OpenFileReadWrite(), y encapsula la propiedad exclusiva de la interfaz de acceso a archivos abierta.

Ciclo de vida

La clase implementa una estricta semántica de solo movimiento (Unique Ownership). Para impedir duplicaciones accidentales del acceso o una propiedad compartida, tanto el constructor de copia [SWS_PER_00373] como el operador de asignación por copia [SWS_PER_00374] están definidos como eliminados (delete). Los derechos de propiedad solo pueden transferirse mediante movimiento: al invocar el constructor de movimiento [SWS_PER_00371] o la asignación por movimiento [SWS_PER_00372], el objeto de origen transferido se invalida y no debe utilizarse a partir de entonces.

Un UniqueHandle se encuentra en todo momento o bien en un estado válido (representa un objeto válido de la clase parametrizada) o bien en un estado vacío o invalidado, como el que se presenta tras una transferencia de movimiento [SWS_PER_00399]. Al finalizar el ámbito de validez, se ejecuta el destructor [SWS_PER_00569]. Presumiblemente, la destrucción de un handle válido cierra o limpia automáticamente el recurso de acceso encapsulado. Pregunta Q-e7f12aa0d7c5548d (abierta)

UniqueHandleState start Gueltig Válido start->Gueltig OpenFileReadOnly / OpenFileWriteOnly / OpenFileReadWrite Leer Vacío / no válido Gueltig->Leer Move-Konstruktor / Move-Zuweisung (Quelle) ende Gueltig->ende Destruktor Leer->Gueltig Move-Zuweisung (Ziel) Leer->ende Destruktor

Diagrama de estados: ciclo de vida y transiciones de estado de un UniqueHandle entre el estado válido y el vacío. Fuentes: [SWS_PER_00371], [SWS_PER_00372], [SWS_PER_00399], [SWS_PER_00569]

Ruta de uso

El uso típico de UniqueHandle sigue una secuencia de pasos definida:

  1. Adquisición del handle: la aplicación recibe el handle como resultado de una llamada de acceso a archivos como OpenFileReadOnly(), OpenFileWriteOnly() o OpenFileReadWrite().
  2. Comprobación de estado: antes de cualquier otra operación, es obligatorio verificar el estado de la instancia mediante operator bool() [SWS_PER_00371], [SWS_PER_00372]. El operador devuelve true si existe un objeto válido y false cuando el handle está vacío [SWS_PER_00399].
  3. Acceso al objeto encapsulado: en caso de estado válido, se accede a los métodos y datos del destino a través de los operadores de flecha operator-> (no constante [SWS_PER_00360] o constante [SWS_PER_00361]) o mediante desreferenciación con operator* (no constante [SWS_PER_00400] o constante [SWS_PER_00401]).
  4. Transferencia de propiedad o destrucción: el handle puede transferirse según sea necesario mediante std::move a otro componente [SWS_PER_00371] o se destruye automáticamente al final de su vida útil [SWS_PER_00569].

Escenarios de error

Un escenario de error fundamental es el acceso a un handle vacío o transferido: el uso de operadores distintos de operator bool() en un handle vacío provoca, según la especificación, un comportamiento indefinido (Undefined Behavior) [SWS_PER_00399]. Por lo tanto, antes de cualquier desreferenciación es obligatorio realizar una comprobación [SWS_PER_00371], [SWS_PER_00372].

En cuanto a la seguridad frente a excepciones y la concurrencia, se aplican los siguientes detalles de especificación:

Esta guía fue generada por una IA sobre la base de la especificación AUTOSAR R25-11.

Mapa de miembros

Diagrama de clases

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__per__UniqueHandle733 UniqueHandle + UniqueHandle() + operator=() + ~UniqueHandle() + operatorbool() + operator*() + operator->()

Vista de detalle

Selecciona una entrada en el índice.

Constructores y destructor

UniqueHandle función 2

Move constructor for UniqueHandle. The source handle object is invalidated and cannot be used anymore. The operator bool() shall be used to check the state of a handle object before using any other operators of the handle object.

Sobrecargas UniqueHandle 2
UniqueHandle (UniqueHandle &&uh) noexcept; SWS_PER_00371
UniqueHandle (const UniqueHandle &)=delete; SWS_PER_00373
~UniqueHandle función

Destructor for UniqueHandle.

~UniqueHandle () noexcept;

Operadores

operator* función 2

Non-constant dereference operator.

Sobrecargas * 2
T & operator* () noexcept; SWS_PER_00400
const T & operator* () const noexcept; SWS_PER_00401
operator-> función 2

Non-constant arrow operator.

Sobrecargas -> 2
T * operator-> () noexcept; SWS_PER_00360
const T * operator-> () const noexcept; SWS_PER_00361
operator= función 2

Move assignment operator for UniqueHandle. The source handle object is invalidated and cannot be used anymore. The operator bool() shall be used to check the state of a handle object before using any other operators of the handle object.

Sobrecargas = 2
UniqueHandle & operator= (UniqueHandle &&uh) & noexcept; SWS_PER_00372
UniqueHandle & operator= (const UniqueHandle &)=delete; SWS_PER_00374
operatorbool función

Handle state. True if the handle represents a valid object of the templated class, False if the handle is empty (e.g. after a move operation). Using other operators than bool() of an empty handle will result in undefined behavior.

explicit operator bool () const noexcept;

Documentación de los métodos

función UniqueHandle [SWS_PER_00371] Upstream: RS_PER_00002, RS_AP_00120, RS_AP_00121, RS_AP_00129, RS_AP_00135, RS_AP_00145, RS_AP_00159

UniqueHandle (UniqueHandle &&uh) noexcept;

Move constructor for UniqueHandle. The source handle object is invalidated and cannot be used anymore. The operator bool() shall be used to check the state of a handle object before using any other operators of the handle object.

Header-Datei#include "ara/per/unique_handle.h"
Scopeclass ara::per::UniqueHandle
Exception-Sicherheitexception safe

Parameter (in)

ParameterBeschreibung
uhThe UniqueHandle object to be moved.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00371
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00371@rel:R25-11#b134db01
Content hash
b134db01
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00371
Status: valid/unmigrated Version: rel:R25-11#b7a796ed Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PER_00371@rel:R25-11#b7a796ed
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#2472caed2026-09-30
  • R19-11rel:R19-11#5b28d9822026-10-14
  • R20-11rel:R20-11#6556de6a2026-10-14
  • R21-11rel:R21-11#4fd62e1b2026-10-14
  • R22-11rel:R22-11#638b49b92026-10-14
  • R23-11rel:R23-11#4afea7132026-10-14
  • R24-11rel:R24-11#15ae42ea2026-10-14
  • R25-11rel:R25-11#b7a796ed2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función UniqueHandle [SWS_PER_00373] Upstream: RS_PER_00002, RS_AP_00120, RS_AP_00145

UniqueHandle (const UniqueHandle &)=delete;

The copy constructor for UniqueHandle shall not be used.

Header-Datei#include "ara/per/unique_handle.h"
Scopeclass ara::per::UniqueHandle

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00373
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00373@rel:R25-11#61abcf17
Content hash
61abcf17
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00373
Status: valid/unmigrated Version: rel:R25-11#97a13cb3 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PER_00373@rel:R25-11#97a13cb3
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#22b7f4472026-09-30
  • R19-11rel:R19-11#5ad725022026-10-14
  • R20-11rel:R20-11#30834d982026-10-14
  • R21-11rel:R21-11#30834d982026-10-14
  • R22-11rel:R22-11#5a84219f2026-10-14
  • R23-11rel:R23-11#4fff0fda2026-10-14
  • R24-11rel:R24-11#97a13cb32026-10-14
  • R25-11rel:R25-11#97a13cb32026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función operator* [SWS_PER_00400] Upstream: RS_PER_00001, RS_PER_00002, RS_PER_00003, RS_AP_00119, RS_AP_00129, RS_AP_00159

T & operator* () noexcept;

Non-constant dereference operator.

Header-Datei#include "ara/per/unique_handle.h"
Scopeclass ara::per::UniqueHandle
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
T&A reference to the UniqueHandle object.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00400
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00400@rel:R25-11#dbabfa2b
Content hash
dbabfa2b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00400
Status: valid/unmigrated Version: rel:R25-11#03e17b34 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PER_00400@rel:R25-11#03e17b34
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#3c202d012026-09-30
  • R19-11rel:R19-11#669b25ad2026-10-14
  • R20-11rel:R20-11#221dd15a2026-10-14
  • R21-11rel:R21-11#94a9e6752026-10-14
  • R22-11rel:R22-11#59befd852026-10-14
  • R23-11rel:R23-11#cc5fb2d62026-10-14
  • R24-11rel:R24-11#03e17b342026-10-14
  • R25-11rel:R25-11#03e17b342026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función operator* [SWS_PER_00401] Upstream: RS_PER_00001, RS_PER_00002, RS_PER_00003, RS_AP_00119, RS_AP_00129, RS_AP_00159

const T & operator* () const noexcept;

Constant dereference operator.

Header-Datei#include "ara/per/unique_handle.h"
Scopeclass ara::per::UniqueHandle
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
const T &A constant reference to the UniqueHandle object.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00401
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00401@rel:R25-11#8536313b
Content hash
8536313b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00401
Status: valid/unmigrated Version: rel:R25-11#55c3ace7 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PER_00401@rel:R25-11#55c3ace7
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#a493a1ed2026-09-30
  • R19-11rel:R19-11#38e407492026-10-14
  • R20-11rel:R20-11#8d59685c2026-10-14
  • R21-11rel:R21-11#32e0990d2026-10-14
  • R22-11rel:R22-11#96bb511e2026-10-14
  • R23-11rel:R23-11#6bb24b062026-10-14
  • R24-11rel:R24-11#55c3ace72026-10-14
  • R25-11rel:R25-11#55c3ace72026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función operator-> [SWS_PER_00360] Upstream: RS_PER_00001, RS_PER_00002, RS_PER_00003, RS_AP_00119, RS_AP_00129, RS_AP_00159

T * operator-> () noexcept;

Non-constant arrow operator.

Header-Datei#include "ara/per/unique_handle.h"
Scopeclass ara::per::UniqueHandle
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
T*A pointer to the UniqueHandle object.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00360
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00360@rel:R25-11#1fdc1647
Content hash
1fdc1647
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00360
Status: valid/unmigrated Version: rel:R25-11#ef2a1027 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PER_00360@rel:R25-11#ef2a1027
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#98df28e32026-09-30
  • R19-11rel:R19-11#f4d0effe2026-10-14
  • R20-11rel:R20-11#c27e978c2026-10-14
  • R21-11rel:R21-11#ab8f7d8e2026-10-14
  • R22-11rel:R22-11#c187af442026-10-14
  • R23-11rel:R23-11#24381aca2026-10-14
  • R24-11rel:R24-11#ef2a10272026-10-14
  • R25-11rel:R25-11#ef2a10272026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función operator-> [SWS_PER_00361] Upstream: RS_PER_00001, RS_PER_00002, RS_PER_00003, RS_AP_00119, RS_AP_00129, RS_AP_00159

const T * operator-> () const noexcept;

Constant arrow operator.

Header-Datei#include "ara/per/unique_handle.h"
Scopeclass ara::per::UniqueHandle
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
const T *A constant pointer to the UniqueHandle object.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00361
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00361@rel:R25-11#6efbaa1f
Content hash
6efbaa1f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00361
Status: valid/unmigrated Version: rel:R25-11#bfbbb900 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PER_00361@rel:R25-11#bfbbb900
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#db461d5a2026-09-30
  • R19-11rel:R19-11#898a6e702026-10-14
  • R20-11rel:R20-11#5cd9c3f32026-10-14
  • R21-11rel:R21-11#5cd9c3f32026-10-14
  • R22-11rel:R22-11#aef959232026-10-14
  • R23-11rel:R23-11#39c079282026-10-14
  • R24-11rel:R24-11#bfbbb9002026-10-14
  • R25-11rel:R25-11#bfbbb9002026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función operator= [SWS_PER_00372] Upstream: RS_PER_00002, RS_AP_00119, RS_AP_00120, RS_AP_00121, RS_AP_00135, RS_AP_00145, RS_AP_00153, RS_AP_00159

UniqueHandle & operator= (UniqueHandle &&uh) & noexcept;

Move assignment operator for UniqueHandle. The source handle object is invalidated and cannot be used anymore. The operator bool() shall be used to check the state of a handle object before using any other operators of the handle object.

Header-Datei#include "ara/per/unique_handle.h"
Scopeclass ara::per::UniqueHandle
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
uhThe UniqueHandle object to be moved.

Rückgabewert

TypBeschreibung
UniqueHandle &The moved UniqueHandle object.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00372
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00372@rel:R25-11#4759cdfa
Content hash
4759cdfa
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00372
Status: valid/unmigrated Version: rel:R25-11#fa5f6ac4 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PER_00372@rel:R25-11#fa5f6ac4
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#414bd1522026-09-30
  • R19-11rel:R19-11#bc1017fc2026-10-14
  • R20-11rel:R20-11#b45b4d662026-10-14
  • R21-11rel:R21-11#b45b4d662026-10-14
  • R22-11rel:R22-11#eaac664b2026-10-14
  • R23-11rel:R23-11#a9b2fe9d2026-10-14
  • R24-11rel:R24-11#fa5f6ac42026-10-14
  • R25-11rel:R25-11#fa5f6ac42026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función operator= [SWS_PER_00374] Upstream: RS_PER_00002, RS_AP_00120, RS_AP_00145

UniqueHandle & operator= (const UniqueHandle &)=delete;

The copy assignment operator for UniqueHandle shall not be used.

Header-Datei#include "ara/per/unique_handle.h"
Scopeclass ara::per::UniqueHandle

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00374
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00374@rel:R25-11#366f9ed3
Content hash
366f9ed3
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00374
Status: valid/unmigrated Version: rel:R25-11#473a1718 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PER_00374@rel:R25-11#473a1718
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#24ed94c02026-09-30
  • R19-11rel:R19-11#7eb83f182026-10-14
  • R20-11rel:R20-11#3556e4cd2026-10-14
  • R21-11rel:R21-11#728358a52026-10-14
  • R22-11rel:R22-11#503812912026-10-14
  • R23-11rel:R23-11#fb958c822026-10-14
  • R24-11rel:R24-11#f5750b432026-10-14
  • R25-11rel:R25-11#473a17182026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función operatorbool [SWS_PER_00399] Upstream: RS_PER_00001, RS_PER_00002, RS_PER_00003, RS_AP_00119, RS_AP_00129, RS_AP_00159

explicit operator bool () const noexcept;

Handle state. True if the handle represents a valid object of the templated class, False if the handle is empty (e.g. after a move operation). Using other operators than bool() of an empty handle will result in undefined behavior.

Header-Datei#include "ara/per/unique_handle.h"
Scopeclass ara::per::UniqueHandle
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
boolFalse if the handle is empty, otherwise true.

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00399
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00399@rel:R25-11#ec9c9189
Content hash
ec9c9189
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00399
Status: valid/unmigrated Version: rel:R25-11#8ef94211 Versionshistorie & Revisions (1 transition, 8 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PER_00399@rel:R25-11#8ef94211
Point-in-Time History:
Recorded Revisions (8):
  • R25-11rel:R25-11#f0c1c0c02026-09-30
  • R19-11rel:R19-11#8839778e2026-10-14
  • R20-11rel:R20-11#312f50912026-10-14
  • R21-11rel:R21-11#dc10458b2026-10-14
  • R22-11rel:R22-11#aba123462026-10-14
  • R23-11rel:R23-11#dccc30862026-10-14
  • R24-11rel:R24-11#979f05a72026-10-14
  • R25-11rel:R25-11#8ef942112026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill

función ~UniqueHandle [SWS_PER_00569] Upstream: RS_PER_00002, RS_AP_00120, RS_AP_00129, RS_AP_00134, RS_AP_00145, RS_AP_00159

~UniqueHandle () noexcept;

Destructor for UniqueHandle.

Header-Datei#include "ara/per/unique_handle.h"
Scopeclass ara::per::UniqueHandle
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_PER_00569
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_PER_00569@rel:R25-11#86628167
Content hash
86628167
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Persistency.pdf#nameddest=SWS_PER_00569
Status: valid/unmigrated Version: rel:R25-11#185fb928 Versionshistorie & Revisions (1 transition, 4 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_PER_00569@rel:R25-11#185fb928
Point-in-Time History:
Recorded Revisions (4):
  • R25-11rel:R25-11#e4cc15fc2026-09-30
  • R23-11rel:R23-11#1d1adf602026-10-14
  • R24-11rel:R24-11#185fb9282026-10-14
  • R25-11rel:R25-11#185fb9282026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill