[Sumover-dev] [svn commit] r4320 - vic/branches/cc/cc/test
sumover-dev at cs.ucl.ac.uk
sumover-dev at cs.ucl.ac.uk
Mon Nov 17 18:28:09 GMT 2008
Author: soohyunc
Date: Mon Nov 17 18:28:09 2008
New Revision: 4320
Modified:
vic/branches/cc/cc/test/buffer.h
Log:
added return head/tail pointer
(head_ and tail_ is declared as private)
Modified: vic/branches/cc/cc/test/buffer.h
==============================================================================
--- vic/branches/cc/cc/test/buffer.h (original)
+++ vic/branches/cc/cc/test/buffer.h Mon Nov 17 18:28:09 2008
@@ -55,6 +55,10 @@
// display
void display (std::ostream &out = std::cout);
+ // get head/tail pointer
+ inline Data* get_head_ptr() { return head_; }
+ inline Data* get_tail_ptr() { return tail_; }
+
private:
Data* head_;
Data* tail_;
@@ -72,12 +76,12 @@
~Data() {};
// value
- int get_val() { return val_; }
+ inline int get_val() { return val_; }
- // next
- Data* next() { return next_; }
+ // return next ptr
+ inline Data* next() { return next_; }
- // set to next
+ // set this to next ptr
void next (Data *ptr) { next_ = ptr; }
private:
More information about the Sumover-dev
mailing list