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
00030
00031 #if !defined( __DATAPOINTVECTOR_HPP )
00032 #define __DATAPOINTVECTOR_HPP
00033
00034 #include "DataPoint.hpp"
00035 #include "Defs.hpp"
00036 #include <sys/types.h>
00037
00038
00039 namespace libecs
00040 {
00041
00042
00043
00044
00045
00046
00047
00048
00049 DECLARE_TYPE( size_t, DataPointVectorIterator );
00050
00051 DECLARE_SHAREDPTR( DataPointVector );
00052
00053 class DataPointVector
00054 {
00055
00056 public:
00057
00058 DataPointVector( DataPointVectorIterator, int aPointSize );
00059
00060 ~DataPointVector();
00061
00062 DataPointRef asShort( DataPointVectorIterator aPosition );
00063
00064 DataPointCref asShort( DataPointVectorIterator aPosition ) const;
00065
00066 LongDataPointRef asLong( DataPointVectorIterator aPosition );
00067
00068 LongDataPointCref asLong( DataPointVectorIterator aPosition ) const;
00069
00070 DataPointVectorIterator getSize() const
00071 {
00072 return theSize;
00073 }
00074
00075 size_t getElementSize() const;
00076
00077 DataPointVectorIterator begin() const
00078 {
00079 return 0;
00080 }
00081
00082 DataPointVectorIterator end() const
00083 {
00084 return getSize();
00085 }
00086
00087 const void* getRawArray() const;
00088
00089 private:
00090
00091 DataPointVectorIterator theSize;
00092
00093 Integer thePointSize;
00094
00095 DataPoint* theRawArray;
00096
00097 LongDataPoint* theRawArrayLong;
00098
00099 };
00100
00101
00102
00103 }
00104
00105
00106 #endif