/usr/include/libMUSCLE-3.7/libMUSCLE/clustsetdf.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 41 42 43 44 45 46 47 48 49 50 51 52 | #ifndef ClustSetDF_h
#define ClustSetDF_h
#include "libMUSCLE/clustset.h"
#include "libMUSCLE/distfunc.h"
#include "libMUSCLE/msa.h"
namespace muscle {
class MSA;
class Clust;
class ClustSetDF : public ClustSet
{
public:
ClustSetDF(const DistFunc &DF) :
m_ptrDF(&DF)
{
}
public:
virtual unsigned GetLeafCount()
{
return m_ptrDF->GetCount();
}
virtual const char *GetLeafName(unsigned uNodeIndex)
{
return m_ptrDF->GetName(uNodeIndex);
}
virtual unsigned GetLeafId(unsigned uNodeIndex)
{
return m_ptrDF->GetId(uNodeIndex);
}
virtual void JoinNodes(const Clust &C, unsigned uLeftNodeIndex,
unsigned uRightNodeIndex, unsigned uJoinedNodeIndex,
double *ptrdLeftLength, double *ptrdRightLength)
{
Quit("ClustSetDF::JoinNodes, should never be called");
}
virtual double ComputeDist(const Clust &C, unsigned uNodeIndex1,
unsigned uNodeIndex2)
{
return m_ptrDF->GetDist(uNodeIndex1, uNodeIndex2);
}
private:
const DistFunc *m_ptrDF;
};
} // namespace muscle
#endif // ClustSetDF_h
|