CARLA
LibCarla/source/carla/NonCopyable.h
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 
7 #pragma once
8 
9 namespace carla {
10 
11  /// Inherit (privately) to suppress copy/move construction and assignment.
12  class NonCopyable {
13  public:
14 
15  NonCopyable() = default;
16 
17  NonCopyable(const NonCopyable &) = delete;
18  NonCopyable &operator=(const NonCopyable &) = delete;
19 
20  NonCopyable(NonCopyable &&) = delete;
21  NonCopyable &operator=(NonCopyable &&) = delete;
22  };
23 
24  /// Inherit (privately) to suppress copy construction and assignment.
26  public:
27 
28  MovableNonCopyable() = default;
29 
30  MovableNonCopyable(const MovableNonCopyable &) = delete;
32 
35  };
36 
37 } // namespace carla
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:99
Inherit (privately) to suppress copy construction and assignment.
NonCopyable & operator=(const NonCopyable &)=delete
Inherit (privately) to suppress copy/move construction and assignment.
NonCopyable()=default