Back to Basics: Design Patternsstart this talk by introducing the taxonomy of design patterns at a high level, how to read a UML diagram (as a quick refresher), a refresher on inheritance vs composition, and then spend the rest of the objects ● Patterns are concerned with algorithms and responsibilities between objects. ○ The relationship I want to work with in our example, is how each object in a collection is linked, and how to architect for larger systems ○ i.e. Drawing a diagram and planning before diving into code is wise!Sample UML for a Class Diagram (1/4) ● Example of a class diagram ○ Class name ○ member variables (data)0 码力 | 96 页 | 2.10 MB | 6 月前3
Back to Basics: Templates - Part 1Back to Basics: Templates – Part 1 Copyright © 2021 Bob Steagall Declarations and Definitions • An entity is one of these things: • value • object • reference • structured binding • function • enumerator Declarations and Definitions • A name is the use of an identifier that denotes an entity (or label) • Every name that denotes an entity is introduced by a declaration • A declaration introduces one or more names a translation unit • A definition is a declaration that fully defines the entity being introduced • A variable is an entity introduced by the declaration of an object • Or of a reference other than0 码力 | 68 页 | 436.75 KB | 6 月前3
Back to Basics: Templates Part 22021 Bob Steagall Recap: Declarations and Definitions • A name is an identifier that denotes an entity • Every template has a name • Every template specialization has a name, formally known as a template-id re-introduce a name into a translation unit • A definition is a declaration that fully defines the entity being introduced 4CppCon 2021 – Back to Basics: Templates – Part 2 Copyright © 2021 Bob Steagall Specialization Specialization Instantiation (Implicit Specialization) Implicit Instantiation Diagram courtesy of Dan Saks Back to Basics: Function and Class Templates CppCon 2019 Note: arrow means0 码力 | 80 页 | 490.15 KB | 6 月前3
Design and Implementation of Highly Scalable Quantifiable Data Structures in C++Measurement Design and Implementation of Quantifiable Stack/Queue Live Demonstration Figure 1: Venn diagram showing Quantifiability (green dashes) and other correctness conditions Design and Implementation Entropy Measurement Design and Implementation of Quantifiable Stack/Queue Live Demonstration Relationship between Correctness and Performance ▶ Previous works focus on relaxed correctness conditions0 码力 | 51 页 | 4.08 MB | 6 月前3
Regular, Revisited@ciura_victor - Regular, Revisited 28 Slide Title Object An object is a representation of a concrete entity as a value in computer memory (address & length). #define #EoP2023 Victor Ciura | @ciura_victor @ciura_victor - Regular, Revisited 28 Slide Title Object An object is a representation of a concrete entity as a value in computer memory (address & length). An object has a state that is a value of some @ciura_victor - Regular, Revisited 28 Slide Title Object An object is a representation of a concrete entity as a value in computer memory (address & length). An object has a state that is a value of some0 码力 | 180 页 | 19.96 MB | 6 月前3
Many Ways to Kill an Orc (or a Hero). }; Private inheritance: other classes (if non-friend) are not aware of this base-derived relationship Deliberate exposure of base class’ selected services as our own 27What this is about? • Private means client code (other than friend functions and classes) cannot fully use the base-derived relationship #include// ... static_assert(std::is_base_of_v ); // Ok void f(const knowledge of the base- derived relationship with the implementation we wrote • Of course, it often happens that we want public inheritance in order for that relationship to be usable by client code • 0 码力 | 202 页 | 1.26 MB | 6 月前3
Back to Basics: The structure of a ProgramN G Overview • The process of building a program • What a translation unit (TU) is, and its relationship to the code you write • The phases of translation • Declarations, definitions, and linkage Phase 1 Phase 2 Phase 3 Phase 4 Phase 5 Phase 6 Phase 7 Phase 8 Phase 9 • all external entity references are resolved • translation units, instantiation units, and library components needed return 0; }Copyright © 2020 Bob Steagall K E W B C O M P U T I N G Declarations and Definitions • An entity is one of these things: • value • object • reference • structured binding • function • enumerator0 码力 | 64 页 | 390.34 KB | 6 月前3
Building bridges: Leveraging C++ and ROS for simulators, sensor data and algorithmswhere we have implemented our own fixed-order execution framework in C++. There is a coordinator entity that controls the execution order and makes sure that only a single “user” thread will be in executing tick publish next message execute Lidar stack publish control commands Our proposal The diagram below illustrates the approach for adding the fixed-order execution coordinator to the CARLA C++0 码力 | 38 页 | 2.17 MB | 6 月前3
Modern C++ Tutorial: C++11/14/17/20 On the Flythere is no other opinion or even a direct answer. “Almost” is also a lot of people. The Venn diagram in Figure 1.2 roughly answers the C and C++ related compatibility. From now on, you should have is a generic, polymorphic function wrapper whose instances can store, copy, and call any target entity that can be called. It is also an existing callable to C++. A type-safe package of entities (relatively0 码力 | 92 页 | 1.79 MB | 1 年前3
Conan 2.1 Documentationin general does not imply that a change in mylib_b always needs a rebuild of mylib_a, and that relationship can default to a minor_mode mode. In Conan 2, the one doing modifications to mylib_a can better with them. So, for example, in this case, they are the result of the information depicted in the diagram below. 64 Chapter 4. Tutorial Conan Documentation, Release 2.1.0 Those package IDs are different which is the latest version in a version range) is done by comparing individually each dot-separated entity in the version, from left to right. Digits will be compared numerically, so 2 < 11, and entries containing0 码力 | 694 页 | 4.13 MB | 1 年前3
共 99 条
- 1
- 2
- 3
- 4
- 5
- 6
- 10













