DEENESPTFRRUARHIKOZHNL

classe ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange

[SWS_DM_01182] Upstream: RS_Diag_04251

class ByteRange final {...};

Represents a single byte value closed range. Type alias of a single diagnostic service pattern element in the DynamicAccessList

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder

Guia do utilizadorGERADO POR IA

Define um intervalo fechado de valores de bytes para padrões de serviços de diagnóstico em listas dinâmicas de acesso.
GERADO POR IA não revisado Modelo: gemini-3.8-flash-medium · Esforço: medium · Temperatura: não controlável · Prompt: 772c8ed103eb Procedência Perguntas em aberto (1)
traduzido do guia alemãogemini-3.8-flash-low · 2026-10-13 · Original em alemão

Define um intervalo fechado de valores de bytes para padrões de serviços de diagnóstico em listas dinâmicas de acesso.

A classe ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange representa um intervalo fechado de valores de bytes para a definição de padrões de serviços de diagnóstico em listas dinâmicas de acesso [SWS_DM_01182]. As aplicações criam esses objetos de valor com valores mínimos e máximos e os passam ao builder para a configuração passo a passo de padrões de serviço [SWS_DM_01183]. Além disso, os limites de intervalo definidos podem ser lidos a qualquer momento por meio de inspetores. Todas as funções-membro são declaradas como seguras contra exceções como noexcept, enquanto operadores de atribuição modificadores exigem sincronização à parte no acesso concorrente.

Contexto

A classe ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange representa um intervalo fechado de valores de bytes dentro de um padrão de serviço de diagnóstico [SWS_DM_01182]. No âmbito do gerenciamento de acesso dinâmico (DynamicAccessList), ela atua como um bloco de construção elementar para definir com precisão critérios e faixas de valores de bytes individuais para requisições de diagnóstico AUTOSAR_AP_SWS_Diagnostics §8.15.2 «Class: ByteRange».

Como tipo de valor aninhado, ByteRange atua em cooperação direta com o DynamicAccessListDiagServiceBuilder superior. Enquanto a aplicação de diagnóstico cria instâncias com valores-limite específicos, o builder consome esses objetos por meio de métodos como Add [SWS_DM_01177] ou EndsWith [SWS_DM_01180] para construir sequências de padrões de bytes para serviços de diagnóstico. Adicionalmente, a classe possibilita a leitura dos limites configurados por meio de GetMin [SWS_DM_01189] e GetMax [SWS_DM_01190].

Ciclo de vida

Instâncias de ByteRange são criadas regularmente por meio do construtor parametrizado, que recebe o valor mínimo (min) e o valor máximo (max) como um intervalo fechado de valores [SWS_DM_01183]. Por se tratar de um objeto de valor sem estado e sem vinculação dinâmica de recursos, não existem fases operacionais internas complexas.

A classe implementa semântica de valor em conformidade com o padrão: ela disponibiliza tanto um construtor de cópia [SWS_DM_01184] quanto um construtor de movimento [SWS_DM_01185], permitindo que os exemplares sejam passados sem problemas por cópia ou por movimento para métodos do builder. De forma análoga, estão disponíveis o operador de atribuição por cópia [SWS_DM_01186] e o operador de atribuição por movimento [SWS_DM_01187]. O ciclo de vida se encerra com o destrutor [SWS_DM_01188].

Em relação à concorrência, o AUTOSAR especifica requisitos diferenciados: construtores e operações de leitura são classificados como seguros para threads, ao passo que os operadores de atribuição operator= ([SWS_DM_01186], [SWS_DM_01187]) e o destrutor [SWS_DM_01188] não são expressamente seguros para threads. Operações modificadoras na mesma instância exigem, portanto, medidas de sincronização no nível do chamador.

Caminho de utilização

O uso típico de ByteRange ocorre no âmbito da configuração sequencial de padrões de serviço por meio do builder:

  1. A aplicação cria um objeto ByteRange especificando os limites min e max [SWS_DM_01183].
  2. O intervalo é passado a DynamicAccessListDiagServiceBuilder::Add para estender o padrão na posição atual [SWS_DM_01177].
  3. Com EndsWith, pode ser definido um intervalo final que constitui a conclusão do padrão [SWS_DM_01180].
  4. Se necessário, a aplicação lê os valores-limite por meio de GetMin [SWS_DM_01189] e GetMax [SWS_DM_01190] para verificação.
Definição de padrão com ByteRange e DynamicAccessListDiagServiceBuilderAplicaçãoByteRangeDynamicAccessListDiagServiceBuilderByteRange(min, max)InstanzAdd(range)EndsWith(range)GetMin() / GetMax()Grenzwerte (Byte)

Diagrama de sequência: interação típica na definição de um padrão de diagnóstico com ByteRange. Fontes: [SWS_DM_01183], [SWS_DM_01177], [SWS_DM_01180], [SWS_DM_01189], [SWS_DM_01190].

Cenários de erro

Todas as funções-membro da classe são declaradas com noexcept e, portanto, são totalmente seguras contra exceções (exception safe) [SWS_DM_01183]. Nem a construção, nem atribuições ou consultas lançam exceções C++.

Possíveis situações de erro dizem respeito primariamente a erros lógicos de parametrização: caso uma aplicação passe um valor mínimo min que seja maior que o valor máximo max, a especificação não define nenhum comportamento de erro explícito (interpretação: tal par de valores inválido provavelmente só deverá ser rejeitado durante o processamento subsequente de padrões no builder ou levar a um padrão de correspondência vazio). Pergunta Q-ea9c65d175d48946 (aberta) Outro risco de erro reside na atribuição desprotegida por meio de operator= no acesso concorrente de múltiplas threads ao mesmo objeto, visto que atribuições não são seguras para threads [SWS_DM_01186].

Este guia de classe baseia-se na especificação AUTOSAR Adaptive R25-11 para o módulo diag.

Mapa de membros

Construtores e destrutor

2

Métodos

2

Operadores

1

Diagrama de classes

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

G nara__diag__DynamicAccessListDiagServiceBuilder__ByteRange410 ByteRange + ByteRange() + ~ByteRange() + GetMax() + GetMin() + operator=()

Vista de detalhes

Selecione uma entrada no índice.

Construtores e destrutor

ByteRange função 3

Constructs a value range.

Sobrecargas ByteRange 3
ByteRange (Byte min, Byte max) noexcept; SWS_DM_01183
ByteRange (ByteRange const &other) noexcept; SWS_DM_01184
ByteRange (ByteRange &&other) noexcept; SWS_DM_01185
~ByteRange função

Destructor of ByteRange.

~ByteRange () noexcept;

Métodos

GetMax função

Reports the highest value to match.

auto GetMax () const noexcept -> Byte;
GetMin função

Reports the lowest value to match.

auto GetMin () const noexcept -> Byte;

Operadores

operator= função 2

Copy assignment operator of ByteRange.

Sobrecargas = 2
auto operator= (ByteRange const &other) & noexcept -> ByteRange &; SWS_DM_01186
auto operator= (ByteRange &&other) & noexcept -> ByteRange &; SWS_DM_01187

Documentação dos métodos

função ByteRange [SWS_DM_01183] Upstream: RS_Diag_04251

ByteRange (Byte min, Byte max) noexcept;

Constructs a value range.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
minThe minimum value to match.
maxThe maximum value to match.

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

Record
AUTOSAR/AP/record/SWS_DM_01183
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01183@rel:R25-11#776203b0
Content hash
776203b0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01183
Status: valid/unmigrated Version: rel:R25-11#76d910b8 Versionshistorie & Revisions (1 transition, 6 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_DM_01183@rel:R25-11#76d910b8
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#88ee71502026-09-30
  • R21-11rel:R21-11#5b6ad4402026-10-14
  • R22-11rel:R22-11#e5a417102026-10-14
  • R23-11rel:R23-11#188249a92026-10-14
  • R24-11rel:R24-11#cbf06b7e2026-10-14
  • R25-11rel:R25-11#76d910b82026-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

função ByteRange [SWS_DM_01184] Upstream: RS_Diag_04251

ByteRange (ByteRange const &other) noexcept;

Copy constructor of ByteRange.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
otherObject to construct-assign from.

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

Record
AUTOSAR/AP/record/SWS_DM_01184
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01184@rel:R25-11#f0b460a6
Content hash
f0b460a6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01184
Status: valid/unmigrated Version: rel:R25-11#70b42108 Versionshistorie & Revisions (1 transition, 6 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_DM_01184@rel:R25-11#70b42108
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#d2c778d92026-09-30
  • R21-11rel:R21-11#8a73de022026-10-14
  • R22-11rel:R22-11#b28526062026-10-14
  • R23-11rel:R23-11#5de9db872026-10-14
  • R24-11rel:R24-11#b95826bf2026-10-14
  • R25-11rel:R25-11#70b421082026-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

função ByteRange [SWS_DM_01185] Upstream: RS_Diag_04251

ByteRange (ByteRange &&other) noexcept;

Move constructor of ByteRange.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
otherObject to move-assign from.

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

Record
AUTOSAR/AP/record/SWS_DM_01185
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01185@rel:R25-11#f33c8567
Content hash
f33c8567
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01185
Status: valid/unmigrated Version: rel:R25-11#7783f97f Versionshistorie & Revisions (1 transition, 6 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_DM_01185@rel:R25-11#7783f97f
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#05f7580e2026-09-30
  • R21-11rel:R21-11#2b85b98e2026-10-14
  • R22-11rel:R22-11#82eb01f52026-10-14
  • R23-11rel:R23-11#206730ae2026-10-14
  • R24-11rel:R24-11#5e5486b62026-10-14
  • R25-11rel:R25-11#7783f97f2026-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

função GetMax [SWS_DM_01190] Upstream: RS_Diag_04251

auto GetMax () const noexcept -> Byte;

Reports the highest value to match.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ByteReturns the the highest value.

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

Record
AUTOSAR/AP/record/SWS_DM_01190
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01190@rel:R25-11#c059176a
Content hash
c059176a
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01190
Status: valid/unmigrated Version: rel:R25-11#ed1cf150 Versionshistorie & Revisions (1 transition, 6 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_DM_01190@rel:R25-11#ed1cf150
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#97213c3a2026-09-30
  • R21-11rel:R21-11#9b134c052026-10-14
  • R22-11rel:R22-11#3b0338f22026-10-14
  • R23-11rel:R23-11#110ac01b2026-10-14
  • R24-11rel:R24-11#d75516992026-10-14
  • R25-11rel:R25-11#ed1cf1502026-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

função GetMin [SWS_DM_01189] Upstream: RS_Diag_04251

auto GetMin () const noexcept -> Byte;

Reports the lowest value to match.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ByteReturns the lowest value.

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

Record
AUTOSAR/AP/record/SWS_DM_01189
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01189@rel:R25-11#6fe63577
Content hash
6fe63577
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01189
Status: valid/unmigrated Version: rel:R25-11#9261124f Versionshistorie & Revisions (1 transition, 6 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_DM_01189@rel:R25-11#9261124f
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#aec0b79b2026-09-30
  • R21-11rel:R21-11#bac056062026-10-14
  • R22-11rel:R22-11#88ffd3472026-10-14
  • R23-11rel:R23-11#8bdcbed02026-10-14
  • R24-11rel:R24-11#817c457f2026-10-14
  • R25-11rel:R25-11#9261124f2026-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

função operator= [SWS_DM_01186] Upstream: RS_Diag_04251

auto operator= (ByteRange const &other) & noexcept -> ByteRange &;

Copy assignment operator of ByteRange.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherObject to copy-assign from.

Rückgabewert

TypBeschreibung
ByteRangeByteRange& Reference to self.

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

Record
AUTOSAR/AP/record/SWS_DM_01186
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01186@rel:R25-11#50904eb4
Content hash
50904eb4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01186
Status: valid/unmigrated Version: rel:R25-11#eb4ce14e Versionshistorie & Revisions (1 transition, 6 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_DM_01186@rel:R25-11#eb4ce14e
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#317708572026-09-30
  • R21-11rel:R21-11#1a6ff2002026-10-14
  • R22-11rel:R22-11#a6f24ffc2026-10-14
  • R23-11rel:R23-11#b7a9b8882026-10-14
  • R24-11rel:R24-11#7faa27852026-10-14
  • R25-11rel:R25-11#eb4ce14e2026-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

função operator= [SWS_DM_01187] Upstream: RS_Diag_04251

auto operator= (ByteRange &&other) & noexcept -> ByteRange &;

Move assignment operator of ByteRange.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
Exception-Sicherheitexception safe
Thread-Sicherheitnot thread-safe

Parameter (in)

ParameterBeschreibung
otherObject to move-assign from.

Rückgabewert

TypBeschreibung
ByteRangeByteRange& Reference to self.

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

Record
AUTOSAR/AP/record/SWS_DM_01187
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01187@rel:R25-11#9e5457a7
Content hash
9e5457a7
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01187
Status: valid/unmigrated Version: rel:R25-11#53c83f22 Versionshistorie & Revisions (1 transition, 6 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_DM_01187@rel:R25-11#53c83f22
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#3ce3241d2026-09-30
  • R21-11rel:R21-11#b903f9b62026-10-14
  • R22-11rel:R22-11#050a1aeb2026-10-14
  • R23-11rel:R23-11#3eb7f9782026-10-14
  • R24-11rel:R24-11#6a83a6b32026-10-14
  • R25-11rel:R25-11#53c83f222026-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

função ~ByteRange [SWS_DM_01188] Upstream: RS_Diag_04251

~ByteRange () noexcept;

Destructor of ByteRange.

Header-Datei#include "ara/diag/dynamic_access_list_diag_service_builder.h"
Scopeclass ara::diag::DynamicAccessListDiagServiceBuilder::ByteRange
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_DM_01188
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01188@rel:R25-11#5718bd3f
Content hash
5718bd3f
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01188
Status: valid/unmigrated Version: rel:R25-11#955d556b Versionshistorie & Revisions (1 transition, 6 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_DM_01188@rel:R25-11#955d556b
Point-in-Time History:
Recorded Revisions (6):
  • R25-11rel:R25-11#06913fd72026-09-30
  • R21-11rel:R21-11#353666752026-10-14
  • R22-11rel:R22-11#a69400002026-10-14
  • R23-11rel:R23-11#a2058a942026-10-14
  • R24-11rel:R24-11#5947fcb12026-10-14
  • R25-11rel:R25-11#955d556b2026-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