function Get [SWS_CM_11546] Upstream: RS_CM_00202, RS_CM_00203, RS_AP_00114, RS_AP_00122, RS_AP_00135, RS_AP_00145
T * Get () const noexcept;
Returns a pointer to the managed object.
Usage and Semantics
The function Get is a parameterless member function of class ara::com::SamplePtr from header ara/com/service/sample_ptr.h [SWS_CM_11546]. It synchronously returns a raw pointer of type T* to the object managed by the instance [SWS_CM_11546]. In contrast to asynchronous queries of service fields that provide a ara::core::Future [SWS_CM_00112], this access occurs immediately in the calling thread.
Error Handling and Boundary Conditions
The method is declared as noexcept and specified as exception safe [SWS_CM_11546]; error states via C++ exceptions do not occur. If the instance currently does not manage an object, the returned pointer is presumably nullptr. Question Q-d850bd8ee144369a (open) Prior to further processing of the referenced data, it must be ensured that E2E supervision has state ara::com::e2e::SMState::kValid and the status check of the profile yielded no error [SWS_CM_90422].
Interaction and Distinction
In Communication Management, Get serves for direct data access to received values (samples), as provided in the context of sample management AUTOSAR_AP_EXP_ARAComAPI §10 “GetNewSamples”. This function is to be clearly distinguished from other Get operations:
- Field getter: Retrieval of service fields on the proxy is performed via
Get()with return of aara::core::Future[SWS_CM_00112], for which a handler can be registered on the server side [SWS_CM_00114]. - E2E state: The supervision state of a field getter is determined separately via
GetE2EStateMachineStateGetter[SWS_CM_00145].
This text was created by an AI and is based on AUTOSAR Release R25-11.
Implementer's Guide to follow (complexity I2)
| Header-Datei | #include "ara/com/service/sample_ptr.h" |
|---|---|
| Scope | class ara::com::SamplePtr |
| Exception-Sicherheit | exception safe |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| T* | A pointer to the managed object |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_CM_11546- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_CM_11546@rel:R25-11#19683df2- Content hash
19683df2- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_CommunicationManagement.pdf#nameddest=SWS_CM_11546
Status: valid/unmigrated
Version: rel:R25-11#ff040cc4
Versionshistorie & Revisions (1 transition, 3 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_CM_11546@rel:R25-11#ff040cc4
Recorded Revisions (3):
- R25-11
rel:R25-11#19683df22026-09-30 - R24-11
rel:R24-11#83411fd82026-10-14 - R25-11
rel:R25-11#ff040cc42026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · German original