A test class demonstrating private member documentation. More...
| Header: | #include <TestClass> |
| enum | PublicEnum { PublicValue1, PublicValue2 } |
| TestClass() | |
| void | publicFunction() |
| int | publicVariable |
| enum | ProtectedEnum { ProtectedValue1, ProtectedValue2 } |
| void | protectedFunction() |
| enum | PrivateEnum { PrivateValue1, PrivateValue2 } |
| void | privateFunction() |
| void | privateHelper() |
| bool | privateBoolVar |
| int | privateVariable |
| void | relatedFunction(const TestClass &obj) |
| void | swap(TestClass &a, TestClass &b) |
| bool | operator==(const TestClass &lhs, const TestClass &rhs) |
This class contains documented members at all three access levels: public, protected, and private. It is used to test the includeprivate configuration option.
A private enumeration for internal use.
This enumeration is used internally by the class implementation. It should only appear in documentation when includeprivate is enabled.
| Constant | Value | Description |
|---|---|---|
TestClass::PrivateValue1 | 0 | First private value |
TestClass::PrivateValue2 | 1 | Second private value |
A protected enumeration.
| Constant | Value | Description |
|---|---|---|
TestClass::ProtectedValue1 | 0 | First protected value |
TestClass::ProtectedValue2 | 1 | Second protected value |
A public enumeration.
| Constant | Value | Description |
|---|---|---|
TestClass::PublicValue1 | 0 | First public value |
TestClass::PublicValue2 | 1 | Second public value |
Default constructor.
Creates a TestClass instance.
[private] void TestClass::privateFunction()Private function for internal operations.
This function performs internal operations and should only be documented when includeprivate configuration is enabled.
[private] void TestClass::privateHelper()Private helper function.
This is another private function to test multiple private function documentation.
[protected] void TestClass::protectedFunction()Protected function.
This function is accessible to derived classes.
Public function.
This function is publicly accessible.
Another private variable.
This tests multiple private variable documentation.
Private variable for internal state.
This variable holds internal state and should only appear in documentation when includeprivate is enabled.
Protected variable.
This variable is accessible to derived classes.
Public variable.
This variable is publicly accessible.
A related non-member function.
This function is related to TestClass but not a member. It takes obj as argument for shits and giggles.
Hidden friend swap function.
Another hidden friend that should be publicly visible. It swaps a and b.
Hidden friend equality operator.
This is a hidden friend function declared in the private section but actually has public visibility through ADL. It should appear in documentation regardless of includeprivate setting.
Returns either true or false, entirely dependent on the values of lhs and rhs.