Changes to attempt to silence bcc64x
[ACE_TAO.git] / ACE / ace / Sample_History.inl
blobbcd4918a27ac67479a838bb04dfc067b0e76222f
1 // -*- C++ -*-
2 ACE_BEGIN_VERSIONED_NAMESPACE_DECL
4 ACE_INLINE int
5 ACE_Sample_History::sample (ACE_UINT64 value)
7   if (this->sample_count_ >= this->max_samples_)
8     return -1;
10   this->samples_[this->sample_count_++] = value;
11   return 0;
14 ACE_INLINE ACE_UINT64
15 ACE_Sample_History::get_sample (size_t i) const
17   if (this->sample_count_ <= i)
18     return 0;
20   return this->samples_[i];
23 ACE_INLINE size_t
24 ACE_Sample_History::max_samples () const
26   return this->max_samples_;
29 ACE_INLINE size_t
30 ACE_Sample_History::sample_count () const
32   return this->sample_count_;
35 ACE_END_VERSIONED_NAMESPACE_DECL