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

abktempl.h File Reference

#include <iostream>
#include <utility>
#include <vector>

Include dependency graph for abktempl.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  Empty

Functions

std::ostream & operator<< (std::ostream &out, const Empty &)
std::istream & operator>> (std::istream &in, Empty &)
template<class T> T abs (const T &a)
template<class T> T square (const T &a)
template<class Sequence> void deleteAllPointersIn (Sequence &s)
template<class Iterator> Iterator next (Iterator i)
template<class T> T clone (const T &t)

Variables

const Empty empty = Empty()


Function Documentation

template<class T>
T abs const T &  a  )  [inline]
 

Definition at line 83 of file abktempl.h.

00083                          {
00084     return  (0 <= a) ? a : -a;
00085 }

template<class T>
T clone const T &  t  ) 
 

Definition at line 106 of file abktempl.h.

00107 {
00108       return T(t);
00109 }

template<class Sequence>
void deleteAllPointersIn Sequence &  s  ) 
 

Definition at line 93 of file abktempl.h.

00094 {
00095    for (typename Sequence::iterator it=s.begin();it!=s.end();it++)
00096    delete *it; 
00097 }

template<class Iterator>
Iterator next Iterator  i  ) 
 

Definition at line 100 of file abktempl.h.

00101 {
00102       return ++i;
00103 }

std::ostream& operator<< std::ostream &  out,
const Empty
[inline]
 

Definition at line 75 of file abktempl.h.

00076 { return out; }

std::istream& operator>> std::istream &  in,
Empty
[inline]
 

Definition at line 77 of file abktempl.h.

00078 { return in;  }

template<class T>
T square const T &  a  )  [inline]
 

Definition at line 88 of file abktempl.h.

00088                             {
00089     return  a*a;
00090 }


Variable Documentation

const Empty empty = Empty()
 

Definition at line 80 of file abktempl.h.


Generated on Mon Apr 25 01:10:06 2005 for Parquete by doxygen 1.3.2