Main Page | Modules | Namespace List | Class Hierarchy | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages

Pair Class Template Reference

#include <pair.h>


Detailed Description

template<class T, class I = unsigned long>
class Pair< T, I >

Pair of I and T : struct { column index, value }.


Public Types

typedef Pair< T, I > Self_t
typedef T Type_t

Public Member Functions

 Pair ()
 Pair (const I jj, const T &val)
 Pair (const Self_t &p)
getvalue () const
getindex () const
j () const
affect (const T &val)
change_value (const T &val)
change_j (const I jj)
change_index (const I jj)
Self_t assign (const T &val)
Self_t assign (const I jj, const T &val)
decr ()
operator-- ()
operator-- (int)
incr ()
operator++ ()
operator++ (int)

Friends

std::istream & operator>> (std::istream &is, Pair< T, I > &a)
std::ostream & operator<< (std::ostream &o, const Pair< T, I > a)


Member Typedef Documentation

typedef Pair<T, I> Self_t
 

typedef T Type_t
 


Constructor & Destructor Documentation

Pair  )  [inline]
 

Pair const I  jj,
const T &  val
[inline]
 

Pair const Self_t p  )  [inline]
 


Member Function Documentation

T getvalue  )  const [inline]
 

I getindex  )  const [inline]
 

I j  )  const [inline]
 

T affect const T &  val  )  [inline]
 

T change_value const T &  val  )  [inline]
 

I change_j const I  jj  )  [inline]
 

I change_index const I  jj  )  [inline]
 

Self_t assign const T &  val  )  [inline]
 

Self_t assign const I  jj,
const T &  val
[inline]
 

I decr  )  [inline]
 

I operator--  )  [inline]
 

I operator-- int   )  [inline]
 

I incr  )  [inline]
 

I operator++  )  [inline]
 

I operator++ int   )  [inline]
 


Friends And Related Function Documentation

std::istream& operator>> std::istream &  is,
Pair< T, I > &  a
[friend]
 

std::ostream& operator<< std::ostream &  o,
const Pair< T, I >  a
[friend]
 


Generated on Fri Jul 8 10:29:43 2005 for linbox by doxygen 1.3.7