Skip to content

Commit 8d98cf5

Browse files
committed
Remove C++ rules (commented-out)
1 parent c59d782 commit 8d98cf5

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

_notes/software-architecture/method/stereotypes.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,13 @@ layout: notes
4343
4444
* The purpose of the method is very simple and primitive
4545
* Direct access to the data member
46+
47+
<!--
4648
* C++ Rules:
4749
* method is const
4850
* returns a data member
4951
* return type is a primitive or a container of a primitive
52+
-->
5053

5154
# Accessor::get - C++
5255
<script src="https://gist.github.com/mjdecker/90d821299d8fb426a4add92699aa3245.js?file=get.cpp"></script>
@@ -61,9 +64,12 @@ layout: notes
6164
> Returns a Boolean value that is not a data member
6265
6366
* Result is not a direct data member, but a computation involving data members
67+
68+
<!--
6469
* C++ Rules:
6570
* method is const
6671
* returns a Boolean value that is not a data member
72+
-->
6773

6874
# Accessor::predicate - C++
6975
<script src="https://gist.github.com/mjdecker/90d821299d8fb426a4add92699aa3245.js?file=predicate.cpp"></script>
@@ -77,11 +83,13 @@ layout: notes
7783
# Accessor::property
7884
> Returns information about data members (non-Boolean)
7985
86+
<!--
8087
* C++ Rules:
8188
* method is const
8289
* does not return a data member
8390
* return type is primitive or container of primitives
8491
* return type is not Boolean
92+
-->
8593

8694
# Accessor::property - C++
8795
<script src="https://gist.github.com/mjdecker/90d821299d8fb426a4add92699aa3245.js?file=property.cpp"></script>
@@ -115,10 +123,13 @@ layout: notes
115123
# Mutator::set
116124
> Directly modifies a data member
117125
* The parameter value is stored in the data member
126+
127+
<!--
118128
* C++ Rules:
119129
* method is not const
120130
* return type is void or Boolean
121131
* only one data member is changed
132+
-->
122133

123134
# Mutator::set - C++
124135
<script src="https://gist.github.com/mjdecker/90d821299d8fb426a4add92699aa3245.js?file=set.cpp"></script>
@@ -133,10 +144,13 @@ layout: notes
133144
> Performs a complex change to the object’s state
134145
* The change may involve several data members
135146
* May change the data members either directly or indirectly with another mutator
147+
148+
<!--
136149
* C++ Rules:
137150
* method is not const
138151
* return type is void or Boolean
139152
* complex change to the object’s state is performed, e.g., more than one data member is changed
153+
-->
140154

141155
# Mutator::command - C++
142156
<script src="https://gist.github.com/mjdecker/90d821299d8fb426a4add92699aa3245.js?file=command.cpp"></script>
@@ -157,9 +171,12 @@ layout: notes
157171

158172
# Collaborational::Collaborator
159173
> Works with objects belonging to classes other than itself (parameter, local variable, data member, or return value)
174+
175+
<!--
160176
* C++ Rules:
161177
* returns void and at least one of the method’s parameters or local variables is an object
162178
* returns a parameter or local variable that is an object
179+
-->
163180

164181
# Collaborational::Collaborator - C++
165182
<script src="https://gist.github.com/mjdecker/90d821299d8fb426a4add92699aa3245.js?file=collaborator.cpp"></script>

0 commit comments

Comments
 (0)