Skip to content

ClassWithMembers

class ClassWithMembers

Class with members.

Types

Name Description
InnerClass Inner class.
InnerEnum Inner enumeration.

Type Aliases

Name Description
InnerTypeDef Inner typedef.
InnerTypeAlias Inner type alias.

Variables

Name Description
x Test member variable.
y Test member variable with initializer.
z Test member variable with brace initializer.
arr1 Test member variable of array type.
ref1 Test member variable of reference type.
ptr1 Test member variable of pointer type.
arr2 Test member variable of array type with initializer.
ref2 Test member variable of reference type with initializer.
ptr2 Test member variable of pointer type with initializer.
λ Test member variable with unicode character.
fp Test member variable of function pointer type.
escapee Attempt to move a member out of its class with @ingroup, but should remain in ClassWithMembers.

Operators

Name Description
operator+ Test member operator.
operator+ Test member operator template.
operator+ Test member function template with SFINAE.
operator+ Test inline member operator.
operator+ Test inline member operator template.
operator+ Test inline member operator template with SFINAE.
operator= Test assignment operator.
int Test conversion operator declaration.
int Test reference conversion operator declaration.
int Test pointer conversion operator declaration.
double Test conversion operator definition.

Functions

Name Description
ClassWithMembers Test constructor.
~ClassWithMembers Test destructor.
f Test member function.
f Test member function that returns a reference.
f Test member function that returns a pointer.
f Test member function that returns a function pointer.
f Test member function template.
f Test member function template with SFINAE.
f Test inline member function.
f Test inline member function template.
f Test inline member function template with SFINAE.

Type Alias Details

InnerTypeAlias

using InnerTypeAlias = int

Inner type alias.

InnerTypeDef

typedef int InnerTypeDef

Inner typedef.

Variable Details

arr1

int arr1[10]

Test member variable of array type.

arr2

int arr2[10]

Test member variable of array type with initializer.

escapee

int escapee

Attempt to move a member out of its class with @ingroup, but should remain in ClassWithMembers.

fp

int (*fp)(int, int)

Test member variable of function pointer type.

ptr1

int* ptr1

Test member variable of pointer type.

ptr2

int* ptr2

Test member variable of pointer type with initializer.

ref1

int& ref1

Test member variable of reference type.

ref2

int& ref2

Test member variable of reference type with initializer.

x

int x

Test member variable.

y

int y

Test member variable with initializer.

z

int z

Test member variable with brace initializer.

λ

int λ

Test member variable with unicode character.

Operator Details

double

operator double() const

Test conversion operator definition.

int

operator int() const

Test conversion operator declaration.

operator int&() const

Test reference conversion operator declaration.

operator int*() const

Test pointer conversion operator declaration.

operator+

int operator+(int x, int y)

Test member operator.

template<class T> T operator+(T x, T y)

Test member operator template.

template<class T, std::enable_if_t<std::is_integral_v<T>, int> = 0> T operator+(T x, T y)

Test member function template with SFINAE.

inline int operator+(int x, int y)

Test inline member operator.

template<class T> T operator+(T x, T y)

Test inline member operator template.

template<class T, std::enable_if_t<std::is_integral_v<T>, int> = 0> T operator+(T x, T y)

Test inline member operator template with SFINAE.

operator=

ClassWithMembers& operator=(const ClassWithMembers& o)

Test assignment operator.

Function Details

ClassWithMembers

ClassWithMembers()

Test constructor.

f

int f(int x, int y)

Test member function.

int& f(int x, int y)

Test member function that returns a reference.

int* f(int x, int y)

Test member function that returns a pointer.

int (*f(int x, int y))(int, int)

Test member function that returns a function pointer.

template<class T> T f(T x, T y)

Test member function template.

template<class T, std::enable_if_t<std::is_integral_v<T>, int> = 0> T f(T x, T y)

Test member function template with SFINAE.

inline int f(int x, int y)

Test inline member function.

template<class T> T f(T x, T y)

Test inline member function template.

template<class T, std::enable_if_t<std::is_integral_v<T>, int> = 0> T f(T x, T y)

Test inline member function template with SFINAE.

~ClassWithMembers

~ClassWithMembers()

Test destructor.