zww520 / pimpl

The C++ Pimpl Idiom Again!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In the domain of commercial large-scale software development the following design principles become important:

  • modularity, separation of concerns,
  • implementation hiding,
  • minimization of compilation and component dependencies,
  • consistent and recognizable implementation and deployment patterns,
  • multi-platform support.

The Pimpl idiom can help great deal achieving these goals. It is a simple yet robust programming technique to minimize coupling via

  • the separation of public interface and private implementation and then
  • implementation hiding.

This header-only library provides a deployment pattern and the supporting infrastructure in an attempt

  • to minimize the deployment and maintenance hassle and the potential for error,
  • to formalize the deployment of the idiom.

To build and run the tests coming with this library you can use CMake. Just execute this sequence of commands:

$ mkdir build
$ cmake -E chdir build cmake ..
$ cmake --build build
$ cmake --build build --target test

HTML documentation is available here.

About

The C++ Pimpl Idiom Again!


Languages

Language:C++ 93.3%Language:CMake 5.6%Language:HTML 1.0%Language:Makefile 0.2%