forked from google/styleguide
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMyClass.h
60 lines (44 loc) · 1.18 KB
/
MyClass.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Copyright 2019 NAVBLUE. All rights reserved.
*/
#pragma once
namespace navblue {
namespace missionplus {
class OtherClass;
/**
* \class ARealyNiceClass
* \brief A really nice class demonstrating our code guidelines
*/
class MyClass
{
public:
// CTors & DTor
/** \brief constructor */
MyClass();
/** \brief destructor */
~MyClass() = default;
// Methods
/**
* \brief A very ususeful method doing a lot of thing like this and that
* \param[in] argWellNamed is a parameter that we just use for example
* \return the result of a very complicated operation
*/
double oneUsefulMethod(const OtherClass& argWellNamed);
protected:
private:
// copy constructor
MyClass(const MyClass&) = delete;
// copy assignment
MyClass& operator=(const MyClass&) = delete;
// move constructor
MyClass(MyClass&&) = delete;
// move assignment
MyClass& operator=(MyClass&&) = delete;
// Methods
int onePrivateMethod(int nbWaypoints);
// Private attributes
/** \brief Here is a nice attribut called _file and doing something */
int _nbFlightPlans {1};
};
} // namespace missionplus
} // namespace navblue