IMP logo
Classes | Typedefs | Functions
IMP::compatibility Namespace Reference

Detailed Description

This module tries to smooth over the variations in platforms.

The functionality exposed in this module is there to smooth over differences in C++ environments on various platforms. It includes classes that select the best available implementation of some concept

or headers that simply make sure the correct header is included

Author(s): Daniel Russel

Version: SVN.r14091

License: LGPL. This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

Publications:

Classes

class  map
class  piecewise_linear_distribution
class  set

Typedefs

typedef std::vector vector

Functions

template<class T >
bool isnan (const T &a)
 Return true if a number is NaN.

Typedef Documentation

typedef std::vector IMP::compatibility::vector

This class defines a std::vector-like template that, when available and IMP is not built in fast mode, performs bounds checking. In general IMP code should prefer this vector to std::vector for internal storage.

Currently, bounds checking is provided when compiling with gcc.


Function Documentation

template<class T >
bool IMP::compatibility::isnan ( const T &  a)

Return true if a number is NaN.

With certain compiler settings the compiler can optimize out a!=a (and certain intel chips had issues with it too).


Generated on Tue May 22 2012 23:33:28 for IMP by doxygen 1.8.1