template<class T>
SharedResource class
Basic class that contains a shared resource between two Block classes.
Since this class is a shared resource you can use it only with shared_ptr. For this reason the only way to create a shared resource is to use the SharedResource::
Public types
- using Ptr = std::shared_ptr<SharedResource<T>>
Public static functions
- static auto create() -> Ptr
- Method used to create a shared resource.
Public functions
Function documentation
template<class T>
static Ptr BipedalLocomotion:: System:: SharedResource<T>:: create()
Method used to create a shared resource.
Returns | a pointer of a shared resource. |
---|
template<class T>
T BipedalLocomotion:: System:: SharedResource<T>:: get() const
Get the resource.
Returns | the copy of the object inside the shared resource. |
---|