c++ - Do I put 'const' in my UML diagram? -
i'm making uml diagram using dia. need put const
in diagram when function const
? if so, where?
chapter 11.8.2 ("operation") in latest uml specification lists isquery 1 of operation's attributes:
isquery : boolean - specifies whether execution of operation leaves state of system unchanged (isquery=true) or whether side effects may occur (isquery=false). default value false.
if operation not change system's state shown in diagram, property {query} should added after function's return type.
dia supports isquery attribute class' operations: open class' properties window , in operations tab tick query checkbox method not change class' state , const appear after method's return type in diagram.
Comments
Post a Comment