fields1.hh
上传用户:clovervx
上传日期:2010-03-30
资源大小:787k
文件大小:1k
- #ifndef __fields1_hh__
- #define __fields1_hh__
- #include "resiter1.hh"
- class ResUse;
- //: A vector like container with the raw mysql field info.
- class Fields : public const_subscript_container<Fields, Field>
- {
- private:
- mutable ResUse *res;
- public:
- Fields() {}
- Fields(ResUse *r) : res(r) {}
- size_type size() const; //: the number of fields.
- //: Returns the field with an offset of i;
- const Field& operator [] (size_type i) const;
- const Field& operator [] (int i) const {return operator [](size_type(i));}
- };
- //--------------------------------------------------------------------
- #endif