mirror of
https://github.com/TomHarte/CLK.git
synced 2024-07-07 23:29:06 +00:00
Picks a better function name.
This commit is contained in:
parent
0521de668a
commit
d8a41575c8
@ -153,7 +153,7 @@ template <class T> class WrappedInt {
|
|||||||
// Jiggery pokery here; switching to function overloading avoids
|
// Jiggery pokery here; switching to function overloading avoids
|
||||||
// the namespace-level requirement for template specialisation.
|
// the namespace-level requirement for template specialisation.
|
||||||
Result r;
|
Result r;
|
||||||
static_cast<T *>(this)->fill_flush(r);
|
static_cast<T *>(this)->fill(r);
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -173,7 +173,7 @@ class Cycles: public WrappedInt<Cycles> {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
friend WrappedInt;
|
friend WrappedInt;
|
||||||
void fill_flush(Cycles &result) {
|
void fill(Cycles &result) {
|
||||||
result.length_ = length_;
|
result.length_ = length_;
|
||||||
length_ = 0;
|
length_ = 0;
|
||||||
}
|
}
|
||||||
@ -206,12 +206,12 @@ class HalfCycles: public WrappedInt<HalfCycles> {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
friend WrappedInt;
|
friend WrappedInt;
|
||||||
void fill_flush(Cycles &result) {
|
void fill(Cycles &result) {
|
||||||
result = Cycles(length_ >> 1);
|
result = Cycles(length_ >> 1);
|
||||||
length_ &= 1;
|
length_ &= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void fill_flush(HalfCycles &result) {
|
void fill(HalfCycles &result) {
|
||||||
result.length_ = length_;
|
result.length_ = length_;
|
||||||
length_ = 0;
|
length_ = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user