//---------------------------------------------- KVCouple::KVCouple(Int_t zf,Int_t zsup,Int_t div){ zfra = zf; zmax = zsup; zlim = zfra/div; Double_t zmoy = zfra/Double_t(div); Double_t diff = zmoy-zlim; Int_t sup = TMath::Nint(diff*div); if (sup>=1){ zlim+=1; } if (zfra>=zmax) { //cas 1 nbre = zmax-zlim+1; if (nbre>0){ tz1 = new Int_t[nbre]; tz2 = new Int_t[nbre]; Int_t z1=0; for (Int_t ii=0;ii<nbre;ii+=1){ z1 = zmax-ii; tz1[ii] = z1; tz2[ii] = zfra-z1; } init=kTRUE; } else { //return; ResetVars(); } } else { nbre = zfra-zlim+1; if (nbre>0){ tz1 = new Int_t[nbre]; tz2 = new Int_t[nbre]; Int_t z1=0; for (Int_t ii=0;ii<nbre;ii+=1){ z1 = zfra-ii; tz1[ii] = z1; tz2[ii] = zfra-z1; } init=kTRUE; } else { //return; ResetVars(); } } }
UUDWrap::UUDWrap() { ResetVars(); uulibversion = strdup(VERSION "pl" PATCH); }
MythRenderOpenGL2::MythRenderOpenGL2(const QGLFormat& format, QPaintDevice* device, RenderType type) : MythRenderOpenGL(format, device, type) { ResetVars(); ResetProcs(); }
CHttpClient::CHttpClient() { // If windows startup winsock #ifdef WIN32 WSADATA wsaData; WSAStartup(MAKEWORD(2, 2), &wsaData); #endif // Invalidate the socket handle m_sSocket = INVALID_SOCKET; ResetVars(); }
void RevKBCCTrainer::Reset() { if(data.get() != 0) { ResetVars(); } net1->Reset(); net2->Reset(); network = net1; firstTrained = false; ScopedOut = false; TestWhileTrainResults.clear(); outTestDS.reset(); bufferDS->Clear(); SaveNetParameters(net1vals); SaveNetParameters(net2vals); SubNetlist = resSubNetList; }
//---------------------------------------------- KVCouple::KVCouple(Int_t zf,Int_t zsup){ //printf("zf=%d zmax=%d\n",zf,zsup); zfra = zf; zmax = zsup; Int_t div=2; zlim = zfra/div; Double_t zmoy = zfra/Double_t(div); Double_t diff = zmoy-zlim; Int_t sup = TMath::Nint(diff*div); if (sup>=1){ zlim+=1; } Int_t zref = 0; ( (zfra>=zmax) ? zref=zmax : zref=zfra ); nbre = zref-zlim+1; if (nbre>0){ tz1 = new Int_t[nbre]; tz2 = new Int_t[nbre]; Int_t z1=0; for (Int_t ii=0;ii<nbre;ii+=1){ z1 = zref-ii; tz1[ii] = z1; tz2[ii] = zfra-z1; //printf(" %d %d %d\n",ii,z1,zfra-z1); } init=kTRUE; } else { //return; ResetVars(); } }
bool VGMMultiSectionSeq::LoadTracks(ReadMode readMode, long stopTime) { this->readMode = readMode; curOffset = dwStartOffset; // Clear all track pointers to prevent delete, they must be aliases of section tracks aTracks.clear(); // reset variables ResetVars(); // load all tracks uint32_t stopOffset = vgmfile->GetEndOffset(); while (curOffset < stopOffset && time < stopTime) { if (!ReadEvent(stopTime)) { break; } } if (readMode == READMODE_ADD_TO_UI) { SetGuessedLength(); if (unLength == 0) { return false; } } bool succeeded = true; if (!PostLoad()) { succeeded = false; } return succeeded; }
CSoundItem::CSoundItem(CSoundData* sndData) { ResetVars(); if (InitOpenAL()) Attach(sndData); }
MythRenderOpenGL1::MythRenderOpenGL1(const QGLFormat& format, QPaintDevice* device) : MythRenderOpenGL(format, device, kRenderOpenGL1) { ResetVars(); ResetProcs(); }
CSoundItem::CSoundItem() { ResetVars(); }
ObjBase::ObjBase(int x, int y) { ResetVars(); Vertex v(x, y); params.coords = v; }
ObjBase::ObjBase(Vertex start_coords) { ResetVars(); params.coords = start_coords; }
CSoundBase::CSoundBase() { ResetVars(); }
CIteratorVars::CIteratorVars() { ResetVars(); }
MythRenderOpenGL2::MythRenderOpenGL2(const QGLFormat& format, RenderType type) : MythRenderOpenGL(format, type) { ResetVars(); ResetProcs(); }
MythRenderOpenGL1::MythRenderOpenGL1(const QGLFormat& format) : MythRenderOpenGL(format, kRenderOpenGL1) { ResetVars(); ResetProcs(); }
MythRenderOpenGL2::MythRenderOpenGL2(const QGLFormat& format) : MythRenderOpenGL(format) { ResetVars(); ResetProcs(); }