/usr/include/libMUSCLE-3.7/libMUSCLE/distfunc.h is in libmuscle-3.7-dev 3.7+4565-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | #ifndef DistFunc_h
#define DistFunc_h
namespace muscle {
class DistFunc
{
public:
DistFunc();
virtual ~DistFunc();
public:
virtual void SetCount(unsigned uCount);
virtual void SetDist(unsigned uIndex1, unsigned uIndex2, float dDist);
void SetName(unsigned uIndex, const char szName[]);
void SetId(unsigned uIndex, unsigned uId);
const char *GetName(unsigned uIndex) const;
unsigned GetId(unsigned uIndex) const;
virtual float GetDist(unsigned uIndex1, unsigned uIndex2) const;
virtual unsigned GetCount() const;
void LogMe() const;
protected:
unsigned VectorIndex(unsigned uIndex, unsigned uIndex2) const;
unsigned VectorLength() const;
private:
unsigned m_uCount;
unsigned m_uCacheCount;
float *m_Dists;
char **m_Names;
unsigned *m_Ids;
};
} // namespace muscle
#endif // DistFunc_h
|