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
.
January 07, 2009, 11:33:50 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home (Index)
Level 2 Cache: Speciality Items
C/++/#, Java, Delphi and other heavies
PImpl
Pages: [
1
]
« previous
next »
Print
Author
Topic: PImpl (Read 286 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:
-----------------------------
Level 1 Cache: General Discussion
-----------------------------
=> Init() - New Member Introductions
=> Callback Routines
=> freemem() & garbage collection
=> All Things General Tech
=> All Things Apple
=> All Things Database
=> All Things *nix
=> All Things Windows
-----------------------------
Level 2 Cache: Speciality Items
-----------------------------
=> AJAX, Specifically: Techniques, Code & Examples
=> ASP & .NET
=> C/++/#, Java, Delphi and other heavies
=> ColdFusion
=> JavaScript Discussion & Help
=> Javascript Code Repository & Examples
=> Music Technology
=> PERL
=> PHP Discussions / Help
=> PHP Code Repository / Examples
=> Python/Lisp/Scheme/Erlang/Obscurities
=> Regex Discussion & Examples
=> SMF Discussion
-----------------------------
phpMyIDE
-----------------------------
=> Announcements & Updates
=> Support Threads
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...