<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>组合模式 on 111qqz's blog</title><link>https://111qqz.com/en/tags/%E7%BB%84%E5%90%88%E6%A8%A1%E5%BC%8F/</link><description>Recent content in 组合模式 on 111qqz's blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2015-2026 111qqz</copyright><lastBuildDate>Tue, 28 Aug 2018 06:30:59 +0000</lastBuildDate><atom:link href="https://111qqz.com/en/tags/%E7%BB%84%E5%90%88%E6%A8%A1%E5%BC%8F/index.xml" rel="self" type="application/rss+xml"/><item><title>[设计模式] 组合模式（composite） 学习笔记</title><link>https://111qqz.com/en/post/%E5%B7%A5%E7%A8%8B/%E5%85%B6%E4%BB%96/2018-08-28-composite-pattern-notes/</link><pubDate>Tue, 28 Aug 2018 06:30:59 +0000</pubDate><guid>https://111qqz.com/en/post/%E5%B7%A5%E7%A8%8B/%E5%85%B6%E4%BB%96/2018-08-28-composite-pattern-notes/</guid><description>&lt;p&gt;目的是忽略单一对象和组合对象的不同。 有点像以前写过的用链表定义一个树结构，每个节点是一个val + 多个&lt;em&gt;tree 。如果某个节点是叶子节点了，那么对应的&lt;/em&gt;tree都为NULL. 只不过这里用了更加面向对象的实现。&lt;/p&gt;</description></item></channel></rss>