25 template<
class Tsource,
class Tdest>
28 if (this->max_move < cp->Count()) {
29 cp = cp->
Split(this->max_move);
32 this->max_move -= cp->
Count();
43 template<
class Tsource>
46 if (this->max_move >= cp->
Count()) {
47 this->max_move -= cp->
Count();
50 uint ret = this->max_move;
62 template<
class Tsource>
65 if (
remove == cp->
Count()) {
83 uint
remove = this->Preprocess(cp);
84 this->source->RemoveFromCache(cp,
remove);
85 return this->Postprocess(cp,
remove);
124 if (cp_new == NULL)
return false;
139 if (cp_new == NULL)
return false;
155 if (cp_new == NULL) cp_new = cp;
171 if (cp_new == NULL)
return false;
186 if (cp_new == NULL) cp_new = cp;
200 if (cp_new == NULL) cp_new = cp;
202 assert(next != this->avoid && next != this->avoid2);
223 if (cp_new == NULL) cp_new = cp;