36 #ifndef IECORE_LOOKUP_H
37 #define IECORE_LOOKUP_H
41 #include "boost/function.hpp"
43 #include "OpenEXR/ImathColor.h"
52 template<
typename X,
typename Y>
60 typedef boost::function<Y ( X )> Function;
63 Lookup(
const Function &
function, XType xMin, XType xMax,
unsigned numSamples );
65 void init(
const Function &
function, XType xMin, XType xMax,
unsigned numSamples );
67 inline Y operator() ( X x )
const;
71 std::vector<Y> m_values;
86 #include "IECore/Lookup.inl"
88 #endif // IECORE_LOOKUP_H
This namespace contains all components of the core library.
Definition: AddSmoothSkinningInfluencesOp.h:43