CoinPackedVector::CoinPackedVector(int size, const double * element, bool testForDuplicateIndex) : CoinPackedVectorBase(), indices_(NULL), elements_(NULL), nElements_(0), origIndices_(NULL), capacity_(0) { setFull(size, element, testForDuplicateIndex); }
bool JID::setResource( const std::string& res ) { m_valid = prep::resourceprep( res, m_resource ); setFull(); return m_valid; }
void CMap::update() { int empty = 0; int clicked_x = -1, clicked_y = -1; bool c = false; if (Input.isMouseLeftClick()) { clicked_x = mouse_x; clicked_y = mouse_y; c = true; } else { c = false; } int a = 0; for (int i = 0; i < width; i++) { int zz = 0; int za = 0; for (int j = 0; j < height; j++) { // if (j != 0 && items[i][j] == items[i][j-1] && items[i][j] != EITEM_NULL) { zz++; } if (j != 0 && items[j][i] == items[j-1][i] && items[j][i] != EITEM_NULL) { za++; } // Clicked? if (isClicked(i, j, clicked_x, clicked_y) && c == true) { if (!clicked) { clicked = true; sel_x = i; sel_y = j; } else { if (clicked_x != -1 && clicked_y != -1) { swap(sel_x, sel_y, i, j); clicked_x = -1; clicked_y = -1; } clicked = false; } a++; } // Is it empty? if (items[i][j] != EITEM_NULL) { empty++; } } if (zz == width-1 || za == height-1) { increaseMap(); } } if (a == 0 && clicked == true && c == true) { clicked == false; } if (empty == width * height) { setFull(true); } }
Url::Url(const char* u) { setFull(u); }