Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

Sparse_Vector Class Template Reference

#include <sparse.h>

List of all members.


Detailed Description

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

Sparse Vector : vector< Pair<T> > and actualsize.


Public Types

typedef Pair< T, I > Element
typedef T Type_t
typedef Sparse_Vector< T, I > Self_t
typedef VectorCategories::SparseSequenceVectorTag VectorCategory

Public Methods

 Sparse_Vector ()
 Sparse_Vector (size_t n)
 Sparse_Vector (size_t n, size_t rn)
 ~Sparse_Vector ()
size_t actualsize () const
 Actual dimension of the vector, 0 for infinite or unknown.

size_t reactualsize (const size_t s)
template<class XX> size_t reactualsize (const XX s)

Friends

std::ostream & operator<< (std::ostream &o, const Sparse_Vector< T, I > v)


Member Typedef Documentation

typedef Pair<T, I> Element
 

typedef Sparse_Vector<T, I> Self_t
 

typedef T Type_t
 

typedef VectorCategories::SparseSequenceVectorTag VectorCategory
 


Constructor & Destructor Documentation

Sparse_Vector   [inline]
 

Sparse_Vector size_t    n [inline]
 

Sparse_Vector size_t    n,
size_t    rn
[inline]
 

~Sparse_Vector   [inline]
 


Member Function Documentation

size_t actualsize   const [inline]
 

Actual dimension of the vector, 0 for infinite or unknown.

size_t reactualsize const XX    s [inline]
 

size_t reactualsize const size_t    s [inline]
 


Friends And Related Function Documentation

std::ostream& operator<< std::ostream &    o,
const Sparse_Vector< T, I >    v
[friend]
 


Generated on Mon Jun 20 09:16:51 2005 for linbox by doxygen1.2.18