COOPY » Guide  version 0.6.5
/home/paulfitz/cvs/coopy_scm/coopy/src/libcoopy_core/include/coopy/RowRef.h
Go to the documentation of this file.
00001 #ifndef COOPY_ROWREF_INC
00002 #define COOPY_ROWREF_INC
00003 
00004 namespace coopy {
00005   namespace store {
00006     class RowRef;
00007   }
00008 }
00009 
00010 class coopy::store::RowRef {
00011 private:
00012   int index;
00013 public:
00014 
00015   RowRef(int index = -1) {
00016     this->index = index;
00017   }
00018 
00019   bool isValid() const {
00020     return index>=0;
00021   }
00022 
00023   int getIndex() const {
00024     return index;
00025   }
00026 
00027   RowRef delta(int dh) const {
00028     if (index==-1) return RowRef(index);
00029     return RowRef(index+dh);
00030   }
00031 };
00032 
00033 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines