Constructing Generic Algorithms## CONSTRUCTING GENERIC ALGORITHMS ## algorithm noun al·go·rithm | \ 'al-gə-,ri-thəm ## Definition of algorithm : a procedure for solving a mathematical problem (as of finding the greatest common Parent The original standard set of algorithms is designed to support stable_sort. ## WHY WRITE GENERIC ALGORITHMS? Isn't the standard set good enough? Frequently, yes. But not always. And the standard point of the STL is that decoupling containers (with the iterator abstraction) allows us to write generic algorithms that work on all containers. So let's write some! ## THE PROBLEM Given an array0 码力 | 145 页 | 8.44 MB | 1 年前3
generic graph libraries## Generic Graph Libraries in C++20 ## ANDREW LUMSDAINE, PHIL RATZLOFF 20 21 October 24-29 ## About Us  ## • Andrew many different practical (concrete) problems – theory reuse • Goes hand-in-glove with goals of generic software libraries  interfaces to generic algorithms (codified as concepts) • Our claim: The standard library already provides sufficient capability to support generic graph algorithms and data structures • Generic graph algorithms0 码力 | 76 页 | 6.59 MB | 1 年前3
Back to Basics: Generic Programming## +24 ## Back To Basics Generic Programming ## DAVID OLSEN ## 20 24 September 15 - 20 # Back to Basics: Generic Programming David Olsen, Compiler Engineer, NVIDIA CppCon, 18 Sep 2024  ## Generic Programming ## Generic Programming Same code works on different, unrelated types ## Generic Programming Same code works on different, unrelated value : container) { result += value; } return result; } ## Generic Programming Static polymorphism ## Generic Programming Same code works on different, unrelated types Static polymorphism0 码力 | 175 页 | 1.16 MB | 1 年前3
Back to Basics: Designing Classes (part 2 of 2)## +21 ## Back to Basics: Designing Classes (part 2 of 2) ## KLAUS IGLBERGER 20 21 October 24-29 C++ Trainer/Consultant Author of the bl $ \text{ze} $ C++ math library (Co-)Organizer of the Munich duplication to enable you to change everything in one place (the DRY principle). Guideline: Design classes for easy change. ## Data Member Initialization In order to reduce duplication, we could use delegating Design Decisions Guideline: Encapsulate design decisions (i.e. variation points). Guideline: Design classes for easy change. ## Qualified/Modified Member Data ## Back to Basics: Class Design (Part 1) The0 码力 | 76 页 | 2.60 MB | 1 年前3
Back to Basics: Designing Classes (part 1 of 2)## +21 ## Back to Basics: Designing Classes (part 1 of 2) ## KLAUS IGLBERGER 20 21 October 24-29 C++ Trainer/Consultant Author of the bl $ \text{ze} $ C++ math library (Co-)Organizer of the Munich Beck, TDD by Example) ## The Challenge of Class Design Guideline: Design classes for easy change. Guideline: Design classes for easy extensions. ## Design Guidelines ## Back to Basics: Class Design // ... }; Using inheritance naively to solve our problem easily leads to ... ... many derived classes; ... ridiculous class names; ... deep inheritance hierarchies; ... duplication between similar implementations0 码力 | 87 页 | 5.64 MB | 1 年前3
Reusable Code & Reusable Data StructuresSUCCESS? # UNDERSTANDING CODE IS HARD, WRITING CODE IS EASY We love writing code! We have tools! Classes, inheritance, variant, optional, virtual functions! : • a TList (406) class for maintaining0 码力 | 2191 页 | 4.93 MB | 2 年前3
Kotlin Language Documentation 1.3Control Flow: if, when, for, while ..... 96 .Returns and Jumps ..... 100 Classes and Objects ..... 103 Classes and Inheritance ..... 103 Properties and Fields ..... 111 Interfaces .. Data Classes ..... 126 Sealed Classes ..... 128 Generics ..... 129 Nested and Inner Classes ..... 136 Enum Classes ..... 137 Object Expressions and Declarations ..... 139 Inline classes ... databases through their Java drivers. For JPA, the kotlin-jpa compiler plugin adapts Kotlin-compiled classes to the requirements of the framework. ## Deploying Kotlin Server-side Applications Kotlin applications0 码力 | 597 页 | 3.61 MB | 2 年前3
PlantUML 1.2023.11 Guide de référence du langagerapidement des: • diagrammes de séquence • diagrammes de cas d'utilisation • diagrammes de classes • diagrammes d'objet • diagrammes d'activité • diagrammes de composant • diagrammes de 48299/p53_1.jpg) ### 2.10 Changer les directions des flèches Par défaut, les liens entre les classes ont deux tirets -- et sont orientés verticalement. Il est possible de mettre des liens horizontaux et QA-3816] [Voir une fonctionnalité similaire sur le diagramme de déploiement ou le diagramme de classes] ### 2.17 Modifier la couleur et le style d'un élément (style en ligne) Vous pouvez modifier0 码力 | 534 页 | 7.56 MB | 2 年前3
KiCad 7.0 PCB CalculatorTransLine ..... 4 Via Size ..... 6 Track Width ..... 6 Electrical Spacing ..... 7 Board-Classes ..... 7 ## Reference manual ## Copyright This document is Copyright © 2019-2021 by its contributors Regulators • Track Width • Electrical Spacing • Trans Line • RF Attenuators • Color Code • Board Classes ## Calculators ## Regulators This calculator helps with the task of finding the values of the Regulators RF Attenuators E-Series Color Code TransLine Via Size Track Width Electrical Spacing Board Classes Inputs Required resistance: 4.6 kΩ Exclude value 1: Exclude value 2: KΩ kΩ KΩ kΩ KΩ kΩ KΩ kΩ0 码力 | 8 页 | 336.64 KB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
algorithmgeneric algorithmsiterator abstractionSTLconceptsC++20图Boost Graph Library概念范围Generic ProgrammingConstraintsStatic PolymorphismC++ TemplatesKISS Principle类设计封装设计决策常量正确性成员变量顺序隐式转换可读性可变性可测试性资源管理Reusable CodeDRYGeneric FunctionGeneric ClassesAbstract ConceptRTL unitsVariantsClassesBaseUnixConstantsCoroutinesMultiplatform ProjectsInline classesContractsProgressive modePlantUMLdiagrammes UMLdiagrammes de classescréoleUnicodeTrack WidthElectrical SpacingVia SizeBoard ClassesTransLine













