Psi4
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing > Class Template Reference

Base case. More...

#include <TableSpecs.h>

Public Member Functions

void SetTitles (const std::vector< std::string > &Titles)
 Sets the titles. More...
 
void SetAlignments (const std::vector< Align > &Alignments)
 Sets the alignment of the columns. More...
 
void SetWidths (const std::vector< int > &Widths)
 Sets the width of each column. More...
 
virtual std::string GetData (int row) const
 Returns a NULL string. More...
 
virtual int NCols () const
 Returns the number of columns. More...
 
void Init (void *Data1=NULL, void *Data2=NULL, void *Data3=NULL, void *Data4=NULL, void *Data5=NULL, void *Data6=NULL) const
 This fxn should never be called, but is needed so that it compiles. More...
 
 TableSpecs (const int NRows, const char TitleSep='-', const char ColSep=' ', const char RowSep='\0', int Width=80)
 
virtual ~TableSpecs ()
 Get rid of warning about non-virtual destructor... More...
 

Protected Member Functions

virtual bool IsBase () const
 Returns true because this is the base. More...
 
virtual int NRows () const
 
virtual std::vector< std::string > Title () const
 
virtual std::vector< AlignAlignments () const
 
virtual char TitleSep () const
 
virtual char ColSep () const
 
virtual char RowSep () const
 
virtual int Width () const
 
virtual std::vector< int > ReqWidth () const
 

Protected Attributes

int NRows_
 The number of rows. More...
 
std::vector< std::string > Title_
 This is the title of the column, just stored in general class. More...
 
std::vector< AlignAlignments_
 This is the alignment of each column. More...
 
char TitleSep_
 This is the Title separator character, defaults to '-'. More...
 
char ColSep_
 This is the column separator character, defaults to " ". More...
 
char RowSep_
 This is the separator between rows, defaults to null string. More...
 
int Width_
 This is the width (in columns) of the table, defaults to 80. More...
 
std::vector< int > ReqWidth_
 This is the user requested widths, value of 0 means calculate it. More...
 

Private Attributes

std::string TokenSep_
 

Detailed Description

template<>
class psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >

Base case.

Constructor & Destructor Documentation

psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::TableSpecs ( const int  NRows,
const char  TitleSep = '-',
const char  ColSep = ' ',
const char  RowSep = '\0',
int  Width = 80 
)
inline
virtual psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::~TableSpecs ( )
inlinevirtual

Get rid of warning about non-virtual destructor...

Member Function Documentation

virtual std::vector<Align> psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::Alignments ( ) const
inlineprotectedvirtual
virtual char psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::ColSep ( ) const
inlineprotectedvirtual
virtual std::string psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::GetData ( int  row) const
inlinevirtual

Returns a NULL string.

void psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::Init ( void *  Data1 = NULL,
void *  Data2 = NULL,
void *  Data3 = NULL,
void *  Data4 = NULL,
void *  Data5 = NULL,
void *  Data6 = NULL 
) const
inline

This fxn should never be called, but is needed so that it compiles.

virtual bool psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::IsBase ( ) const
inlineprotectedvirtual

Returns true because this is the base.

virtual int psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::NCols ( ) const
inlinevirtual

Returns the number of columns.

virtual int psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::NRows ( ) const
inlineprotectedvirtual
virtual std::vector<int> psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::ReqWidth ( ) const
inlineprotectedvirtual
virtual char psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::RowSep ( ) const
inlineprotectedvirtual
void psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::SetAlignments ( const std::vector< Align > &  Alignments)
inline

Sets the alignment of the columns.

void psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::SetTitles ( const std::vector< std::string > &  Titles)
inline

Sets the titles.

void psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::SetWidths ( const std::vector< int > &  Widths)
inline

Sets the width of each column.

virtual std::vector<std::string> psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::Title ( ) const
inlineprotectedvirtual
virtual char psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::TitleSep ( ) const
inlineprotectedvirtual
virtual int psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::Width ( ) const
inlineprotectedvirtual

Member Data Documentation

std::vector<Align> psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::Alignments_
protected

This is the alignment of each column.

char psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::ColSep_
protected

This is the column separator character, defaults to " ".

int psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::NRows_
protected

The number of rows.

std::vector<int> psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::ReqWidth_
protected

This is the user requested widths, value of 0 means calculate it.

char psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::RowSep_
protected

This is the separator between rows, defaults to null string.

std::vector<std::string> psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::Title_
protected

This is the title of the column, just stored in general class.

char psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::TitleSep_
protected

This is the Title separator character, defaults to '-'.

std::string psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::TokenSep_
private
int psi::TableSpecs< Nothing, Nothing, Nothing, Nothing, Nothing, Nothing >::Width_
protected

This is the width (in columns) of the table, defaults to 80.


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