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 #ifndef _CIvfIndex_h_
00026 #define _CIvfIndex_h_
00027
00028 #include <ivf/IvfIndexBase.h>
00029
00030 #include <ivf/ivfconfig.h>
00031
00032
00033
00034
00035 IvfSmartPointer(CIvfIndex);
00036
00043 class IVF_API CIvfIndex : public CIvfIndexBase {
00044 private:
00045 std::vector<long> m_indices;
00046 public:
00048 CIvfIndex();
00049
00051 virtual ~CIvfIndex();
00052
00053 IvfClassInfo("CIvfIndex",CIvfIndexBase);
00054
00056 long getIndex(long pos);
00057
00059 long getSize();
00060
00062 void clear();
00063
00070 void createLinear(long size);
00071
00078 void createLinear(long start, long size);
00079
00086 void createConstant(long value, long size);
00087
00089 void assignFrom(CIvfIndex* idx);
00090
00092 void assignTo(CIvfIndex* idx);
00093
00095 void addArray(long* i, long size);
00096
00097 void addLast(long idx);
00098
00099 void setIndex(long pos, long value);
00100
00101 };
00102
00103 #endif