mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
db4c05dd9f15f615e1edb818dafbfe73d496415a
The new compare is implemented using "multimethods" described in the book Advanced C++ Programming Styles and Idioms by James Coplien. First, the isA method is used to determine which of the values being compared is the most general. (For example, CLength is more general than CAltitude.) Then the compareImpl method is called on the most general value, with the other value as an argument. If there is not a direct inheritance relation between the two values (or they are the same class) then the comparison is invalid and a assert is triggered.
refs #84 removed the CValueObject::compare method and added a friend function BlackMisc::compare to replace it.
refs #84 removed the CValueObject::compare method and added a friend function BlackMisc::compare to replace it.
Introduction
How to use this repository
The directory (folder) structure
The .info files
The .README files and metadata standards
.README files are a place to specify what should be captured by the individual .info files and are very project specific, so are kept blank in this empty repository. You'll need to decide what is appropriate at a project level.
Citations
Doxygen Documentation
Doxygen documentation is generated automatically. Please note it will take a bit of time on git push. Documentation is available at: https://dev.vatsim-germany.org/vatpilotclient/doc/ The trailing / is mandatory.
Description
Languages
C++
96.4%
CMake
1.4%
HTML
1%
Python
0.6%
Objective-C++
0.2%
Other
0.2%