找回密码
 To register

QQ登录

只需一步,快速开始

扫一扫,访问微社区

Titlebook: Design Patterns in Modern C++; Reusable Approaches Dmitri Nesteruk Book 20181st edition Dmitri Nesteruk 2018 C++.C plus plus.Cpp.design.pa

[复制链接]
楼主: 萌芽的心
发表于 2025-3-23 10:40:22 | 显示全部楼层
BuilderThe Builder pattern is concerned with the creation of . objects, that is, objects that cannot be built up in a single-line constructor call. These types of objects may themselves be composed of other objects and might involve less-than-obvious logic, necessitating a separate component specifically dedicated to object construction.
发表于 2025-3-23 17:47:35 | 显示全部楼层
发表于 2025-3-23 20:16:40 | 显示全部楼层
发表于 2025-3-24 00:42:28 | 显示全部楼层
CompositeIt’s a fact of life that objects are quite often composed of other objects (or, in other words, they aggregate other objects). Remember, we agreed to equate aggregation and composition at the start of this section of the book.
发表于 2025-3-24 04:31:35 | 显示全部楼层
发表于 2025-3-24 10:18:18 | 显示全部楼层
发表于 2025-3-24 14:08:36 | 显示全部楼层
FlyweightA Flyweight (also sometimes called a . or a .) is a temporary component that acts as a “smart reference” to something. Typically, flyweights are used in situations where you have a very large number of very similar objects, and you want to minimize the amount of memory that is dedicated to storing all these values.
发表于 2025-3-24 15:30:42 | 显示全部楼层
ProxyWhen we looked at the Decorator design pattern, we saw the different ways of enhancing the functionality of an object. The Proxy design pattern is similar, but its goal is generally to preserve exactly (or as closely as possible) the API that is being used while offering certain internal ehnancements.
发表于 2025-3-24 20:55:49 | 显示全部楼层
发表于 2025-3-25 00:41:49 | 显示全部楼层
IteratorAn iterator is, quite simply, an object that can point to an element of a collection and also knows how to move to the next element in the collection. As such, it is only required to implement the . operator and the . operator (so you can compare two iterators and check if they point to the same thing). That’s it.
 关于派博传思  派博传思旗下网站  友情链接
派博传思介绍 公司地理位置 论文服务流程 影响因子官网 SITEMAP 大讲堂 北京大学 Oxford Uni. Harvard Uni.
发展历史沿革 期刊点评 投稿经验总结 SCIENCEGARD IMPACTFACTOR 派博系数 清华大学 Yale Uni. Stanford Uni.
|Archiver|手机版|小黑屋| 派博传思国际 ( 京公网安备110108008328) GMT+8, 2025-5-25 10:41
Copyright © 2001-2015 派博传思   京公网安备110108008328 版权所有 All rights reserved
快速回复 返回顶部 返回列表