Download free for 30 days
Sign in
Upload
Language (EN)
Support
Business
Mobile
Social Media
Marketing
Technology
Art & Photos
Career
Design
Education
Presentations & Public Speaking
Government & Nonprofit
Healthcare
Internet
Law
Leadership & Management
Automotive
Engineering
Software
Recruiting & HR
Retail
Sales
Services
Science
Small Business & Entrepreneurship
Food
Environment
Economy & Finance
Data & Analytics
Investor Relations
Sports
Spiritual
News & Politics
Travel
Self Improvement
Real Estate
Entertainment & Humor
Health & Medicine
Devices & Hardware
Lifestyle
Change Language
Language
English
Español
Português
Français
Deutsche
Cancel
Save
EN
Uploaded by
Yuuki Takada
PPTX, PDF
1,212 views
Pimplイディオムについて調査した件
C++のpimplイディオムについて簡単に調べてみました。
Technology
◦
Read more
1
Save
Share
Embed
Embed presentation
Download
Download to read offline
1
/ 17
2
/ 17
3
/ 17
4
/ 17
5
/ 17
6
/ 17
7
/ 17
8
/ 17
9
/ 17
10
/ 17
11
/ 17
12
/ 17
13
/ 17
14
/ 17
15
/ 17
16
/ 17
17
/ 17
More Related Content
PDF
イカ乱
by
oupo
PDF
PyCon JP 2014 plone terada
by
Manabu Terada
PDF
XML-RPC : Pythonが「電池付属」と呼ばれる理由
by
Ransui Iso
PDF
Lt7 TensorFlow
by
GIG inc.
PDF
ネタプログラミング言語クリエイターYouma (Gunma.web #8 2012/03/03)
by
parrotstudio
PPTX
JSF++って何
by
Masateru Suzuki
PDF
組込み向けスクリプト言語mrubyをEV3で動かしてみよう
by
Takuya Azumi
PPTX
ゼロからHtc viveの開発を始める
by
Yuuki Takada
イカ乱
by
oupo
PyCon JP 2014 plone terada
by
Manabu Terada
XML-RPC : Pythonが「電池付属」と呼ばれる理由
by
Ransui Iso
Lt7 TensorFlow
by
GIG inc.
ネタプログラミング言語クリエイターYouma (Gunma.web #8 2012/03/03)
by
parrotstudio
JSF++って何
by
Masateru Suzuki
組込み向けスクリプト言語mrubyをEV3で動かしてみよう
by
Takuya Azumi
ゼロからHtc viveの開発を始める
by
Yuuki Takada
Featured
PDF
2024 Trend Updates: What Really Works In SEO & Content Marketing
by
Search Engine Journal
PDF
Storytelling For The Web: Integrate Storytelling in your Design Process
by
Chiara Aliotta
PDF
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
by
OECD Directorate for Financial and Enterprise Affairs
PDF
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
by
SocialHRCamp
PDF
2024 State of Marketing Report – by Hubspot
by
Marius Sescu
PDF
Everything You Need To Know About ChatGPT
by
Expeed Software
PDF
Product Design Trends in 2024 | Teenage Engineerings
by
Pixeldarts
PDF
How Race, Age and Gender Shape Attitudes Towards Mental Health
by
ThinkNow
PDF
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
by
marketingartwork
PDF
Skeleton Culture Code
by
Skeleton Technologies
PDF
PEPSICO Presentation to CAGNY Conference Feb 2024
by
Neil Kimberley
PDF
Content Methodology: A Best Practices Report (Webinar)
by
contently
PPTX
How to Prepare For a Successful Job Search for 2024
by
Albert Qian
PDF
Social Media Marketing Trends 2024 // The Global Indie Insights
by
Kurio // The Social Media Age(ncy)
PDF
Trends In Paid Search: Navigating The Digital Landscape In 2024
by
Search Engine Journal
PDF
5 Public speaking tips from TED - Visualized summary
by
SpeakerHub
PDF
ChatGPT and the Future of Work - Clark Boyd
by
Clark Boyd
PDF
Getting into the tech field. what next
by
Tessa Mero
PDF
Google's Just Not That Into You: Understanding Core Updates & Search Intent
by
Lily Ray
PDF
How to have difficult conversations
by
Rajiv Jayarajah, MAppComm, ACC
2024 Trend Updates: What Really Works In SEO & Content Marketing
by
Search Engine Journal
Storytelling For The Web: Integrate Storytelling in your Design Process
by
Chiara Aliotta
Artificial Intelligence, Data and Competition – SCHREPEL – June 2024 OECD dis...
by
OECD Directorate for Financial and Enterprise Affairs
How to Leverage AI to Boost Employee Wellness - Lydia Di Francesco - SocialHR...
by
SocialHRCamp
2024 State of Marketing Report – by Hubspot
by
Marius Sescu
Everything You Need To Know About ChatGPT
by
Expeed Software
Product Design Trends in 2024 | Teenage Engineerings
by
Pixeldarts
How Race, Age and Gender Shape Attitudes Towards Mental Health
by
ThinkNow
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
by
marketingartwork
Skeleton Culture Code
by
Skeleton Technologies
PEPSICO Presentation to CAGNY Conference Feb 2024
by
Neil Kimberley
Content Methodology: A Best Practices Report (Webinar)
by
contently
How to Prepare For a Successful Job Search for 2024
by
Albert Qian
Social Media Marketing Trends 2024 // The Global Indie Insights
by
Kurio // The Social Media Age(ncy)
Trends In Paid Search: Navigating The Digital Landscape In 2024
by
Search Engine Journal
5 Public speaking tips from TED - Visualized summary
by
SpeakerHub
ChatGPT and the Future of Work - Clark Boyd
by
Clark Boyd
Getting into the tech field. what next
by
Tessa Mero
Google's Just Not That Into You: Understanding Core Updates & Search Intent
by
Lily Ray
How to have difficult conversations
by
Rajiv Jayarajah, MAppComm, ACC
Pimplイディオムについて調査した件
1.
pimplイディオムについて調査した件 Usushiki
2.
pimpl C++で使われるイディオム(アルゴリズム)
3.
というわけで、
5.
もう知っている方は、
7.
Pimplイディオム Pimplは、”ピーインプル” と呼ばれることが多い。 意味としては、 Pointer
To Implementation(実装へのポインタ) Private Implementation(実装の隠蔽) どちらかといえば、上の意味で受け取られることが多い。 しかしてその実態は、下のほうらしい・・・。 (↑ゲームプログラマのためのC++より)
8.
どんなことができるの?
9.
その1 クラスのインターフェース部分と実装部分を分離できる その2 不要なヘッダファイルのインクルードを減らせる その4
コンパイル時間を減らせる(抑制できる) その3 その1により、再コンパイルする必要がなくなる
10.
こんな時使える ・ヘッダファイルの中にメンバ変数がごちゃごちゃしているとき ・publicとprivateのメンバ(変数、関数)を分離させたいとき ・↑が原因でコンパイルの時間が長くなってきたとき
11.
実装 今回は以前作ったWindowクラスに適応してみる。
12.
pImplイディオム適応 + リファクタリング
後 初期化関数とメンバ変数をpImplクラス内に隠蔽 ヘッダ内にインターフェースとイディオムのみに なった Window.hpp
13.
実装部分 Window.cpp pImplクラスはcppで実装する。
14.
実装部分(イディオムの生成) pImplクラスオブジェクトはWindowクラスのコンストラクタで生成する。 Window.cpp
15.
イディオム内のメンバへのアクセス Window.cpp HandleMessage関数 m_pImpl->(メンバ)の形でアクセスする
16.
まとめ メリット ・クラスのインターフェース部分と実装部分を分離できる ・不要なヘッダのインクルードをなくせる ・コンパイル時間の短縮(抑制) デメリット ・間接参照のオーバーヘッドが発生する
17.
ご清聴ありがとうございました
Download