CARLA
StreamStateBase.cpp
Go to the documentation of this file.
1 // Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
8 
9 #include "carla/BufferPool.h"
10 
11 namespace carla {
12 namespace streaming {
13 namespace detail {
14 
16  : _token(token),
17  _buffer_pool(std::make_shared<BufferPool>()) {}
18 
20 
22  auto pool = _buffer_pool;
23  return pool->Pop();
24  }
25 
26 } // namespace detail
27 } // namespace streaming
28 } // namespace carla
const std::shared_ptr< BufferPool > _buffer_pool
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
Serializes a stream endpoint.
Definition: detail/Token.h:61
A pool of Buffer.
Definition: BufferPool.h:30
A piece of raw data.
Definition: carla/Buffer.h:42