osg::VecToStreamWriter< VecTypeT, ValueTypeT, SizeI > Struct Template Reference

#include <OSGMathIO.h>

List of all members.

Static Public Member Functions

static void apply (std::ostream &os, const VecTypeT &vec)

Detailed Description

template<class VecTypeT, class ValueTypeT = typename VecTypeT::ValueType, UInt32 SizeI = VecTypeT::_iSize>
struct osg::VecToStreamWriter< VecTypeT, ValueTypeT, SizeI >

Definition at line 57 of file OSGMathIO.h.


Member Function Documentation

template<class VecTypeT , class ValueTypeT , UInt32 SizeI>
void osg::VecToStreamWriter< VecTypeT, ValueTypeT, SizeI >::apply ( std::ostream &  os,
const VecTypeT &  vec 
) [inline, static]

Helper struct for writing a vector-like type to a stream.

Definition at line 46 of file OSGMathIO.inl.

00048 {
00049     for(UInt32 i = 0; i < SizeI; ++i)
00050     {
00051         if(i != 0)
00052             os << ", ";
00053     
00054         os << vec[i];
00055     }
00056 }


The documentation for this struct was generated from the following files:

Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1