Book a Demo

Author Topic: Constantness indication (C++)  (Read 1969 times)

Micha

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Constantness indication (C++)
« on: March 30, 2008, 12:36:26 am »
@list,

if I declare the following member of a class ABC in C++:

const std::vector<int>& ABC::foo() const;

the following part of the static class diagram becomes visible after importing into EA:

std::vector<int>& ABC::foo() {query}

The attributes can still be found in the associated description dialog. Maybe I'm wrong, caused by a certain lack of UML subtleties, but is it possible to show this information inside the generated static class diagram? I can accept the {query} term as a replacement for the function's constantness. But the missing attribut for the return value seems misleading to me.

Micha
« Last Edit: March 30, 2008, 12:47:14 am by mbieber »