Project

General

Profile

Feature #14838

Consider providing ServiceHandle::get()

Added by Christopher Backhouse almost 4 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Paul Russo
Category:
-
Target version:
Start date:
12/15/2016
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:
Scope:
Internal
Experiment:
NOvA
SSI Package:
Duration:

Description

By analogy with smart pointers

T* art::ServiceHandle<T>::get()

You can already get the same effect with &(*myServiceHandle), so this doesn't give up any further encapsulation.

History

#1 Updated by Kyle Knoepfel almost 4 years ago

  • Status changed from New to Assigned
  • Assignee set to Paul Russo
  • Estimated time set to 1.00 h

This seems like a reasonable request, and we will implement it. Please note that the purpose of the ServiceHandle is that the object lifetime is handled for the user, without the user needing to worry about the validity of any underlying pointers. If the Service object is renewed or replaced, the ServiceHandle automatically makes sure you are using the new one. For this reason, we discourage caching the underlying pointer.

#2 Updated by Paul Russo almost 4 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100

Feature and test completed.

#3 Updated by Kyle Knoepfel almost 4 years ago

  • Target version set to 2.06.00

Also available in: Atom PDF