diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-12-03 18:57:40 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2001-12-03 18:57:40 +0000 |
commit | f14e44bb9b1967e5a66eba13b1f5682ff08fa6d2 (patch) | |
tree | bdc9f1377e57912dc5ba5ab98078ef8ea68ac1f5 /ace/Sample_History.inl | |
parent | a56111d5ac0a565e6f73ee2fe4cf5409d3afc9df (diff) | |
download | ATCD-f14e44bb9b1967e5a66eba13b1f5682ff08fa6d2.tar.gz |
ChangeLogTag:Mon Dec 3 10:54:34 2001 Carlos O'Ryan <coryan@uci.edu>
Diffstat (limited to 'ace/Sample_History.inl')
-rw-r--r-- | ace/Sample_History.inl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ace/Sample_History.inl b/ace/Sample_History.inl index 92d70ac83ef..e3882a28bc3 100644 --- a/ace/Sample_History.inl +++ b/ace/Sample_History.inl @@ -9,3 +9,12 @@ ACE_Sample_History::sample (ACE_UINT64 value) this->samples_[this->sample_count_++] = value; return 0; } + +ACE_INLINE ACE_UINT64 +ACE_Sample_History::get_sample (size_t i) const +{ + if (this->sample_count_ <= i) + return 0; + + return this->samples_[i]; +} |