Index   Main   Namespaces   Classes   Hierarchy   Annotated   Files   Compound   Global   Pages  
Public Member Functions | Private Attributes | Related Functions

SgWritePointArray< T > Class Template Reference

Write a point array. More...

#include <SgPointArray.h>

List of all members.

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.)



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

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 59 of file SgPointArray.h.


Constructor & Destructor Documentation

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

Definition at line 62 of file SgPointArray.h.


Member Function Documentation

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

Friends And Related Function Documentation

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

Definition at line 105 of file SgPointArray.h.


Member Data Documentation

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

Definition at line 73 of file SgPointArray.h.

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

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

Definition at line 71 of file SgPointArray.h.

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


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


Sun Mar 13 2011 Doxygen 1.7.1