Book a Demo

Author Topic: representing non-class members functions (C++)  (Read 14544 times)

Wade Brooks

  • EA Novice
  • *
  • Posts: 15
  • Karma: +0/-0
    • View Profile
representing non-class members functions (C++)
« on: September 27, 2014, 03:45:46 am »
I am using ea to trace from requirements to design and code.  We have some non-member functions (task entries and interrupt handlers) that cannot be registered with the OS with a this pointer.  I need a way to represent these in the model to show requirements allocation.  Any one have suggestions on how to handle these?  
« Last Edit: September 27, 2014, 03:46:52 am by WadeBrooks »

robinch

  • EA User
  • **
  • Posts: 21
  • Karma: +0/-0
    • View Profile
Re: representing non-class members functions (C++)
« Reply #1 on: September 29, 2014, 11:41:53 pm »
To represent non-member C++ functions in a UML model, I would use class static member functions.

You can add them directly to the related classes when it makes sense to do so or use dedicated <<Utility>> classes, e.g. to represent a set of functions defined in the local namespace of a compilation unit, for instance.