Friend Methods is one of the source-code metrics Understand computes across 17+ languages — browse them in the GUI, export and track them, or script them with the Python API.
Friend Methods
API ID: CountDeclMethodFriendAlso Known As: Number of Friend Methods (NFM), Number of Friends (NF)
Languages: C++
Targets: Classes
Number of local (not inherited) friend methods.
The number of friend functions plus the CountDeclMethod of friend classes.
Also known as Lorenz & Kidd - Number of Friends (NF); Number of Friend Methods (NFM).
- C++: Class, Struct, Union
- This metric can be disabled from "Project Configuration/Metrics/Object Orientated" with the "Show method and variable count metrics" option.