summaryrefslogtreecommitdiff
path: root/ace/Sample_History.inl
diff options
context:
space:
mode:
authorcoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-12-03 18:57:40 +0000
committercoryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-12-03 18:57:40 +0000
commitf14e44bb9b1967e5a66eba13b1f5682ff08fa6d2 (patch)
treebdc9f1377e57912dc5ba5ab98078ef8ea68ac1f5 /ace/Sample_History.inl
parenta56111d5ac0a565e6f73ee2fe4cf5409d3afc9df (diff)
downloadATCD-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.inl9
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];
+}