Mercurial > hg > audiodb
view pointpair.cpp @ 573:503e0d091d5e
Reindent pd bindings file.
I don't really mind one consistent indentation style, but two or maybe
three within the same file is a bit much.
author | mas01cr |
---|---|
date | Mon, 06 Jul 2009 11:52:23 +0000 |
parents | cc2b97d020b1 |
children | 9119f2fa3efe |
line wrap: on
line source
extern "C" { #include "audioDB_API.h" } #include "audioDB-internals.h" PointPair::PointPair(Uns32T a, Uns32T b, Uns32T c) : trackID(a), qpos(b), spos(c) { }; bool operator<(const PointPair& a, const PointPair& b) { return ((a.trackID < b.trackID) || ((a.trackID == b.trackID) && ((a.spos < b.spos) || ((a.spos == b.spos) && (a.qpos < b.qpos))))); } bool operator>(const PointPair& a, const PointPair& b) { return ((a.trackID > b.trackID) || ((a.trackID == b.trackID) && ((a.spos > b.spos) || ((a.spos == b.spos) && (a.qpos > b.qpos))))); } bool operator==(const PointPair& a, const PointPair& b) { return ((a.trackID == b.trackID) && (a.qpos == b.qpos) && (a.spos == b.spos)); }