sinamics2020-07
Begleitseite zum Kurs
SINAMICS Advanced C++
2020-07-14 – 2020-07-16
Link zu Schulungs-Unterlagen
- HTML-Version: https://tbfe.de/data/uploads/sinamics/presentation.html
- ZIP-Archiv: TBD
Weitere Online-Compiler:
- Coliru: http://coliru.stacked-crooked.com/ (schlicht, einfach, schnell)
- onlineDBG: https://www.onlinegdb.com/ (mehrere Source Files möglich)
Link zu Live-Demos und Übungen:
- Compiler-Explorer Handhabung
- Initiales Beispiel: Limit-Counter mit Code-Wiederholung
https://godbolt.org/z/j1Tv3n - Kapselung mit Hilfsfunktion und Variable
https://godbolt.org/z/q53zY3 (Zeiger-Übergabe)
https://godbolt.org/z/bqs4cv (Referenz-Übergabe)
https://godbolt.org/z/hWMPTc (voller Versionsvergleich)
https://godbolt.org/z/6v3GsW (teilweiser Versionsvergleich)
https://godbolt.org/z/5q65sd (wie zuvor, mit bedingter Kompilierung)
- Initiales Beispiel: Limit-Counter mit Code-Wiederholung
- Fixed-Size integral types
- https://godbolt.org/z/vrGhG3 (ursprüngliches Demo-Beispiel)
- Classic and Modern Enumerations
- https://godbolt.org/z/PdPsYn (ursprüngliches Demo-Beispiel)
- https://godbolt.org/z/br4MYf (ausgebautes Demo-Beispiel)
- Override/Final/NVI
- https://godbolt.org/z/GGzzeb (Demo Beispiel nur für Syntax)
- https://godbolt.org/z/5vMoon (Overriding public Interface)
- https://godbolt.org/z/53MT85 (Non Virtual Interface)
- https://godbolt.org/z/T8zdEh (Overriding public Interface mit Problem/Fehler)
- https://godbolt.org/z/ar6abW (Overriding public Interface mit Abwärtszähler)
- https://godbolt.org/z/ejGjvW ??????
- https://godbolt.org/z/PfE8jM (Non Virtual Interface mit Abwärtszähler)
- Unified Initialization
- https://godbolt.org/z/8eTPTv (Demo-Beispiel nur für Syntax)
- https://godbolt.org/z/3z46o6 (Initializer-List für Enumeration-Schleife)
- https://godbolt.org/z/9ecGxd (EventQueue - leere Vorgabe, nur Events)
- https://godbolt.org/z/ETPbvo (EventQueue - Teil 1 Vorgabe)
- https://godbolt.org/z/KMfKcs (EventQueue - Teil 1 Lösung)
- Constructors (Direct Member Initialization, C'tor Delegation, C'tor Inheritance)
- https://godbolt.org/z/6oWMb5 (Vorgabe wie aus Präsentation)
- https://godbolt.org/z/69GKWh (Lösung)
- Copy vs. Move
- https://godbolt.org/z/hdeGqq (EventQueue - Teil 2)
- `const`+ non-`const` Überladung von operator[]
- https://godbolt.org/z/q4MqYe (EventQueue - Teil 3)
- New Style Casts
- https://godbolt.org/z/4nvvr4 (EventQueue - Teil 4)
- static_assert
- https://godbolt.org/z/oceMz6 (EventQueue - Teil 5)
- std::unique_ptr
- https://godbolt.org/z/MKrPac (EventQueue- Teil 6)
- Constructor Delegation
- Constructor Inheritance
Ergänzende Links: