DataTable.h File Reference

Provides DataTable class for access to tabular data. More...

#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#include <boost/tokenizer.hpp>
#include <boost/spirit/core.hpp>
#include <boost/spirit/utility.hpp>
#include "mcmc++/util.h"

Include dependency graph for DataTable.h:

Go to the source code of this file.

Classes

class  BadCol
 Exception thrown on bad column index. More...
class  BadRow
 Exception thrown on bad row index. More...
class  DataTable< Type >
 Provides access to homogeneous tabular data. More...

Defines

#define __DATATABLE_H
#define argCheck_   1

Enumerations

enum  DataTableResult

Functions

std::ostream & operator<< (std::ostream &out, enum DataTableResult result)


Detailed Description

Provides DataTable class for access to tabular data.

The DataTable class reads homogeneous tabular data, i.e., numerical data that is either all of the same type or that can be converted to the base type of the data table using standard conversions. Rows or columns or both can be labeled, but labels are not required.

Author:
Kent Holsinger
Date:
2004-06-26

Definition in file DataTable.h.


Define Documentation

#define argCheck_   1

argCheck_ controls whether row and column indexes are bounds checked before use

Defaults to 1 (true) unles NDEBUG is defined

Definition at line 85 of file DataTable.h.

Referenced by DataTable< Type >::ColumnLabel(), DataTable< Type >::ColumnVector(), DataTable< Type >::RowLabel(), DataTable< Type >::RowVector(), DataTable< Type >::SetValue(), and DataTable< Type >::Value().


Enumeration Type Documentation

enum DataTableResult

enum DataTableResult

codes used to determine whether read was successful and the type of error, if not

Definition at line 55 of file DataTable.h.


Function Documentation

std::ostream& operator<< ( std::ostream &  out,
enum DataTableResult  result 
)

Stream output for DataTable errors

Parameters:
out The stream for output
result The error identifier

Definition at line 35 of file DataTable.cpp.


Generated on Tue Mar 27 16:03:42 2007 for mcmc by  doxygen 1.5.1