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

abkio.h File Reference

#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <string.h>
#include <vector>
#include "abkassert.h"

Include dependency graph for abkio.h:

Include dependency graph

This graph shows which files directly or indirectly include this file:

Included by dependency graph

Go to the source code of this file.

Compounds

class  ManipFuncObj1
class  ManipFuncObj2

Functions

istream & eatblank (istream &i)
istream & skiptoeol (istream &i)
template<class Arg> istream & operator>> (istream &is, const ManipFuncObj1< Arg > &im)
template<class Arg1, class Arg2> istream & operator>> (istream &is, const ManipFuncObj2< Arg1, Arg2 > &im)
ManipFuncObj1< int & > eathash (int &lineNo)
ManipFuncObj1< int > needeol (int lineNo=-1)
ManipFuncObj1< int > noeol (int lineNo=-1)
ManipFuncObj1< int > my_isnumber (int lineNo=-1)
ManipFuncObj1< int > isword (int lineNo=-1)
ManipFuncObj2< const char *,
int > 
needword (const char *word, int lineNo=-1)
ManipFuncObj2< const char *,
int > 
needcaseword (const char *word, int lineNo=-1)
template<class T> ostream & operator<< (ostream &out, const std::vector< T > &rhs)
template<class Iter> unsigned printRange (ostream &out, Iter first, Iter last)


Function Documentation

istream& eatblank istream &  i  ) 
 

Definition at line 65 of file abkio.cxx.

Referenced by MixedBlockInfoType::ParseBlocks(), HardBlockInfoType::ParseBlocks(), parquetfp::Nets::parseNets(), parquetfp::Nodes::parseNodes(), parquetfp::Nodes::parsePl(), and parquetfp::Nets::parseWts().

00066 {
00067   while (i.peek()==' ' || i.peek()=='\t') i.get();
00068   return i;
00069 }

ManipFuncObj1<int&> eathash int &  lineNo  ) 
 

Definition at line 202 of file abkio.cxx.

References impl_eathash().

Referenced by MixedBlockInfoType::ParseBlocks(), HardBlockInfoType::ParseBlocks(), parquetfp::Nets::parseNets(), parquetfp::Nodes::parseNodes(), parquetfp::Nodes::parsePl(), and parquetfp::Nets::parseWts().

00203 { return ManipFuncObj1<int&>(impl_eathash, lineNo); }

Here is the call graph for this function:

ManipFuncObj1<int> isword int  lineNo = -1  ) 
 

Definition at line 214 of file abkio.cxx.

References impl_isword().

00215 { return ManipFuncObj1<int>(impl_isword, lineNo); }

Here is the call graph for this function:

ManipFuncObj1<int> my_isnumber int  lineNo = -1  ) 
 

Definition at line 211 of file abkio.cxx.

References impl_isnumber().

00212 { return ManipFuncObj1<int>(impl_isnumber,lineNo); }            

Here is the call graph for this function:

ManipFuncObj2<const char *, int> needcaseword const char *  word,
int  lineNo = -1
 

Definition at line 199 of file abkio.cxx.

References impl_needcaseword().

00200 { return ManipFuncObj2<const char *, int>(impl_needcaseword,word,lineNo); }

Here is the call graph for this function:

ManipFuncObj1<int> needeol int  lineNo = -1  ) 
 

Definition at line 205 of file abkio.cxx.

References impl_needeol().

00206 { return ManipFuncObj1<int>(impl_needeol, lineNo); }

Here is the call graph for this function:

ManipFuncObj2<const char *, int> needword const char *  word,
int  lineNo = -1
 

Definition at line 196 of file abkio.cxx.

References impl_needword().

00197 { return ManipFuncObj2<const char *,int>(impl_needword,word, lineNo); }

Here is the call graph for this function:

ManipFuncObj1<int> noeol int  lineNo = -1  ) 
 

Definition at line 208 of file abkio.cxx.

References impl_noeol().

00209 { return ManipFuncObj1<int>(impl_noeol,lineNo); }

Here is the call graph for this function:

template<class T>
ostream& operator<< ostream &  out,
const std::vector< T > &  rhs
[inline]
 

Definition at line 128 of file abkio.h.

00129 {
00130         unsigned size=rhs.size();
00131         for (unsigned i=0; i!=size; ++i)
00132         {
00133                 if ( i % 10 == 0 )
00134                 {
00135                     if (i) out << endl;
00136                     out<<"     ";
00137                 }
00138                 out<<setw(6)<<rhs[i]<<" ";
00139         }
00140         out<<"\n";
00141         return out;
00142 }

template<class Arg1, class Arg2>
istream& operator>> istream &  is,
const ManipFuncObj2< Arg1, Arg2 > &  im
 

Definition at line 113 of file abkio.h.

00114 { return im(is); }

template<class Arg>
istream& operator>> istream &  is,
const ManipFuncObj1< Arg > &  im
 

Definition at line 97 of file abkio.h.

00098 { return im(is); }

template<class Iter>
unsigned printRange ostream &  out,
Iter  first,
Iter  last
[inline]
 

Definition at line 147 of file abkio.h.

00148 {
00149     unsigned count=0;
00150     for (;first!=last; first++, count++)
00151     {
00152         if (count % 10 == 0)
00153         {
00154             if (count)
00155                 out<<'\n';
00156             out<<"     ";
00157         }
00158         out<<setw(6)<<*first<<' ';
00159     }
00160     out<<'\n';
00161     return count;
00162 }

istream& skiptoeol istream &  i  ) 
 

Definition at line 71 of file abkio.cxx.

Referenced by HardBlockInfoType::ParseBlocks(), parquetfp::Nets::parseNets(), parquetfp::Nodes::parseNodes(), parquetfp::Nodes::parsePl(), and parquetfp::Nets::parseWts().

00072 {
00073   while (!i.eof() && i.peek()!='\n' && i.peek()!='\r') i.get();
00074 //if (i.peek() == '\n' || i.peek() == '\r') i.get();
00075   return i;
00076 }


Generated on Mon Apr 25 01:09:53 2005 for Parquete by doxygen 1.3.2