00001 
00002 
00003 
00004 
00005 
00006 
00007 
00008 
00009 
00010 
00011 
00012 
00013 
00014 
00015 
00016 
00017 
00018 
00019 
00020 
00021 
00022 
00023 
00024 
00025 
00026 
00027 
00028 
00029 #ifndef __SEAL_RANDACCESS_H__
00030 #define __SEAL_RANDACCESS_H__
00031 
00032 #include "exception.h"
00033 
00034 namespace seal
00035 {
00036 
00039 template <typename T>
00040 class RandomAccess
00041 {
00042 public:
00046     virtual const T& operator[](int index) const throw (OutOfRangeException<int>) = 0;
00047 
00051     virtual T& operator[](int index) throw (OutOfRangeException<int>) = 0;
00052 
00053 }; 
00054 
00055 } 
00056 
00057 #endif // __SEAL_RANDACCESS_H__
00058