File: class.h

package info (click to toggle)
breathe 4.36.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,224 kB
  • sloc: python: 12,703; cpp: 1,737; makefile: 523; xml: 168; sh: 54; ansic: 52
file content (137 lines) | stat: -rw-r--r-- 2,303 bytes parent folder | download | duplicates (4)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
#include <string>

namespace TestNamespaceClasses {

//! \brief first class inside of namespace
class NamespacedClassTest {

public:

    //! \brief namespaced class function
    virtual void function() const = 0;

    static void functionS();

    explicit NamespacedClassTest() {}

    //! \brief namespaced class other function
    void anotherFunction() {}
};


//! \brief second class inside of namespace
class ClassTest {

public:

    //! \brief second namespaced class function
    void function() {}

    //! \brief second namespaced class other function
    void anotherFunction() {}

};


} // TestNamespaceClasses

//! \brief class outside of namespace
class OuterClass {

public:

    //! \brief inner class
    class InnerClass {};

};


//! \brief class outside of namespace
class ClassTest {

public:

    /*! \brief non-namespaced class function

        More details in the header file.
      */
    void function(int myParameter);
 
    //! \brief non-namespaced class other function
    void anotherFunction();

    //! \brief namespaced class function
    virtual void publicFunction() const = 0;

    virtual void undocumentedPublicFunction() const = 0;

    //! A public class
    class PublicClass {};

    class UndocumentedPublicClass {};

    //! A public struct
    struct PublicStruct {};

    struct UndocumentedPublicStruct {};

protected:

    //! A protected function
    void protectedFunction() {}

    void undocumentedProtectedFunction() {}

    //! A protected class
    class ProtectedClass {};

    class UndocumentedProtectedClass {};

    //! A protected struct
    struct ProtectedStruct {};

    struct UndocumentedProtectedStruct {};

private:

    //! This is a private function
    virtual void privateFunction() const = 0;

    virtual void undocumentedPrivateFunction() const = 0;

    //! A private class
    class PrivateClass {};

    class UndocumentedPrivateClass {};

    //! A private struct
    struct PrivateStruct {};

    struct UndocumentedPrivateStruct {};
};


template<typename T>
void f0();

template<>
void f0<std::string>();

namespace NS1 {

template<typename T>
void f1();

template<>
void f1<std::string>();

namespace NS2 {

template<typename T>
void f2();

template<>
void f2<std::string>();

} // namespace NS2
} // namespace NS1