The Syndk8 - Black Hat SEO Paradise
Fantomaster - Industrial Strength Black Hat SEO Tools
Affiliate Earners: Affiliate Programs
Home
Help
Search
Login
Register
RSS for SEOIdiot
Welcome,
Guest
. Please
login
or
register
.
November 20, 2008, 10:42:49 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home (Index)
Code Repository
C / C++ / C#
PImpl
Pages: [
1
]
« previous
next »
Print
Author
Topic: PImpl (Read 252 times)
m0nkeymafia
Expert
Offline
Posts: 236
Check it!
PImpl
«
on:
September 03, 2007, 07:45:01 AM »
Not PIMP but PImpl.
Basically a set of methodologies to make your C++ apps build a lot faster using forward declarations and hiding certain implementations.
The main premise is removing includes from your header file.
i.e. if i have a class like so
#include "a.h"
class b
{
public:
a *GetClassA() const;
private:
a * m_MyClassA;
}
In this example the a header file does not need to be included, it can be forward declared like so:
class a;
this means when you compile this header file does not depend on "a" making it much faster to compile.
Sometimes though this cannot be achieved and you need to hide implementations using a...PIMPL! Yay
i.e.
class foo
{
....
struct *PImpl;
PImpl *m_PImpl;
}
in your /.cpp file you would then flesh out the content of the PImpl i.e.
struct PImpl
{
class a;
class b;
class c;
}
Im crap at explaining so maybe a google search is in order, but very useful and drastically reduces build times!
Logged
I am Tyler Durden
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Welcome to The Cache
-----------------------------
=> Init() - New Member Introductions
=> Efficient Cache Access Functions (aka User Tips)
=> I/O Protocols (Forum Rules)
=> Callback Routines
=> Coder's World Beat
=> The Tao of Programming
=> freemem() & garbage collection
-----------------------------
phpMyIDE
-----------------------------
=> Announcements & Updates
=> Support Threads
=> Tips, Tricks & Techniques
-----------------------------
Discussion Boards
-----------------------------
=> AJAX
=> ASP & .NET
=> C/++/#, Java, Delphi and other heavies
=> ColdFusion
=> Database Discussion (MySQL, Oracle and such)
=> General Discussion
=> JavaScript
=> Mac & iPhone Stuff
=> Music & Music Technology
=> PERL Coding & Best Practices
=> PHP
=> Python, Lisp/Scheme
=> *n[ui]x & OS-X
=> SMF Discussion
=> All things Windows
-----------------------------
Code Repository
-----------------------------
=> C / C++ / C#
=> ASP / .NET
=> Cold Fusion
=> Javascript & AJAX
=> Lisp (++Scheme) and such
=> PERL
=> PHP
=> Python
=> Regex
=> Shell Scripting
Perkiset's Place Home
Best of The Cache
phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's
Pinkhat's Perspective
cache
mart
coder
programmers
ajax
php
javascript
Loading...