Files
bullet3/Demos3/FiniteElementMethod/OpenTissue/utility/utility_less_ptr.h
erwin coumans 4b665fa82b add btFileUtils::toLower to convert a string (char*) to lower case
URDF import demo: add COLLADA .dae file support
add FiniteElementMethod demo, extracted from the OpenTissue library (under the zlib license)
don't crash if loading an invalid STL file
add comparison with Assimp for COLLADA file loading (disabled by default, to avoid library dependency)
Gwen: disable some flags that make the build incompatible
2014-10-29 13:18:34 -07:00

34 lines
807 B
C++

#ifndef OPENTISSUE_UTILITY_UTILITY_LESS_PTR_H
#define OPENTISSUE_UTILITY_UTILITY_LESS_PTR_H
//
// OpenTissue, A toolbox for physical based simulation and animation.
// Copyright (C) 2007 Department of Computer Science, University of Copenhagen
//
#include <OpenTissue/configuration.h>
#include <functional>
namespace OpenTissue
{
namespace utility
{
/**
* Less Than Test.
* This is used for doing a less than test on data
* structures containing pointers to data and not instances.
*/
template<class T>
struct less_ptr
: public std::binary_function<T, T, bool>
{
bool operator()(const T& x, const T& y) const { return (*x)<(*y); }
};
} //End of namespace utility
} //End of namespace OpenTissue
// OPENTISSUE_UTILITY_UTILITY_LESS_PTR_H
#endif