Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  

SgWritePointArray< T > Class Template Reference

#include <SgPointArray.h>

List of all members.


Detailed Description

template<typename T>
class SgWritePointArray< T >

Write a point array.

Computes the maximum string representation length of each element in the array to write out aligned columns with minimum space in between.

Definition at line 62 of file SgPointArray.h.

Public Member Functions

 SgWritePointArray (const SgPointArray< T > &array, SgGrid boardSize)
std::ostream & Write (std::ostream &out) const

Private Attributes

SgGrid m_boardSize
const SgPointArray< T > & m_array

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &out, const SgWritePointArray< T > &write)


Constructor & Destructor Documentation

template<typename T>
SgWritePointArray< T >::SgWritePointArray ( const SgPointArray< T > &  array,
SgGrid  boardSize 
)

Definition at line 65 of file SgPointArray.h.


Member Function Documentation

template<typename T>
std::ostream & SgWritePointArray< T >::Write ( std::ostream &  out  )  const

Definition at line 80 of file SgPointArray.h.

References SgWritePointArray< T >::m_array, SgWritePointArray< T >::m_boardSize, and SgPointUtil::Pt().

Referenced by operator<<().


Friends And Related Function Documentation

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

Definition at line 108 of file SgPointArray.h.


Member Data Documentation

template<typename T>
const SgPointArray<T>& SgWritePointArray< T >::m_array [private]

Definition at line 76 of file SgPointArray.h.

Referenced by SgWritePointArray< T >::Write().

template<typename T>
SgGrid SgWritePointArray< T >::m_boardSize [private]

Definition at line 74 of file SgPointArray.h.

Referenced by SgWritePointArray< T >::Write().


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


17 Jun 2010 Doxygen 1.4.7