Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgWritePointArrayFloat< FLOAT > Class Template Reference

#include <SgPointArray.h>

List of all members.


Detailed Description

template<typename FLOAT>
class SgWritePointArrayFloat< FLOAT >

Write a float point array.

Enhanced version of SgWritePointArray for float or double types. Allows to specify some formatting options for floating point numbers.

Definition at line 121 of file SgPointArray.h.

Public Member Functions

 SgWritePointArrayFloat (const SgPointArray< FLOAT > &array, SgGrid boardSize, bool fixed, int precision)
std::ostream & Write (std::ostream &out) const

Private Attributes

bool m_fixed
int m_precision
SgGrid m_boardSize
const SgPointArray< FLOAT > & m_array

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &out, const SgWritePointArrayFloat< FLOAT > &write)


Constructor & Destructor Documentation

template<typename FLOAT>
SgWritePointArrayFloat< FLOAT >::SgWritePointArrayFloat ( const SgPointArray< FLOAT > &  array,
SgGrid  boardSize,
bool  fixed,
int  precision 
)

Definition at line 124 of file SgPointArray.h.


Member Function Documentation

template<typename FLOAT>
std::ostream & SgWritePointArrayFloat< FLOAT >::Write ( std::ostream &  out  )  const

Definition at line 146 of file SgPointArray.h.

References SgWritePointArrayFloat< FLOAT >::m_array, SgWritePointArrayFloat< FLOAT >::m_boardSize, SgWritePointArrayFloat< FLOAT >::m_fixed, SgWritePointArrayFloat< FLOAT >::m_precision, and SgPointUtil::Pt().

Referenced by operator<<().


Friends And Related Function Documentation

template<typename FLOAT>
std::ostream & operator<< ( std::ostream &  out,
const SgWritePointArrayFloat< FLOAT > &  write 
) [related]

Definition at line 167 of file SgPointArray.h.


Member Data Documentation

template<typename FLOAT>
const SgPointArray<FLOAT>& SgWritePointArrayFloat< FLOAT >::m_array [private]

Definition at line 142 of file SgPointArray.h.

Referenced by SgWritePointArrayFloat< FLOAT >::Write().

template<typename FLOAT>
SgGrid SgWritePointArrayFloat< FLOAT >::m_boardSize [private]

Definition at line 140 of file SgPointArray.h.

Referenced by SgWritePointArrayFloat< FLOAT >::Write().

template<typename FLOAT>
bool SgWritePointArrayFloat< FLOAT >::m_fixed [private]

Definition at line 136 of file SgPointArray.h.

Referenced by SgWritePointArrayFloat< FLOAT >::Write().

template<typename FLOAT>
int SgWritePointArrayFloat< FLOAT >::m_precision [private]

Definition at line 138 of file SgPointArray.h.

Referenced by SgWritePointArrayFloat< FLOAT >::Write().


The documentation for this class was generated from the following file:


17 Jun 2010 Doxygen 1.4.7