linbox
StandardBasisStream< Field, _Vector, Trait > Class Template Reference

Stream for \(e_1,\cdots,e_n\). More...

#include <stream.h>

+ Inheritance diagram for StandardBasisStream< Field, _Vector, Trait >:

Public Types

typedef _Vector Vector
 
typedef StandardBasisStream< Field, Vector, Trait > Self_t
 

Public Member Functions

 StandardBasisStream (Field &F, size_t n)
 Constructor.
 
Vectorget (Vector &v)
 Get next element.
 
Self_toperator>> (Vector &v)
 Extraction operator form.
 
size_t size () const
 Number of vectors to be created.
 
size_t pos () const
 Number of vectors created so far.
 
size_t dim () const
 Dimension of the space.
 
 operator bool () const
 Check whether we have reached the end.
 
void reset ()
 Reset the stream to start at the beginning.
 
void rewind ()
 Alias for reset.
 
Legacy interface

These functions provide compatiblity with older parts of the library.

Their use is deprecated.

Vectornext (Vector &v)
 
size_t j () const
 
size_t m () const
 
size_t n () const
 

Detailed Description

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
class LinBox::StandardBasisStream< Field, _Vector, Trait >

Stream for \(e_1,\cdots,e_n\).

Generates the sequence (e_1,...,e_n) over a given field

This class is generic with respect to the underlying vector representation.

Member Typedef Documentation

◆ Vector

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
typedef _Vector Vector

◆ Self_t

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
typedef StandardBasisStream<Field, Vector, Trait > Self_t

Constructor & Destructor Documentation

◆ StandardBasisStream()

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
StandardBasisStream ( Field & F,
size_t n )

Constructor.

Construct a new stream with the given field and vector size.

Parameters
FField over which to create vectors
nSize of vectors

Member Function Documentation

◆ get()

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
Vector & get ( Vector & v)
virtual

Get next element.

Parameters
vVector into which to generate vector
Returns
reference to new vector

Implements VectorStream< _Vector >.

◆ operator>>()

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
Self_t & operator>> ( Vector & v)
inline

Extraction operator form.

◆ size()

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
size_t size ( ) const
virtual

Number of vectors to be created.

Implements VectorStream< _Vector >.

◆ pos()

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
size_t pos ( ) const
virtual

Number of vectors created so far.

Implements VectorStream< _Vector >.

◆ dim()

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
size_t dim ( ) const
virtual

Dimension of the space.

Implements VectorStream< _Vector >.

◆ operator bool()

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
operator bool ( ) const
virtual

Check whether we have reached the end.

Implements VectorStream< _Vector >.

◆ reset()

template<class Field, class _Vector, class Trait = typename VectorTraits<_Vector>::VectorCategory>
void reset ( )
virtual

Reset the stream to start at the beginning.

Implements VectorStream< _Vector >.

◆ rewind()

template<class _Vector>
void rewind ( )
inlineinherited

Alias for reset.

◆ next()

template<class _Vector>
Vector & next ( Vector & v)
inlineinherited

◆ j()

template<class _Vector>
size_t j ( ) const
inlineinherited

◆ m()

template<class _Vector>
size_t m ( ) const
inlineinherited

◆ n()

template<class _Vector>
size_t n ( ) const
inlineinherited

The documentation for this class was generated from the following file: