Download source
Author: Anthony Daniels
Introduction
This package is intended to provide the user with threadsafe containers and classes for applications in High Performance Computing (HPC) where parallel programming is commonplace. Today’s multi-core computers bring that parallelism into the realm of everyday use. It is important to provide thread safe containers and classes in this environment. The HPC Template Library (HTL) aims to replace certain portions of the STL. It is a merger and rewrite of classes from the STL, QT, Boost, and SigSlots libraries. All of the containers are now threadsafe implementing mutexes around critical operations. It is designed as a dynamic linked library for the user to include directly in their projects. It is written for the Windows platform, although the user could adapt it for use in Linux / Unix by changing only the HtlThread
and HtlTime
sub packages. The code is designed to be easy to read and well documented. The HTL has 14 sub packages to parcel functionality of different classes. The license for the Library is LGPL. A CSharp Version of this library is posted on this site.
HTL Packages Overview
The HTL has 14 sub packages to parcel functionality of different classes. The packages are as follows (listed in alphabetical order). As can be seen, there are a few outlying classes that need to be added, but HTL is mostly operational. The development of unit test code for the library has also commenced and is in the code package. Testing will continue.
Package Description | Operational Status |
HtlArchive : Contains all of the classes necessary for serialization and deserialization of objects. It contains a generic archive tree / node system and three different serializer packages (XML, XDL, JSON, Binary). | Archive Model (100%)
XML (100%)
XDL(100%)
JSON (100%)
Binary(0%) to be added
|
HtlAtomic : Contains a template class that allows for turning any object into an atomic object (threadsafe) via its operators. | (0 %) to be added
|
HtlBase : Contains the base classes for making objects serializable using the HTL system. It also has a base object that is signal slot capable using the HTL sig slots system. – (fully operational) | (100%)
|
HtlContainer : Contains all of the container classes of the HTL (Htl1DVector , Htl1DList , Htl2DArray , Htl3DMatrix , HtlListMap , HtlMap , etc.). All containers in this set are serializable in the HTL system. – (fully operational) | (100%)
|
HtlGlobal : Contains globally used enumerated types, structs, etc. – (fully operational) | (100%)
|
HtlGUID : Contains the three Global Unique Identifiers (GUID); 64bit, 128bit, and 256bit. – (fully operational) | (100%)
|
HtlMacro : Contains the set of Macros that are allowed in the HTL. HTL makes minimal use of macros because in general macros are a bad programming practice. | (100%)
|
HtlMath : Contains the basic math functions that supplement the STL <math.h> library. | (100%)
|
HtlRandNumGen : Contains a system for random number generators and random distribution generators. | (100%)
|
HtlSignalSlot : This is a signals and slots library that is based on the sigslots library. Some changes to the library have been made although. | (100%)
|
HtlString : Contains the string class that replaces the std::string . They are interoperable, meaning you can go directly between HtlString and std::string . | (100%)
|
HtlTest : Contains the HTL unit testing system. This is a test name based unit test system similar to boost, but no macros were used in it. | (100%)
|
HtlThread : Contains all thread related classes including mutexes, semaphores, threads, etc. | (100%)
|
HtlTime : Contains elapsed time timers and countdown timers.
| (50%) countdown timer needs to be added
|