00001 #ifndef XDKWRL_MFVEC3F_H
00002 #define XDKWRL_MFVEC3F_H
00003
00004 #include <xdkwrl/fieldtypes/sfvec3f.h>
00005 #include <deque>
00006 #include <algorithm>
00007 #include <iterator>
00008
00009 namespace wrl
00010 {
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032 class MFVec3f : public std::deque<SFVec3f>
00033 {
00034 public:
00035 inline MFVec3f();
00036 template <class T>
00037 inline MFVec3f(T first,T last);
00038 static inline const char* typeName();
00039 static inline FieldTypeId typeId();
00040 friend std::ostream& operator<<(std::ostream& s,const MFVec3f& f);
00041 };
00042
00043
00044
00045 inline MFVec3f::MFVec3f()
00046 {
00047 }
00048 template <class T>
00049 inline MFVec3f::MFVec3f(T first,T last)
00050 : std::deque<SFVec3f>(first,last)
00051 {
00052 }
00053 inline const char*
00054 MFVec3f::typeName()
00055 {
00056 return "MFVec3f";
00057 }
00058 inline FieldTypeId
00059 MFVec3f::typeId()
00060 {
00061 return mfVec3f;
00062 }
00063 inline std::ostream& operator<<(std::ostream& s,const MFVec3f& f)
00064 {
00065 s<<'[';
00066 std::copy(f.begin(),f.end(),std::ostream_iterator<SFVec3f>(s," "));
00067 return s<<']';
00068 }
00069 }
00070
00071 #endif // XDKWRL_MFVEC3F_H