Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Sample_History.inl

Go to the documentation of this file.
00001 // $Id: Sample_History.inl,v 1.1.1.2 2003/02/21 18:36:32 chad Exp $
00002 
00003 ACE_INLINE int
00004 ACE_Sample_History::sample (ACE_UINT64 value)
00005 {
00006   if (this->sample_count_ >= this->max_samples_)
00007     return -1;
00008 
00009   this->samples_[this->sample_count_++] = value;
00010   return 0;
00011 }
00012 
00013 ACE_INLINE ACE_UINT64
00014 ACE_Sample_History::get_sample (size_t i) const
00015 {
00016   if (this->sample_count_ <= i)
00017     return 0;
00018 
00019   return this->samples_[i];
00020 }

Generated on Mon Jun 16 11:21:06 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002