31
31
/* *
32
32
* Function like object adapter over freestanding and member functions.
33
33
*
34
- * Freestanding and member functions are two very distinct types in C++, one is
35
- * not convertible into the other and the call syntax between those two is very
36
- * different even if conceptually they are very similar: Both primitives can be
34
+ * Freestanding and member functions are two distinct types in C++. One is
35
+ * not convertible into the other, and the call syntax between the two is
36
+ * different even if conceptually they are similar: Both primitives can be
37
37
* copied, called and produce a result.
38
38
*
39
- * To solve incompatibilities this class adapt freestanding and member function
39
+ * To solve incompatibilities, this class adapts freestanding and member functions
40
40
* to a common interface. The interface chosen is similar to the freestanding
41
41
* function pointers interface:
42
- * - Copyable
43
- * - Nullable
44
- * - Callable
42
+ * - Copyable.
43
+ * - Nullable.
44
+ * - Callable.
45
45
*
46
46
* This class also offers a mechanism to chain other instances to it. When an
47
47
* instance is called, all the instances being part of the chain are called.
48
48
*
49
49
* @important freestanding or member function adapted must accept a single
50
- * argument and this argument shall be a pointer to ContextType. Adapted
51
- * primitives shall not return anything.
50
+ * argument, and this argument is a pointer to ContextType. Adapted
51
+ * primitives do not return anything.
52
52
*
53
53
* @tparam ContextType Type of the argument pointee.
54
54
*/
@@ -72,10 +72,10 @@ class FunctionPointerWithContext : public SafeBool<FunctionPointerWithContext<Co
72
72
}
73
73
74
74
/* *
75
- * Create a FunctionPointerWithContext from a pointer to member function
76
- * and the instance which shall be used to call it.
75
+ * Create a FunctionPointerWithContext from a pointer to a member function
76
+ * and the instance which is used to call it.
77
77
*
78
- * @param[in] object Pointer to the instance which will be used to invoke @p
78
+ * @param[in] object Pointer to the instance which is used to invoke @p
79
79
* member.
80
80
* @param[in] Pointer to the member function to adapt.
81
81
*/
@@ -113,7 +113,7 @@ class FunctionPointerWithContext : public SafeBool<FunctionPointerWithContext<Co
113
113
/* *
114
114
* Adapt a freestanding function.
115
115
*
116
- * Previous content adapted is discarded while it is replace by @p function.
116
+ * Previous content adapted is discarded while @p function replaces it .
117
117
*
118
118
* @note This function is equivalent to a call to the copy assignment
119
119
* operator.
@@ -129,13 +129,13 @@ class FunctionPointerWithContext : public SafeBool<FunctionPointerWithContext<Co
129
129
/* *
130
130
* Adapt a pointer to member function and the instance to use to call it.
131
131
*
132
- * Previous content adapted is discarded while it is replace by the
133
- * adaptation of the pair @p object and @p member.
132
+ * Previous content adapted is discarded while the adaptation
133
+ * of the pair @p object and @p member replaces it .
134
134
*
135
135
* @note This function is equivalent to a call to the copy assignment
136
136
* operator.
137
137
*
138
- * @param[in] object Pointer to the instance used to invoke @p member.
138
+ * @param[in] object Pointer to the instance is used to invoke @p member.
139
139
* @param[in] function Pointer to the member function to adapt.
140
140
*/
141
141
template <typename T>
@@ -185,7 +185,7 @@ class FunctionPointerWithContext : public SafeBool<FunctionPointerWithContext<Co
185
185
/* *
186
186
* Indicate if a callable object is being adapted.
187
187
*
188
- * @note implementation of safe bool operator
188
+ * @note implementation of safe bool operator.
189
189
*
190
190
* @return true if the content of the instance can be invoked and false
191
191
* otherwise.
@@ -199,7 +199,7 @@ class FunctionPointerWithContext : public SafeBool<FunctionPointerWithContext<Co
199
199
* Set a FunctionPointer instance as the next element in the chain of
200
200
* callable objects.
201
201
*
202
- * @note Invoking call() on the head FunctionPointer will invoke all
202
+ * @note Invoking call() on the head FunctionPointer invokes all
203
203
* chained callbacks.
204
204
*
205
205
* @note Refer to CallChainOfFunctionPointerWithContext as an alternative.
@@ -279,7 +279,7 @@ class FunctionPointerWithContext : public SafeBool<FunctionPointerWithContext<Co
279
279
/*
280
280
* Forward declaration of a class and a member function to this class.
281
281
* Because the compiler doesn't know anything about the forwarded member
282
- * function, it will always use the biggest size and the biggest alignment
282
+ * function, it always uses the biggest size and the biggest alignment
283
283
* that a member function can take for objects of type UndefinedMemberFunction.
284
284
*/
285
285
class UndefinedClass ;
0 commit comments