double PerformanceCounter::NextDouble() { PDH_FMT_COUNTERVALUE value; auto status = NextValue(PDH_FMT_DOUBLE, &value); if (status != ERROR_SUCCESS) return NAN; return ToDouble(value); }
LONG PerformanceCounter::NextLong() { PDH_FMT_COUNTERVALUE value; auto status = NextValue(PDH_FMT_LONG, &value); if (status != ERROR_SUCCESS) return LONG_MIN; return ToLong(value); }
GxxValuePtr GxxValueMap::ValueForKey( CGxxKey& _key ) { for (TyMap::iterator it = FirstValue(); !IsLastValue(it); NextValue(it)) { Pair *p = *it; if (p->key.compare(_key) == 0) return p->value; } return GxxValuePtr(); }
void GxxValueMap::objectReleased() { for (TyMap::iterator it = FirstValue(); !IsLastValue(it); NextValue(it)) { Pair* pair = (*it); if (pair) { delete pair; } } __pMap->clear(); delete __pMap; }
PageFaultsDataSource::PageFaultsDataSource() : fPreviousFaults(0), fPreviousTime(0) { SystemInfo info; NextValue(info); fMinimum = 0; fMaximum = 1000000000LL; fColor = (rgb_color){200, 0, 150, 0}; }
NetworkUsageDataSource::NetworkUsageDataSource(bool in) : fIn(in), fPreviousBytes(0), fPreviousTime(0) { SystemInfo info; NextValue(info); fMinimum = 0; fMaximum = 1000000000LL; fColor = fIn ? (rgb_color){200, 150, 0} : (rgb_color){200, 220, 0}; }
HRESULT EnumerateNext(LPITEMIDLIST* ppidl) { if (!m_values) { HRESULT hr = NextKey(ppidl); if (hr != S_FALSE) return hr; // switch to values. m_values = TRUE; m_idx = 0; } return NextValue(ppidl); }
void GxxValueMap::PutValue( CGxxKey& _key, GxxValuePtr& _value ) { for (TyMap::iterator it = FirstValue(); !IsLastValue(it); NextValue(it)) { Pair *p = *it; if (p->key.compare(_key) == 0) { p->value = _value; return; } } Pair *p = new Pair; p->key = _key; p->value = _value; __pMap->push_back(p); }
void Mcoloring(int k) { int i; do { NextValue(k); //przypisz wierzcholkowi kolor if(X[k] == 0) { return; //brak kolorow } if(k == n-1) { for(i=0; i < n; i++) { my_array[i][i] = X[i]; } wyswietl_info(); } else { Mcoloring(k+1); } } while(!0); }
void UKUIScrollSelectWidget::OnRightButtonClick( UKUISimpleClickWidget* cmButton, const FVector2D& v2ClickOffset ) { NextValue(); }
void __fastcall TStreamingDeviceFrame::Timer1Timer(TObject * Sender) { NextValue(); DoChanged(); }