DEENESPTFRRUARHIKOZHNL

فئة ara::diag::DiagnosticSovdRecordContentElementDataView

[SWS_DM_02270] Upstream: RS_Diag_04260

class DiagnosticSovdRecordContentElementDataView {...};

View on a DiagnosticSovdContentElementData with Record type.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopenamespace ara::diag

دليل المستخدممولَّد بالذكاء الاصطناعي

يوفر منظوراً منظماً لإدارة سجلات بيانات تشخيص SOVD وقراءتها استناداً إلى المفاتيح.
مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 23c95a966eb0 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

يوفر منظوراً منظماً لإدارة سجلات بيانات تشخيص SOVD وقراءتها استناداً إلى المفاتيح.

توفر الفئة منظوراً منظماً لسجلات بيانات SOVD من النوع RecordContentElementData لتشخيص Adaptive Platform (SWS Diagnostics §8.60.11 «Class: DiagnosticSovdRecordContentElementDataView»). وهي تتيح إضافة عناصر التشخيص الأولية والمعقدة وقراءتها وإدارتها بالاستناد إلى المفاتيح عبر دوال آمنة خيطياً مثل Add أو operator[] ([SWS_DM_02288]). ويتمثل الشرط المسبق لكافة العمليات في أن يكون عنصر البيانات الأساسي من نوع Record المطلوب، وإلا فستتوقف الاستدعاءات مع حدوث خطأ في نتيجة الإرجاع (Result).

السياق

تعمل الفئة ara::diag::DiagnosticSovdRecordContentElementDataView في سياق Service-Oriented Vehicle Diagnostics (SOVD) كمنظور مهيكل (View) لعنصر بيانات تشخيص من النوع RecordContentElementData أو ContentData (SWS Diagnostics §8.60.11 «Class: DiagnosticSovdRecordContentElementDataView»، [SWS_DM_02270]). وهي تتيح لتطبيقات التشخيص ونظام وقت تشغيل التشخيص إنشاء سجلات بيانات مبنية على الحقول (Records) من أزواج المفاتيح والقيم، وقراءتها وتعديلها ([SWS_DM_02288]). وتتمثل أطراف التفاعل، من جهة، في تطبيقات خدمة التشخيص التي توفّر بيانات التشخيص أو تستهلكها، ومن جهة أخرى، في كائنات الحاويات العامة الأساسية من النوع DiagnosticSovdContentElementData. ومن خلال واجهات قياسية، يفصل المنظور التعديل الخاص بالتطبيق عن شكل التخزين المادي لمحتويات التشخيص.

دورة الحياة

وفقاً للغرض المخصص للمنظور، فإن النسخة لا تحتفظ افتراضياً إلا بمرجع إلى كائن بيانات موجود من النوع DiagnosticSovdContentElementData (تفسير). سؤال Q-012bdd3d2b3a7ec4 (مفتوح) ويترتب على ذلك وجوب أن تغطي دورة حياة سجل البيانات المُشار إليه فترة وجود المنظور لتجنب المراجع غير الصالحة. ووفقاً للمواصفة، صُممت كافة دوال الفئة المصرح عنها لتكون آمنة خيطياً (thread-safe) وآمنة من حيث الاستثناءات (exception safe) ([SWS_DM_02273]، [SWS_DM_02288]). ويمكن إدارة دورة حياة عناصر البيانات المضمنة داخل سجل البيانات ديناميكياً: يمكن إزالة العناصر الموجودة بالكامل عبر Clear ([SWS_DM_02276])، أو حذفها بشكل مستهدف باستخدام Remove بناءً على مفتاحها ([SWS_DM_02287])، أو استبعادها من الحاوية عبر مكرر باستخدام Erase ([SWS_DM_02294]).

مسار الاستخدام

يتضمن مسار الاستخدام النموذجي تجهيز الذاكرة، وإضافة العناصر، والتنقل، وقراءة الحقول:

  • تجهيز الذاكرة: لتجنب عمليات إعادة التخصيص عند معرفة أعداد العناصر مسبقاً، يمكن تحديد السعة استباقياً باستخدام Reserve ([SWS_DM_02283]). ويمكن الاستعلام عن السعة الحالية عبر Capacity ([SWS_DM_02274]).
  • تعبئة سجل البيانات: تُسجل القيم ذات الأنواع المحددة مع توفير مفتاح (key) عبر عمليات Add المحملة بشكل زائد. وتدعم أنواع البيانات الأولية مثل std::int64_t ([SWS_DM_02288])، std::uint64_t ([SWS_DM_02289])، double ([SWS_DM_02290])، bool ([SWS_DM_02291]) وقيم السلاسل النصية عبر ara::core::StringView ([SWS_DM_02292]). كما يمكن إضافة عناصر تشخيص متداخلة من النوع DiagnosticSovdContentElementData ([SWS_DM_02293]).
  • الفحص والاستعلام: قبل الوصول، يمكن التحقق من الفراغ باستخدام Empty ([SWS_DM_02275]) والتحقق من عدد العناصر الموجودة باستخدام Size ([SWS_DM_02273]). ويتم التحقق من وجود مفتاح بواسطة HasContentElement ([SWS_DM_02284]).
  • الوصول والتكرار: يتم الوصول إلى عناصر محددة إما مباشرة عبر معامل الفهرسة operator[] الذي يوفر مرجعاً إلى العنصر الهدف ([SWS_DM_02277]، [SWS_DM_02278])، أو عبر دالة البحث Find ([SWS_DM_02285]، [SWS_DM_02286]). ولأغراض الاجتياز، تتوفر مكررات عبر Begin، End، CBegin وCEnd ([SWS_DM_02279]، [SWS_DM_02280]، [SWS_DM_02281]، [SWS_DM_02282]).
سير معالجة السجل عبر ViewالتطبيقRecordViewContentElementReserve(capacity)Add(key, value)إدراج عنصرتأكيدResult<void>operator[](key)حل المرجعReferenz bereitstellenResult<reference_wrapper>HasError()Result<void>

مخطط التسلسل: المسار النموذجي لتعبئة عنصر سجل بيانات SOVD وقراءته. المصادر: [SWS_DM_02283]، [SWS_DM_02288]، [SWS_DM_02277]، [SWS_DM_02271].

سيناريوهات الأخطاء

تخضع العمليات على سجل البيانات لشروط مسبقة صارمة فيما يتعلق بنوع الحاوية وصلاحية المفاتيح:

  • تعارضات الأنواع: تشترط كافة دوال الوصول والإدراج والحذف أن يكون العنصر الأساسي من النوع RecordContentElementData أو ContentData. وإلا ستفشل عمليات مثل Add ([SWS_DM_02288])، operator[] ([SWS_DM_02277])، HasContentElement ([SWS_DM_02284]) وRemove ([SWS_DM_02287]) وتُرجع ara::core::Result مع حالة خطأ.
  • المفاتيح غير الموجودة: تؤدي محاولة الوصول عبر operator[] أو الحذف عبر Remove إلى إرجاع خطأ إذا لم يكن المفتاح المطلوب موجوداً في سجل البيانات ([SWS_DM_02277]، [SWS_DM_02287]).
  • المكررات غير الصالحة عند الحذف: يُرجع الحذف بواسطة المكرر عبر Erase رمز الخطأ DiagErrc::kInvalidArgument في حال وجود معاملات غير صالحة أو ربط بيانات غير صحيح ([SWS_DM_02294]).
  • معالجة الأخطاء الصريحة: بالإضافة إلى الأخطاء الخاصة بالدوال، يمكن تمييز الحالة الإجمالية لسجل البيانات صراحة كحالة خطأ عبر SetError باستخدام ara::core::ErrorCode ([SWS_DM_02272]). ويمكن للمستدعين الاستعلام عن وجود خطأ عبر HasError، والتي ترجع ara::diag::DiagSovdErrc مطابقاً في حالة الخطأ ([SWS_DM_02271]).

تم إنشاء هذا الدليل بواسطة نظام ذكاء اصطناعي بناءً على مواصفة AUTOSAR AP R25-11.

خريطة الأعضاء

مخطط الفئة

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

G nara__diag__DiagnosticSovdRecordContentElementDataView16 DiagnosticSovdRecordContentElementDataView + Add() + Begin() + CBegin() + CEnd() + Capacity() + Clear() + Empty() + End() + Erase() + Find() + HasContentElement() + HasError() + Remove() + Reserve() + SetError() + Size() … 1 weitere

عرض التفاصيل

اختر عنصرًا من المخطط.

الدوال الأعضاء

Add دالة 6

Adds an element with the specified key with signed integer as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

التحميلات الزائدة Add 6
auto Add (ara::core::StringView key, std::int64_t content_element) noexcept -> ara::core::Result< void >; SWS_DM_02288
auto Add (ara::core::StringView key, std::uint64_t content_element) noexcept -> ara::core::Result< void >; SWS_DM_02289
auto Add (ara::core::StringView key, double content_element) noexcept -> ara::core::Result< void >; SWS_DM_02290
auto Add (ara::core::StringView key, bool content_element) noexcept -> ara::core::Result< void >; SWS_DM_02291
auto Add (ara::core::StringView key, ara::core::StringView content_ element) noexcept -> ara::core::Result< void >; SWS_DM_02292
auto Add (ara::core::StringView key, DiagnosticSovdContentElementData content_element) noexcept -> ara::core::Result< void >; SWS_DM_02293
Begin دالة

Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto Begin () noexcept -> DiagnosticSovdRecordContentElementData Iterator;
Capacity دالة

Returns the capacity of the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto Capacity () const noexcept -> std::size_t;
CBegin دالة

Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto CBegin () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;
CEnd دالة

Returns the end operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto CEnd () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;
Clear دالة

Removes all the content element in the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto Clear () noexcept -> void;
Empty دالة

Returns if the RecordContentElementData is empty. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto Empty () const noexcept -> bool;
End دالة

Returns the end operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto End () noexcept -> DiagnosticSovdRecordContentElementData Iterator;
Erase دالة

Erases a content element from DiagnosticSovdRecordContentElementData. The current element shall be of RecordContentElementData or ContentData

auto Erase (DiagnosticSovdRecordContentElementDataIterator iterator) noexcept -> ara::core::Result< void >;
Find دالة 2

Find an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

التحميلات الزائدة Find 2
auto Find (ara::core::StringView key) noexcept -> DiagnosticSovdRecord ContentElementDataIterator; SWS_DM_02285
auto Find (ara::core::StringView key) const noexcept -> DiagnosticSovd RecordContentElementDataConstIterator; SWS_DM_02286

Returns if the RecordContentElementData contains an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto HasContentElement (ara::core::StringView key) const noexcept -> ara::core::Result< bool >;
HasError دالة

Returns if the content contains an error.

auto HasError () const noexcept -> ara::core::Result< void >;
Remove دالة

Removes an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto Remove (ara::core::StringView key) noexcept -> ara::core::Result< bool >;
Reserve دالة

Reserves the capacity of the RecordContentElementData.

auto Reserve (std::size_t capacity) noexcept -> void;
SetError دالة

Sets the content to be erroneous.

void SetError (ara::core::ErrorCode error_code) noexcept;
Size دالة

Returns the count of elements in the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

auto Size () const noexcept -> std::size_t;

المعاملات

operator[] دالة 2

Access the content element with specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

التحميلات الزائدة [] 2
auto operator[] (ara::core::StringView key) noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContent ElementData > >; SWS_DM_02277
auto operator[] (ara::core::StringView key) const noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContent ElementData const > >; SWS_DM_02278

توثيق الدوال

دالة Add [SWS_DM_02288] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, std::int64_t content_element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key with signed integer as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 50e9ae94ca49 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تُدرج الدالة المتزامنة [SWS_DM_02288] قيمة عدد صحيح ذي إشارة (std::int64_t) تحت المفتاح المحدد key (ara::core::StringView) في بنية بيانات SOVD. وقد تم الإعلان عنها كدالة تابعة للفئة ara::diag::DiagnosticSovdRecordContentElementDataView وتضمينها عبر الترويسة ara/diag/diagnostic_sovd_content_element_data.h.

المتطلبات ومعالجة الأخطاء

وفقًا لـ [SWS_DM_02288]، يجب أن يكون كائن DiagnosticSovdContentElementData الأساسي من النوع RecordContentElementData أو ContentData، في حين يجب ألا يكون العنصر المراد إضافته نفسه ContentData. تم تعريف الدالة كـ noexcept وتُرجع ara::core::Result<void>. وإذا فشلت العملية – على سبيل المثال لأن الحاوية الهدف ذات نوع غير متوافق أو لا يمكن إضافة العنصر – فإن النتيجة تحتوي على رمز خطأ؛ تفسير: من المحتمل أن يكون هذا هو الحال أيضًا في حالة تعارض المفاتيح. سؤال Q-524c832a794559b7 (مفتوح)

التزامن والتفاعل

تم تحديد التنفيذ بأنه آمن مؤشريًا وآمن استثنائيًا [SWS_DM_02288]. وتوجد داخل الواجهة تحميلات زائدة مطابقة للنوع للأعداد الصحيحة عديمة الإشارة ([SWS_DM_02289])، وأعداد الفاصلة العائمة ([SWS_DM_02290])، والقيم المنطقية ([SWS_DM_02291])، والسلاسل النصية ([SWS_DM_02292])، وكذلك عناصر البيانات المتداخلة ([SWS_DM_02293]). كما يتم توفير نفس الدالة في الفئة الحاملة DiagnosticSovdContentElementData ([SWS_DM_02368]).

تم إنشاء ملاحظة الاستخدام هذه آليًا وتستند إلى مواصفة AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02288
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02288@rel:R25-11#a176a339
Content hash
a176a339
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02288
Status: valid/unmigrated Version: rel:R25-11#904cfff5 Versionshistorie & Revisions (1 transition)
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_02288@rel:R25-11#904cfff5
Point-in-Time History:
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

دالة Add [SWS_DM_02289] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, std::uint64_t content_element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key with unsigned integer as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 71f3685f0581 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تُستخدم دالة العضو المتزامنة Add للفئة ara::diag::DiagnosticSovdRecordContentElementDataView لإضافة قيمة عدد صحيح غير موقع 64 بت تحت مفتاح محدد ([SWS_DM_02289]). تُستخدم كجزء من وظائف SOVD في Diagnostic Management، والتي توفر اتصالات تشخيصية وفقًا لـ ASAM SOVD (AUTOSAR_AP_SWS_Diagnostics §1.0 «Introduction and functional overview»، [SWS_DM_01369]).

الاستخدام والاستدعاء

يتم تضمين الطريقة عبر ملف الرأس ara/diag/diagnostic_sovd_content_element_data.h. وتتوقع كمعاملات المعرف key كـ ara::core::StringView والقيمة المراد إضافتها content_element كـ std::uint64_t ([SWS_DM_02289]). يتم الاستدعاء بشكل متزامن، وهو محدد كـ noexcept ويُرجع النتيجة في شكل ara::core::Result<void>.

معالجة الأخطاء والشروط الحدية

  • شروط النوع: يجب أن يكون DiagnosticSovdContentElementData المنشأ إما من النوع RecordContentElementData أو ContentData. علاوة على ذلك، يجب ألا يكون العنصر المراد إضافته نفسه من النوع ContentData ([SWS_DM_02289]).
  • سلوك الخطأ: إذا تم انتهاك أحد متطلبات النوع هذه أو تعذر إضافة العنصر، تُرجع الدالة ara::core::Result خاطئًا ([SWS_DM_02289]). لا تذكر المواصفة رموز خطأ معينة في هذا الموضع؛ من المحتمل أن يقدم كائن النتيجة رمز خطأ مطابقًا لنطاق التشخيص. سؤال Q-ffca131eece93b35 (مفتوح)
  • التزامن: الدالة محددة صراحة كـ thread-safe وexception safe ([SWS_DM_02289]).

تفاعل

تنتمي الطريقة إلى عائلة من التحميلات الزائدة المحددة بالنوع لتسجيل عناصر البيانات الأولية والمعقدة، بما في ذلك متغيرات للأعداد الصحيحة الموقعة ([SWS_DM_02288]) والعناصر الفرعية المنظمة ([SWS_DM_02293]). يتم تقديم واجهة مكافئة بالتوازي في الفئة DiagnosticSovdContentElementData ([SWS_DM_02369]).

تم إنشاء ملاحظة الاستخدام هذه آليًا استنادًا إلى مواصفة AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02289
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02289@rel:R25-11#6ef3d55b
Content hash
6ef3d55b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02289
Status: valid/unmigrated Version: rel:R25-11#24f33415 Versionshistorie & Revisions (1 transition)
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_02289@rel:R25-11#24f33415
Point-in-Time History:
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

دالة Add [SWS_DM_02290] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, double content_element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key with double as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: f0fc5f61ff31 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تضيف الدالة العضو المتزامنة Add للفئة ara::diag::DiagnosticSovdRecordContentElementDataView قيمة نقطة عائمة أولية من النوع double تحت المفتاح المحدد key إلى سجل بيانات [SWS_DM_02290]. تُستخدم الدالة لإنشاء بيانات تشخيصية منظمة لوظائف خادم SOVD الخاصة بـ Diagnostic Management [SWS_DM_01369].

تنطبق الشروط المسبقة التالية المتعلقة بالنوع على التنفيذ [SWS_DM_02290]:

  • يجب أن يكون الكائن الهدف من النوع RecordContentElementData أو ContentData.
  • لا يجوز أن يكون العنصر المراد إضافته في حد ذاته من النوع ContentData.

تم التصريح عن الطريقة على أنها noexcept (exception safe) وتم تحديدها على أنها آمنة لمؤشرات الترابط (thread-safe) للوصول المتزامن [SWS_DM_02290]. إذا فشلت الإضافة – على سبيل المثال لأن نوع الكائن غير متوافق أو لا يمكن إدراج العنصر – يتم الإبلاغ عن خطأ عبر ara::core::Result<void> المُرجع [SWS_DM_02290]. تفسير: من المرجح أن يتم تمثيل سبب الخطأ الدقيق في ara::core::ErrorCode الخاص بكائن النتيجة. سؤال Q-c987f75d785d3e90 (مفتوح)

بالاقتران مع التحميلات الزائدة المرتبطة لـ Add، تتيح الطريقة التعبئة المنظمة لسجلات بيانات SOVD بقيم أعداد صحيحة ([SWS_DM_02288]، [SWS_DM_02289])، أو قيم منطقية [SWS_DM_02291]، أو سلاسل نصية [SWS_DM_02292]، أو بيانات عناصر أكثر تعقيداً [SWS_DM_02293].

تم توليد هذا النص بواسطة ذكاء اصطناعي استنادًا إلى مواصفة AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02290
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02290@rel:R25-11#fbaeb761
Content hash
fbaeb761
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02290
Status: valid/unmigrated Version: rel:R25-11#97a1f619 Versionshistorie & Revisions (1 transition)
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_02290@rel:R25-11#97a1f619
Point-in-Time History:
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

دالة Add [SWS_DM_02291] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, bool content_element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key with boolean as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 852e73b24037 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تُستخدم الدالة Add للفئة ara::diag::DiagnosticSovdRecordContentElementDataView لإضافة قيمة منطقية أولية تحت مفتاح محدد إلى عنصر بيانات SOVD [SWS_DM_02291]. يتم الاستدعاء عبر ملف الرأس ara/diag/diagnostic_sovd_content_element_data.h باستخدام اسم المعامل key من النوع ara::core::StringView وقيمة حمولة البيانات content_element من النوع bool [SWS_DM_02291]. نظراً لأن الطريقة تُرجع مباشرة ara::core::Result<void> ولم يتم تحديد أي سلوك غير متزامن، فمن المرجح أن تتم العملية بشكل متزامن. سؤال Q-a16b08bf68f8590b (مفتوح)

تتم معالجة الأخطاء عبر ara::core::Result<void> المُرجع. يتم الإبلاغ عن خطأ إذا لم يكن DiagnosticSovdContentElementData الأساسي من النوع RecordContentElementData ولا ContentData، أو إذا تعذرت إضافة العنصر [SWS_DM_02291]. لم يتم تفصيل رموز أخطاء محددة في مقتطف المواصفة.

فيما يتعلق بالتزامن وأمان التنفيذ، تم تصنيف الطريقة على أنها thread-safe وتوفر أماناً من الاستثناءات (noexcept) [SWS_DM_02291]. كقيد هيكلي، تتطلب المواصفة ألا يكون العنصر المراد إضافته في حد ذاته من النوع ContentData [SWS_DM_02291].

في النظام الكلي، تكمل هذه الطريقة التحميلات الزائدة ذات الصلة للأعداد الصحيحة ذات الإشارة [SWS_DM_02288]، والأعداد الصحيحة بدون إشارة [SWS_DM_02289]، وأرقام الفاصلة العائمة [SWS_DM_02290]، والسلاسل النصية [SWS_DM_02292] بالإضافة إلى عناصر المحتوى التابعة [SWS_DM_02293]. بالإضافة إلى ذلك، توجد واجهة مماثلة في الفئة DiagnosticSovdContentElementData [SWS_DM_02371] في سياق وظائف خادم SOVD الخاصة بـ Diagnostic Management [SWS_DM_01369].

تم توليد إشعار الاستخدام هذا آليًا استنادًا إلى مواصفة AUTOSAR الإصدار R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02291
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02291@rel:R25-11#6c71e5de
Content hash
6c71e5de
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02291
Status: valid/unmigrated Version: rel:R25-11#ec2b8c58 Versionshistorie & Revisions (1 transition)
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_02291@rel:R25-11#ec2b8c58
Point-in-Time History:
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

دالة Add [SWS_DM_02292] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, ara::core::StringView content_ element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key with string as primitive value. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 6e36a573fd27 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام

تُستخدم الطريقة المتزامنة Add للفئة ara::diag::DiagnosticSovdRecordContentElementDataView لإضافة إدخال يحتوي على مفتاح وقيمة سلسلة نصية أولية إلى عنصر بيانات SOVD [SWS_DM_02292]. يتم الاستدعاء عبر المعاملين key و content_element، واللذين يتم تمرير كل منهما كـ ara::core::StringView [SWS_DM_02292]. كقيمة إرجاع، تقدم الدالة ara::core::Result<void> للإشارة إلى نتيجة العملية [SWS_DM_02292].

معالجة الأخطاء

إذا فشلت الإضافة، تُرجع الطريقة خطأً في ara::core::Result [SWS_DM_02292]. يحدث هذا إذا لم يكن الكائن الأساسي من النوع RecordContentElementData أو ContentData أو إذا تعذرت إضافة العنصر [SWS_DM_02292]. تفسير: من المرجح أن يتم تحديد رموز الخطأ المحددة من خلال نطاق الخطأ المرتبط بالتنفيذ، نظراً لأن المواصفة لا تسردها صراحةً في تعريف الدالة. سؤال Q-ba196615f0cd8fc8 (مفتوح)

التزامن والشروط الحدية

تم التصريح عن العملية بأنها آمنة لمؤشرات الترابط (thread-safe) وكذلك آمنة من الاستثناءات (exception safe) ومزودة بالحاشية noexcept [SWS_DM_02292]. كشرط مسبق أساسي، يجب ألا يكون العنصر الممرر كمعامل في حد ذاته من النوع ContentData [SWS_DM_02292].

تفاعل

الدالة جزء من AUTOSAR Diagnostic Management (DM) لتحقيق SOVD لـ Adaptive Platform AUTOSAR_AP_SWS_Diagnostics §1 «Introduction and functional overview»، حيث يعمل DM كخادم SOVD [SWS_DM_01369]. بالنسبة لنفس النطاق، توجد تحميلات زائدة مماثلة لـ Add للأعداد الصحيحة ذات الإشارة [SWS_DM_02288]، والأعداد الصحيحة بدون إشارة [SWS_DM_02289]، وأرقام الفاصلة العائمة [SWS_DM_02290]، والقيم المنطقية [SWS_DM_02291]، بالإضافة إلى عناصر البيانات المعقدة [SWS_DM_02293]. بالإضافة إلى ذلك، يوفر ara::diag::DiagnosticSovdContentElementData تحميلاً زائداً مماثلاً للسلاسل النصية [SWS_DM_02372].

تم إنشاء هذا النص بواسطة ذكاء اصطناعي ويُستخدم كدليل إرشادي للاستخدام.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02292
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02292@rel:R25-11#3f9b38f4
Content hash
3f9b38f4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02292
Status: valid/unmigrated Version: rel:R25-11#36c87700 Versionshistorie & Revisions (1 transition)
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_02292@rel:R25-11#36c87700
Point-in-Time History:
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

دالة Add [SWS_DM_02293] Upstream: RS_Diag_04260

auto Add (ara::core::StringView key, DiagnosticSovdContentElementData content_element) noexcept -> ara::core::Result< void >;

Adds an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData and the element to add shall not be of type ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: e37cd37f0d43 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تضيف الدالة المتزامنة Add للفئة ara::diag::DiagnosticSovdRecordContentElementDataView عنصرًا متداخلاً من النوع DiagnosticSovdContentElementData إلى عنصر بيانات تحت المفتاح المحدد key [SWS_DM_02293]. يخدم ذلك التوفير المنظم لبيانات التشخيص في إطار SOVD (Service-Oriented Vehicle Diagnostics)، والذي يدعمه Diagnostic Management (DM) على Adaptive Platform ([SWS_DM_01369]، AUTOSAR_AP_SWS_Diagnostics §1 «Introduction and functional overview»).

عند الاستخدام، يجب الالتزام بمتطلبات النوع الإلزامية:

  • يجب أن يكون كائن البيانات المستدعي من النوع RecordContentElementData أو ContentData [SWS_DM_02293].
  • يجب ألا يكون العنصر المراد إضافته content_element صراحةً من النوع ContentData [SWS_DM_02293].
  • استكمالاً لبنى البيانات المعقدة، تتوفر تحميلات زائدة منفصلة للقيم الأولية، على سبيل المثال لقيم الأعداد الصحيحة ([SWS_DM_02288]، [SWS_DM_02289])، وأعداد الفاصلة العائمة [SWS_DM_02290]، والقيم المنطقية [SWS_DM_02291]، أو السلاسل النصية [SWS_DM_02292]، كما هي محددة أيضًا في DiagnosticSovdContentElementData [SWS_DM_02373].

لمعالجة الأخطاء، تُرجع الدالة ara::core::Result<void>. وإذا فشلت العملية – على سبيل المثال بسبب انتهاك شروط النوع المسبقة أو تعذر إدراج العنصر – فإن النتيجة تحتوي على خطأ [SWS_DM_02293]. ويُرجح أن يستند ترميز الخطأ الدقيق إلى أخطاء خاصة بمجال إدارة التشخيص. سؤال Q-56c929209d0c7358 (مفتوح) وفيما يتعلق بالتزامن والأمان، تم الإعلان عن الدالة كـ noexcept، وتُعتبر آمنة استثنائيًا (exception safe)، كما تم تحديدها بأنها آمنة مؤشريًا (thread-safe) للوصول المتزامن [SWS_DM_02293].

تم إنشاء ملاحظة الاستخدام هذه بواسطة ذكاء اصطناعي بناءً على مواصفات AUTOSAR R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key
content_elementThe content element to add

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element cannot be added

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

Record
AUTOSAR/AP/record/SWS_DM_02293
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02293@rel:R25-11#49bcd4e4
Content hash
49bcd4e4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02293
Status: valid/unmigrated Version: rel:R25-11#c72144cd Versionshistorie & Revisions (1 transition)
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_02293@rel:R25-11#c72144cd
Point-in-Time History:
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

دالة Begin [SWS_DM_02279] Upstream: RS_Diag_04260

auto Begin () noexcept -> DiagnosticSovdRecordContentElementData Iterator;

Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02279
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02279@rel:R25-11#51dda1ca
Content hash
51dda1ca
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02279
Status: valid/unmigrated Version: rel:R25-11#c5fa8675 Versionshistorie & Revisions (1 transition)
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_02279@rel:R25-11#c5fa8675
Point-in-Time History:
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

دالة CBegin [SWS_DM_02281] Upstream: RS_Diag_04260

auto CBegin () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;

Returns the begin operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataConstIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02281
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02281@rel:R25-11#fab142f0
Content hash
fab142f0
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02281
Status: valid/unmigrated Version: rel:R25-11#146e5829 Versionshistorie & Revisions (1 transition)
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_02281@rel:R25-11#146e5829
Point-in-Time History:
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

دالة CEnd [SWS_DM_02282] Upstream: RS_Diag_04260

auto CEnd () noexcept -> DiagnosticSovdRecordContentElementDataConst Iterator;

Returns the end operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataConstIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02282
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02282@rel:R25-11#3dbfbc11
Content hash
3dbfbc11
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02282
Status: valid/unmigrated Version: rel:R25-11#e0709028 Versionshistorie & Revisions (1 transition)
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_02282@rel:R25-11#e0709028
Point-in-Time History:
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

دالة Capacity [SWS_DM_02274] Upstream: RS_Diag_04260

auto Capacity () const noexcept -> std::size_t;

Returns the capacity of the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
std::size_tThe capacity of the RecordContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02274
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02274@rel:R25-11#e95a01e9
Content hash
e95a01e9
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02274
Status: valid/unmigrated Version: rel:R25-11#fa9d250c Versionshistorie & Revisions (1 transition)
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_02274@rel:R25-11#fa9d250c
Point-in-Time History:
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

دالة Clear [SWS_DM_02276] Upstream: RS_Diag_04260

auto Clear () noexcept -> void;

Removes all the content element in the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: b8ae42318d33 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

الاستخدام والدلالات

تُستخدم الدالة Clear للفئة ara::diag::DiagnosticSovdRecordContentElementDataView للإزالة المتزامنة لجميع عناصر المحتوى من RecordContentElementData [SWS_DM_02276]. يتم الاستدعاء بدون معلمات عبر ملف الرأس #include "ara/diag/diagnostic_sovd_content_element_data.h" ولا يحتوي على قيمة إرجاع (void) [SWS_DM_02276].

يُعرّف كشرط مسبق للتنفيذ أن تكون نسخة البيانات الأساسية من النوع RecordContentElementData أو ContentData [SWS_DM_02276]. تفسير: نظراً لأن الدالة مصرح عنها كـ noexcept ولا تبلغ عن حالة خطأ، فمن المرجح أن التوافق مع نوع البيانات هذا مضمون مسبقاً بالفعل عند إنشاء كائن العرض (View-Objekt). سؤال Q-93e43eee235a8f12 (مفتوح)

معالجة الأخطاء والتزامن

فيما يتعلق بأمان التنفيذ، حُددت الدالة على أنها آمنة من الاستثناءات (exception safe) ولا تُطلق أي استثناءات بفضل التصريح noexcept [SWS_DM_02276]. بالإضافة إلى ذلك، يصنف الاستدعاء صراحة على أنه آمن بالنسبة للخيوط (thread-safe)، بحيث يُسمح بعمليات الوصول المتزامنة [SWS_DM_02276].

التفاعل والتمايز

في بيئة SOVD، تتمايز هذه الدالة عن الدالة Clear في DiagnosticSovdContentElementData [SWS_DM_02338]، المعرفة لعناصر المصفوفة والتي تُرجع ara::core::Result<void>. كما يوجد تمايز وظيفي مع دالة العرض للمصفوفات [SWS_DM_02233] وكذلك مع الحذف غير المتزامن لرموز DTC عبر ara::diag::DTCInformation::Clear، والذي يُرجع ara::core::Future<void> وهو غير آمن بالنسبة للخيوط [SWS_DM_00671].

تم توليد ملاحظة الاستخدام هذه تلقائياً بناءً على المواصفة.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_DM_02276
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02276@rel:R25-11#0d6703a2
Content hash
0d6703a2
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02276
Status: valid/unmigrated Version: rel:R25-11#7b14c56c Versionshistorie & Revisions (1 transition)
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_02276@rel:R25-11#7b14c56c
Point-in-Time History:
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

دالة Empty [SWS_DM_02275] Upstream: RS_Diag_04260

auto Empty () const noexcept -> bool;

Returns if the RecordContentElementData is empty. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
boolIf the record is empty

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

Record
AUTOSAR/AP/record/SWS_DM_02275
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02275@rel:R25-11#968e21f6
Content hash
968e21f6
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02275
Status: valid/unmigrated Version: rel:R25-11#e44b3c9e Versionshistorie & Revisions (1 transition)
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_02275@rel:R25-11#e44b3c9e
Point-in-Time History:
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

دالة End [SWS_DM_02280] Upstream: RS_Diag_04260

auto End () noexcept -> DiagnosticSovdRecordContentElementData Iterator;

Returns the end operator of a RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataIteratorThe iterator

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

Record
AUTOSAR/AP/record/SWS_DM_02280
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02280@rel:R25-11#cf1d9a97
Content hash
cf1d9a97
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02280
Status: valid/unmigrated Version: rel:R25-11#030171ae Versionshistorie & Revisions (1 transition)
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_02280@rel:R25-11#030171ae
Point-in-Time History:
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

دالة Erase [SWS_DM_02294] Upstream: RS_Diag_04260

auto Erase (DiagnosticSovdRecordContentElementDataIterator iterator) noexcept -> ara::core::Result< void >;

Erases a content element from DiagnosticSovdRecordContentElementData. The current element shall be of RecordContentElementData or ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: e909dafa05b8 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تُستخدم دالة العضو Erase للفئة ara::diag::DiagnosticSovdRecordContentElementDataView لإزالة عنصر محتوى تابع من سجل بيانات التشخيص ([SWS_DM_02294]، AUTOSAR_AP_SWS_Diagnostics §8.60.11.1.1.14 «Erase»). يتم توفير التصريح عبر ملف الرأس #include "ara/diag/diagnostic_sovd_content_element_data.h" ([SWS_DM_02294]).

الاستخدام والدلالة: كمعلمة إدخال، تأخذ الدالة المكرر iterator من النوع DiagnosticSovdRecordContentElementDataIterator، والذي يشير إلى العنصر المحدد المطلوب حذفه ([SWS_DM_02294]). تفسير: نظراً لأن الدالة مصرح عنها بـ noexcept وتُرجع مباشرةً ara::core::Result<void> بدلاً من كائن مستقبلي، فمن المرجح أن عملية الحذف تُنفذ بشكل متزامن في خيط المستدعي. سؤال Q-148ae95c28910b16 (مفتوح) عند التنفيذ الناجح، تُرجع الدالة ara::core::Result<void> فارغة ([SWS_DM_02294]).

معالجة الأخطاء: تفشل العملية إذا لم يكن عنصر البيانات المعني من النوع RecordContentElementData ولا من النوع ContentData، أو إذا تعذرت إزالة العنصر من الحاوية ([SWS_DM_02294]). في حالات الخطأ هذه، تُرجع الدالة خطأً مع رمز الخطأ DiagErrc::kInvalidArgument ([SWS_DM_02294]).

التزامن والتفاعل: بالنسبة للاستدعاء، حُددت الواجهة على أنها آمنة بالنسبة للخيوط (thread-safe) وكذلك آمنة من الاستثناءات (exception safe) ([SWS_DM_02294]). من الناحية الفنية، تتوافق الدالة مع صيغة المصفوفة ara::diag::DiagnosticSovdArrayContentElementDataView::Erase ([SWS_DM_02247]، AUTOSAR_AP_SWS_Diagnostics §8.60.5.1.1.8 «Erase») وتتفاعل مع عمليات الحذف الأساسية لفئة الحاوية DiagnosticSovdContentElementData للمصفوفات ([SWS_DM_02352]) والسجلات ([SWS_DM_02374]).

تم توليد هذا النص بواسطة ذكاء اصطناعي وهو بمثابة دليل توجيهي. المواصفات الرسمية لـ AUTOSAR هي وحدها الملزمة.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
iteratorThe iterator pointing to the element to erase

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the element couldn’t be erased

Fehler

FehlercodeBeschreibung
DiagErrc::kInvalidArgumentrollback_semantics e.g. kPreFailed with internal debouncing

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

Record
AUTOSAR/AP/record/SWS_DM_02294
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02294@rel:R25-11#7e269bed
Content hash
7e269bed
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02294
Status: valid/unmigrated Version: rel:R25-11#3ad27e08 Versionshistorie & Revisions (1 transition)
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_02294@rel:R25-11#3ad27e08
Point-in-Time History:
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

دالة Find [SWS_DM_02285] Upstream: RS_Diag_04260

auto Find (ara::core::StringView key) noexcept -> DiagnosticSovdRecord ContentElementDataIterator;

Find an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 771db16932a9 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تُستخدم دالة العضو المتزامنة Find لفئة العرض (View) ara::diag::DiagnosticSovdRecordContentElementDataView للعثور على عنصر بناءً على مفتاحه ([SWS_DM_02285]، AUTOSAR_AP_SWS_Diagnostics §8.60.11.1.1.15 «Find»). ويتم تمرير key من النوع ara::core::StringView كمعامل؛ وكنتيجة تُرجع الدالة مكررًا قابلاً للتعديل من النوع DiagnosticSovdRecordContentElementDataIterator ([SWS_DM_02285]). والشرط المسبق للاستخدام هو أن يكون DiagnosticSovdContentElementData المقترن من النوع RecordContentElementData أو ContentData ([SWS_DM_02285]).

فيما يتعلق بمعالجة الأخطاء والتزامن، تم التصريح عن الدالة كـ noexcept، وتعتبر آمنة من حيث الاستثناءات (exception safe)، كما أنها آمنة لخيوط المعالجة (thread-safe) وفقًا للمواصفة ([SWS_DM_02285]). ونظرًا لأن نوع الإرجاع هو مكرر مباشرة وليس ara::core::Result، فإن الدالة لا تبلغ عن رموز خطأ محددة؛ وإذا لم يكن المفتاح المطلوب موجودًا، فمن المحتمل أن يتم إرجاع مكرر النهاية (End-Iterator). سؤال Q-a34054c9851517ae (مفتوح)

في التفاعل مع الواجهات ذات الصلة، يوجد على نفس فئة العرض تحميل زائد ثابت (const) ([SWS_DM_02286]، AUTOSAR_AP_SWS_Diagnostics §8.60.11.1.1.16 «Find»)، والذي يُرجع DiagnosticSovdRecordContentElementDataConstIterator. كما توفر الفئة DiagnosticSovdRecordContentElementDataConstView أيضًا واجهة ثابتة مماثلة ([SWS_DM_02306]، AUTOSAR_AP_SWS_Diagnostics §8.60.9.1.1.7 «Find»). في المقابل، تُغلف الدالة Find في DiagnosticSovdContentElementData مكررها داخل ara::core::Result، لتمثيل الأنواع غير الصالحة أو المفاتيح المفقودة كأخطاء ([SWS_DM_02365]، [SWS_DM_02366]، AUTOSAR_AP_SWS_Diagnostics §8.60.6.1.2.25 «Find»).

تم إنشاء ملاحظة الاستخدام هذه بواسطة ذكاء اصطناعي وتستند إلى معيار AUTOSAR الإصدار R25-11.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataIteratorA DiagnosticSovdRecordContentElementDataIterator

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

Record
AUTOSAR/AP/record/SWS_DM_02285
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02285@rel:R25-11#31d81d9b
Content hash
31d81d9b
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02285
Status: valid/unmigrated Version: rel:R25-11#5753ce0a Versionshistorie & Revisions (1 transition)
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_02285@rel:R25-11#5753ce0a
Point-in-Time History:
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

دالة Find [SWS_DM_02286] Upstream: RS_Diag_04260

auto Find (ara::core::StringView key) const noexcept -> DiagnosticSovd RecordContentElementDataConstIterator;

Find an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 8f0823d35aa0 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تُستخدم دالة العضو المتزامنة Find للفئة ara::diag::DiagnosticSovdRecordContentElementDataView للعثور على عنصر بيانات للقراءة فقط استناداً إلى مفتاحه ([SWS_DM_02286]، AUTOSAR AP SWS Diagnostics §8.60.11.1.1.16 «Find»).

الاستخدام والمعلمات

تستقبل الدالة المفتاح المطلوب البحث عنه key كـ ara::core::StringView ([SWS_DM_02286]). الشرط المسبق للاستدعاء هو أن تكون النسخة من نوع التشخيص RecordContentElementData أو ContentData ([SWS_DM_02286]). كقيمة إرجاع، تُرجع بشكل متزامن مكرراً ثابتاً من النوع DiagnosticSovdRecordContentElementDataConstIterator ([SWS_DM_02286]). في حال عدم وجود عنصر يطابق المفتاح، يُفترض أنه يتم إرجاع مكرر يحدد نهاية التسلسل (تفسير). سؤال Q-41a1eba77c0bc236 (مفتوح)

معالجة الأخطاء والتزامن

صُرح عن الواجهة بـ noexcept، وتضمن أمان الاستثناءات (exception safe)، ومحددة على أنها آمنة بالنسبة للخيوط (thread-safe) للوصول المتزامن ([SWS_DM_02286]). بخلاف الدالة في ara::diag::DiagnosticSovdContentElementData ([SWS_DM_02366])، لا يحدث إرجاع عبر ara::core::Result، ولهذا السبب لا يتم تمثيل حالات الخطأ عبر رموز خطأ.

تفاعل

لعمليات الوصول للكتابة أو التعديل على العرض ذاته، يتوفر التحميل الزائد غير الثابت [SWS_DM_02285] مع مكرر قابل للتعديل. أما بالنسبة لطرق العرض المخصصة للقراءة فقط، توفر الفئة DiagnosticSovdRecordContentElementDataConstView دالة Find مماثلة ([SWS_DM_02306]).

تم إنشاء ملاحظة الاستخدام هذه آلياً بناءً على متطلبات المواصفة القياسية.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
DiagnosticSovdRecordContentElementDataConstIteratorA DiagnosticSovdRecordContentElementDataIterator

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

Record
AUTOSAR/AP/record/SWS_DM_02286
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02286@rel:R25-11#4796d252
Content hash
4796d252
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02286
Status: valid/unmigrated Version: rel:R25-11#4bc892e6 Versionshistorie & Revisions (1 transition)
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_02286@rel:R25-11#4bc892e6
Point-in-Time History:
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

دالة HasContentElement [SWS_DM_02284] Upstream: RS_Diag_04260

auto HasContentElement (ara::core::StringView key) const noexcept -> ara::core::Result< bool >;

Returns if the RecordContentElementData contains an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
ara::core::Result< bool >boolean indicating if the elements is found or an error if Diagnostic SovdAbstractContentData is not of type RecordContentElement Data or ContentData OR the key is not found

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

Record
AUTOSAR/AP/record/SWS_DM_02284
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02284@rel:R25-11#7d6b8114
Content hash
7d6b8114
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02284
Status: valid/unmigrated Version: rel:R25-11#5b0918b8 Versionshistorie & Revisions (1 transition)
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_02284@rel:R25-11#5b0918b8
Point-in-Time History:
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

دالة HasError [SWS_DM_02271] Upstream: RS_Diag_04260

auto HasError () const noexcept -> ara::core::Result< void >;

Returns if the content contains an error.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
ara::core::Result< void >void result if it doesn’t contain an error, otherwise the ara::diag::DiagSovdErrc

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

Record
AUTOSAR/AP/record/SWS_DM_02271
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02271@rel:R25-11#ec5e6165
Content hash
ec5e6165
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02271
Status: valid/unmigrated Version: rel:R25-11#ee74ea5a Versionshistorie & Revisions (1 transition)
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_02271@rel:R25-11#ee74ea5a
Point-in-Time History:
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

دالة Remove [SWS_DM_02287] Upstream: RS_Diag_04260

auto Remove (ara::core::StringView key) noexcept -> ara::core::Result< bool >;

Removes an element with the specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: 1f7163c164e1 المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تُستخدم دالة الأعضاء المتزامنة Remove للفئة ara::diag::DiagnosticSovdRecordContentElementDataView للإزالة المستهدفة لإدخال ما بناءً على مفتاحه [SWS_DM_02287]. وهي معرّفة في ملف الترويسة ara/diag/diagnostic_sovd_content_element_data.h وتُعالج المعلمة key من النوع ara::core::StringView AUTOSAR_AP_SWS_Diagnostics §8.60.11.1.1.19 «Remove».

كقيمة إرجاع، تُرجع الدالة ara::core::Result<bool> [SWS_DM_02287]:

  • في حالة النجاح، تشير القيمة المنطقية المتضمنة إلى ما إذا كان قد أمكن بالفعل إزالة العنصر المعني.
  • يتم الإبلاغ عن خطأ عبر ara::core::Result إذا لم يكن العنصر من النوع RecordContentElementData أو ContentData أو إذا لم يتم العثور على المفتاح المحدد [SWS_DM_02287].

فيما يتعلق بالتزامن والقيود، تم تحديد الدالة بأنها آمنة من الاستثناءات (exception safe) وآمنة مؤشريًا (thread-safe) بالإضافة إلى التصريح عنها بـ noexcept [SWS_DM_02287]. وكتشرط استدعاء، تتطلب المواصفة إلزاميًا أن تكون النسخة المتطابقة الأساسية من النوع RecordContentElementData أو ContentData [SWS_DM_02287].

تفسير: من حيث الوظيفة، من المرجح أن تطابق العملية الحذف في فئة البيانات ara::diag::DiagnosticSovdContentElementData::Remove [SWS_DM_02367]، نظرًا لأن التوقيع والمعلمات وسيناريوهات الخطأ محددة بشكل متطابق تمامًا AUTOSAR_AP_SWS_Diagnostics §8.60.6.1.2.54 «Remove». سؤال Q-5a9ac29a9b5814be (مفتوح)

تم إنشاء ملاحظة الاستخدام هذه بواسطة ذكاء اصطناعي وتلخص متطلبات المواصفة.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
ara::core::Result< bool >A boolean indicating if the element could be removed or an error if DiagnosticSovdContentElementData is not of type RecordContent ElementData or ContentData OR the key is not found

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

Record
AUTOSAR/AP/record/SWS_DM_02287
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02287@rel:R25-11#74c95e00
Content hash
74c95e00
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02287
Status: valid/unmigrated Version: rel:R25-11#860cb787 Versionshistorie & Revisions (1 transition)
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_02287@rel:R25-11#860cb787
Point-in-Time History:
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

دالة Reserve [SWS_DM_02283] Upstream: RS_Diag_04260

auto Reserve (std::size_t capacity) noexcept -> void;

Reserves the capacity of the RecordContentElementData.

مُولَّد بالذكاء الاصطناعي غير مُراجَع النموذج: gemini-3.8-flash-medium · الجهد: medium · درجة الحرارة: غير قابل للتحكم · الموجّه: e9efb8221afc المصدر أسئلة مفتوحة (1)
مترجم من الدليل الألمانيgemini-3.8-flash-low · 2026-10-13 · الأصل الألماني

تحجز الطريقة Reserve للفئة ara::diag::DiagnosticSovdRecordContentElementDataView ([SWS_DM_02283]، AUTOSAR_AP_SWS_Diagnostics §8.60.11.1.1.20 «Reserve») السعة التخزينية المطلوبة لـ RecordContentElementData بشكل متزامن. ويُوفَّر الاستدعاء عبر الترويسة #include "ara/diag/diagnostic_sovd_content_element_data.h" ويستقبل المعامل capacity من النوع std::size_t. وكنتيجة إرجاع، تُعيد الدالة void.

أُعلنت الواجهة على أنها noexcept وحُددت على أنها آمنة من الاستثناءات («exception safe») ([SWS_DM_02283]). ولا تُعاد رموز أخطاء محددة ولا هياكل أخطاء. تفسير: في حال فشل تخصيص السعة المطلوبة، يُرجح اعتراض الخطأ داخليًا أو أن يؤدي إلى إنهاء البرنامج نظرًا لغياب قناة إرجاع مثل ara::core::Result. سؤال Q-ddbaac36f8ed58ad (مفتوح)

فيما يخص التزامن، عُرِّفت الدالة على أنها آمنة خيطيًا («thread-safe») ([SWS_DM_02283]). وبالتالي يمكن استدعاؤها على التوازي ودون إجراءات مزامنة إضافية من خيوط متعددة.

في التفاعل مع الواجهات ذات الصلة، يتصرف متغير المصفوفة DiagnosticSovdArrayContentElementDataView::Reserve ([SWS_DM_02240]) بالمثل. وخلافًا لذلك، يُعيد DiagnosticSovdContentElementData::Reserve ([SWS_DM_02345]) ara::core::Result<void> للإبلاغ عن تعارضات الأنواع. أما الدالة DiagnosticServiceDynamicAccessList::Reserve ([SWS_DM_01163])، فتُستخدم في المقابل للتخصيص المسبق لأسوأ الحالات لأنماط الخدمة، وتتوقع معامِلين، وهي ليست آمنة خيطيًا.

أُنشئ هذا النص بواسطة ذكاء اصطناعي ويُستخدم كدليل توجيهي بناءً على المواصفة.

دليل المنفِّذ قيد الإعداد (التعقيد I1)

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
capacityThe capacity

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_DM_02283
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02283@rel:R25-11#62435612
Content hash
62435612
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02283
Status: valid/unmigrated Version: rel:R25-11#6302b215 Versionshistorie & Revisions (1 transition)
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_02283@rel:R25-11#6302b215
Point-in-Time History:
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

دالة SetError [SWS_DM_02272] Upstream: RS_Diag_04260

void SetError (ara::core::ErrorCode error_code) noexcept;

Sets the content to be erroneous.

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
error_codeThe error to set

Rückgabewert

TypBeschreibung
None

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

Record
AUTOSAR/AP/record/SWS_DM_02272
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02272@rel:R25-11#3b4f89d8
Content hash
3b4f89d8
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02272
Status: valid/unmigrated Version: rel:R25-11#52f6abe5 Versionshistorie & Revisions (1 transition)
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_02272@rel:R25-11#52f6abe5
Point-in-Time History:
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

دالة Size [SWS_DM_02273] Upstream: RS_Diag_04260

auto Size () const noexcept -> std::size_t;

Returns the count of elements in the RecordContentElementData. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Rückgabewert

TypBeschreibung
std::size_tThe count of the RecordContentElementData

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

Record
AUTOSAR/AP/record/SWS_DM_02273
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02273@rel:R25-11#63005440
Content hash
63005440
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02273
Status: valid/unmigrated Version: rel:R25-11#914c329d Versionshistorie & Revisions (1 transition)
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_02273@rel:R25-11#914c329d
Point-in-Time History:
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

دالة operator[] [SWS_DM_02277] Upstream: RS_Diag_04260

auto operator[] (ara::core::StringView key) noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContent ElementData > >;

Access the content element with specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
ara::core::Result<std::reference_wrapper<DiagnosticSovdContentElementData > >reference to the content element or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the key is not found

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

Record
AUTOSAR/AP/record/SWS_DM_02277
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02277@rel:R25-11#e8ebcd69
Content hash
e8ebcd69
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02277
Status: valid/unmigrated Version: rel:R25-11#c829f6e0 Versionshistorie & Revisions (1 transition)
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_02277@rel:R25-11#c829f6e0
Point-in-Time History:
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

دالة operator[] [SWS_DM_02278] Upstream: RS_Diag_04260

auto operator[] (ara::core::StringView key) const noexcept -> ara::core::Result< std::reference_wrapper< DiagnosticSovdContent ElementData const > >;

Access the content element with specified key. This DiagnosticSovdContentElementData shall be of type RecordContentElementData or ContentData

Header-Datei#include "ara/diag/diagnostic_sovd_content_element_data.h"
Scopeclass ara::diag::DiagnosticSovdRecordContentElementDataView
Exception-Sicherheitexception safe
Thread-Sicherheitthread-safe

Parameter (in)

ParameterBeschreibung
keyThe key

Rückgabewert

TypBeschreibung
ara::core::Result<std::reference_wrapper<DiagnosticSovdContentElementData const > >reference to the content element or an error if DiagnosticSovdContentElementData is not of type RecordContentElementData or ContentData OR the key is not found

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

Record
AUTOSAR/AP/record/SWS_DM_02278
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_02278@rel:R25-11#f3733720
Content hash
f3733720
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_02278
Status: valid/unmigrated Version: rel:R25-11#c7d8c978 Versionshistorie & Revisions (1 transition)
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_02278@rel:R25-11#c7d8c978
Point-in-Time History:
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