First Day
Introduction to C++ for industrial systems
- Introduction to object oriented programming
- History and definition
- Overview on C++ standards
- Modern C++ objectives
- Switch from C to C++
- Embedded C++ specification ( EC++)
- How to write optimized embedded code
Exercise: |
Understand function mangling |
Exercise: |
Function inlining |
Exercise: |
Volatile variable handling |
C++ and embedded systems
- Object Oriented Programming in C++
- Encapsulation
- Classes and objects
- Attributes and member functions
- Object construction and destruction
- Construction parameters
- Copy constructor
- Object composition and container
- Scope qualifier operator
Exercise: |
Declaring classes and methods |
Exercise: |
Working with default, copy and parameterized constructors |
Exercise: |
Understand the differences between composition and aggregation |
Second Day
C++ and embedded systems
- Operator Overloading
- Optimizing parameter object passing
- Overloading operators by member functions
- Overloading operators by friend functions
- Memory management operators overloading
Exercise: |
The assignment operator |
Exercise: |
Overloading operators |
- Simple Inheritance
- Specialization by addition and substitution
- Derivation and access rules
- Construction during inheritance
- Inheritance polymorphism
- Virtual methods
Exercise: |
Understand inheritance |
- Persistent and flashable objects
- Constant and partially constant objects
- Persistent objects
- Flashable objects
Exercise: |
Creating constant, mutable, persistent and ROMable objects |
|