only in patch2:
unchanged:
|
|
|
62 | 62 | * \param rate the rate of matched vertices |
63 | 63 | * \param avgweight the average edge weight (is not printed if not given) |
64 | 64 | **/ |
65 | | void done (float rate, float avgweight = NoAvgWeight) const ; |
| 65 | void done (float rate, float avgweight = 1.0) const ; |
66 | 66 | |
67 | | static const float NoAvgWeight = -1.0 ; |
| 67 | static float NoAvgWeight ; |
68 | 68 | |
69 | 69 | protected: |
70 | 70 | std::string vcompose (const char *msgfmt, va_list ap) const ; |
only in patch2:
unchanged:
|
|
|
29 | 29 | namespace sgi { using ::hash ; using ::hash_map ; } ; |
30 | 30 | # else |
31 | 31 | # include <ext/hash_map> |
32 | | # if __GNUC_MINOR__ == 0 |
| 32 | # if __GNUC__ == 3 && __GNUC_MINOR__ == 0 |
33 | 33 | namespace sgi = std ; // GCC 3.0 |
34 | 34 | # else |
35 | 35 | namespace sgi = __gnu_cxx ; // GCC 3.1 and later |
only in patch2:
unchanged:
|
|
|
30 | 30 | namespace sgi { using ::hash ; using ::hash_set ; } ; |
31 | 31 | # else |
32 | 32 | # include <ext/hash_set> |
33 | | # if __GNUC_MINOR__ == 0 |
| 33 | # if __GNUC__ == 3 && __GNUC_MINOR__ == 0 |
34 | 34 | namespace sgi = std ; // GCC 3.0 |
35 | 35 | # else |
36 | 36 | namespace sgi = ::__gnu_cxx ; // GCC 3.1 and later |
only in patch2:
unchanged:
|
|
|
26 | 26 | |
27 | 27 | // AuMuLawAudioData |
28 | 28 | typedef AudioDataImpl<AuMuLaw,BYTE> AuMuLawAudioData ; |
29 | | inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; } |
30 | | inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; } |
| 29 | template <> inline BYTE AuMuLawAudioData::readValue (BinaryIO* io) const { return (io->read8()) ; } |
| 30 | template <> inline void AuMuLawAudioData::writeValue (BinaryIO* io, BYTE v) const { io->write8(v) ; } |
31 | 31 | |
32 | 32 | // AuPCM8AudioData |
33 | 33 | typedef AudioDataImpl<AuPCM8,SBYTE> AuPCM8AudioData ; |
34 | | inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; } |
35 | | inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; } |
| 34 | template <> inline SBYTE AuPCM8AudioData::readValue (BinaryIO* io) const { return ((SBYTE) io->read8()) ; } |
| 35 | template <> inline void AuPCM8AudioData::writeValue (BinaryIO* io, SBYTE v) const { io->write8((BYTE) v) ; } |
36 | 36 | |
37 | 37 | // AuPCM16AudioData |
38 | 38 | typedef AudioDataImpl<AuPCM16,SWORD16> AuPCM16AudioData ; |
39 | | inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; } |
40 | | inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; } |
| 39 | template <> inline SWORD16 AuPCM16AudioData::readValue (BinaryIO* io) const { return ((SWORD16) io->read16_be()) ; } |
| 40 | template <> inline void AuPCM16AudioData::writeValue (BinaryIO* io, SWORD16 v) const { io->write16_be((UWORD16) v) ; } |
41 | 41 | |
42 | 42 | // AuPCM32AudioData |
43 | 43 | typedef AudioDataImpl<AuPCM32,SWORD32> AuPCM32AudioData ; |
44 | | inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; } |
45 | | inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; } |
| 44 | template <> inline SWORD32 AuPCM32AudioData::readValue (BinaryIO* io) const { return ((SWORD32) io->read32_be()) ; } |
| 45 | template <> inline void AuPCM32AudioData::writeValue (BinaryIO* io, SWORD32 v) const { io->write32_be((UWORD32) v) ; } |
46 | 46 | |
47 | 47 | #endif // ndef SH_AUDATA_H |
only in patch2:
unchanged:
|
|
|
100 | 100 | static const VERBOSITY Default_Verbosity = NORMAL ; |
101 | 101 | static const unsigned long Default_Radius = 0 ; // there is no default radius for all file formats |
102 | 102 | static const unsigned int Max_Algorithm = 3 ; |
103 | | static const float Default_Goal = 100.0 ; |
| 103 | static float Default_Goal ; |
104 | 104 | static const DEBUGCOMMAND Default_DebugCommand = NONE ; |
105 | 105 | static const bool Default_Check = false ; |
106 | 106 | static const unsigned int Default_DebugLevel = 0 ; |
only in patch2:
unchanged:
|
|
|
28 | 28 | #include "error.h" |
29 | 29 | #include "msg.h" |
30 | 30 | |
| 31 | float Arguments::Default_Goal = 100.0 ; |
| 32 | |
31 | 33 | // the global Arguments object |
32 | 34 | Arguments Args ; |
33 | 35 | |
only in patch2:
unchanged:
|
|
|
23 | 23 | #include "ProgressOutput.h" |
24 | 24 | #include "common.h" |
25 | 25 | |
| 26 | float ProgressOutput::NoAvgWeight = -1.0 ; |
| 27 | |
26 | 28 | ProgressOutput::ProgressOutput () |
27 | 29 | : Message("__nomessage__") |
28 | 30 | { |