Write a point array. More...
#include <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.) | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &out, const SgWritePointArray< T > &write) |
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.
SgWritePointArray< T >::SgWritePointArray | ( | const SgPointArray< T > & | array, | |
SgGrid | boardSize | |||
) |
Definition at line 62 of file SgPointArray.h.
std::ostream & SgWritePointArray< T >::Write | ( | std::ostream & | out | ) | const |
Definition at line 77 of file SgPointArray.h.
References SgWritePointArray< T >::m_array, SgWritePointArray< T >::m_boardSize, and SgPointUtil::Pt().
Referenced by operator<<().
std::ostream & operator<< | ( | std::ostream & | out, | |
const SgWritePointArray< T > & | write | |||
) | [related] |
Definition at line 105 of file SgPointArray.h.
const SgPointArray<T>& SgWritePointArray< T >::m_array [private] |
Definition at line 73 of file SgPointArray.h.
Referenced by SgWritePointArray< T >::Write().
SgGrid SgWritePointArray< T >::m_boardSize [private] |
Definition at line 71 of file SgPointArray.h.
Referenced by SgWritePointArray< T >::Write().