CARLA
LibCarla
source
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.
25
class
MovableNonCopyable
{
26
public
:
27
28
MovableNonCopyable
() =
default
;
29
30
MovableNonCopyable
(
const
MovableNonCopyable
&) =
delete
;
31
MovableNonCopyable
&
operator=
(
const
MovableNonCopyable
&) =
delete
;
32
33
MovableNonCopyable
(
MovableNonCopyable
&&) =
default
;
34
MovableNonCopyable
&
operator=
(
MovableNonCopyable
&&) =
default
;
35
};
36
37
}
// namespace carla
carla
This file contains definitions of common data structures used in traffic manager. ...
Definition:
Carla.cpp:133
carla::MovableNonCopyable
Inherit (privately) to suppress copy construction and assignment.
Definition:
LibCarla/source/carla/NonCopyable.h:25
carla::NonCopyable::operator=
NonCopyable & operator=(const NonCopyable &)=delete
carla::NonCopyable
Inherit (privately) to suppress copy/move construction and assignment.
Definition:
LibCarla/source/carla/NonCopyable.h:12
carla::NonCopyable::NonCopyable
NonCopyable()=default
Generated by
1.8.13