Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members

Table Class Reference

#include <table.h>

List of all members.

Public Types

enum  Align { none, left, right, center }

Public Member Functions

 Table (unsigned int columns, const char *title)
 ~Table ()
void align (unsigned int col, Align al)
Align align (int col) const
Tableoperator<< (const char *s)
Tableoperator<< (int i)
const char * title () const
const char * item (unsigned int i) const
const char * item (unsigned int row, unsigned int col) const
unsigned int columns () const
unsigned int rows () const
unsigned int width (unsigned int col) const
void print (std::ostream &o) const
void clean ()

Static Public Attributes

bool format = true

Private Attributes

char * t
unsigned int c
std::vector< Aligna
std::vector< char * > v


Member Enumeration Documentation

enum Table::Align
 

Enumeration values:
none 
left 
right 
center 

Definition at line 20 of file table.h.

Referenced by align().


Constructor & Destructor Documentation

Table::Table unsigned int  columns,
const char *  title
 

Definition at line 22 of file table.cc.

References a, c, left, strDup(), t, and title().

Table::~Table  ) 
 

Definition at line 30 of file table.cc.

References t, and v.


Member Function Documentation

Table::Align Table::align int  col  )  const
 

Definition at line 42 of file table.cc.

References a, and Align.

void Table::align unsigned int  col,
Align  al
 

Definition at line 37 of file table.cc.

References a.

Referenced by print(), cosyNetwork::printCommunicationWorkload(), cosyNetwork::printComputationWorkload(), cosyNetwork::printFifoStatus(), and cosyNetwork::printProcessStatus().

void Table::clean  ) 
 

Definition at line 47 of file table.cc.

References v.

Referenced by cosyRte::start().

unsigned int Table::columns  )  const [inline]
 

Definition at line 34 of file table.h.

References c.

Referenced by item(), and print().

const char * Table::item unsigned int  row,
unsigned int  col
const
 

Definition at line 76 of file table.cc.

References columns(), and v.

const char * Table::item unsigned int  i  )  const
 

Definition at line 68 of file table.cc.

References v.

Referenced by print().

Table & Table::operator<< int  i  ) 
 

Definition at line 60 of file table.cc.

References strDup(), and v.

Table & Table::operator<< const char *  s  ) 
 

Definition at line 54 of file table.cc.

References strDup(), and v.

void Table::print std::ostream &  o  )  const
 

Definition at line 158 of file table.cc.

References align(), columns(), format, item(), printAlign(), printN(), rows(), title(), and width().

Referenced by cosyNetwork::printFifoStatus(), and cosyNetwork::printProcessStatus().

unsigned int Table::rows  )  const
 

Definition at line 81 of file table.cc.

References c, and v.

Referenced by print().

const char* Table::title  )  const [inline]
 

Definition at line 30 of file table.h.

References t.

Referenced by print(), and Table().

unsigned int Table::width unsigned int  col  )  const
 

Definition at line 86 of file table.cc.

References c, and v.

Referenced by print().


Member Data Documentation

std::vector<Align> Table::a [private]
 

Definition at line 49 of file table.h.

Referenced by align(), and Table().

unsigned int Table::c [private]
 

Definition at line 48 of file table.h.

Referenced by columns(), rows(), Table(), and width().

bool Table::format = true [static]
 

Definition at line 20 of file table.cc.

Referenced by print().

char* Table::t [private]
 

Definition at line 47 of file table.h.

Referenced by Table(), title(), and ~Table().

std::vector<char*> Table::v [private]
 

Definition at line 50 of file table.h.

Referenced by clean(), item(), operator<<(), rows(), width(), and ~Table().


The documentation for this class was generated from the following files:
Generated on Wed Feb 15 14:52:41 2006 for yapi by doxygen 1.3.2