linbox
ConstantVectorStream< _Vector > Class Template Reference

Constant vector factory. More...

#include <stream.h>

+ Inheritance diagram for ConstantVectorStream< _Vector >:

Public Types

typedef _Vector Vector
 
typedef ConstantVectorStream< VectorSelf_t
 

Public Member Functions

 ConstantVectorStream (Vector &v, size_t m)
 Constructor.
 
Vectorget (Vector &v)
 Retrieve vector.
 
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 factory 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 _Vector>
class LinBox::ConstantVectorStream< _Vector >

Constant vector factory.

Returns the same vector repeatedly

Member Typedef Documentation

◆ Vector

template<class _Vector>
typedef _Vector Vector

◆ Self_t

template<class _Vector>
typedef ConstantVectorStream<Vector> Self_t

Constructor & Destructor Documentation

◆ ConstantVectorStream()

template<class _Vector>
ConstantVectorStream ( Vector & v,
size_t m )
inline

Constructor.

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

Parameters
vVector to return on next
mNumber of vectors to return (0 for unlimited)

Member Function Documentation

◆ get()

template<class _Vector>
Vector & get ( Vector & v)
inlinevirtual

Retrieve vector.

Parameters
vVector to use

Implements VectorStream< _Vector >.

◆ operator>>()

template<class _Vector>
Self_t & operator>> ( Vector & v)
inline

Extraction operator form.

◆ size()

template<class _Vector>
size_t size ( ) const
inlinevirtual

Number of vectors to be created.

Implements VectorStream< _Vector >.

◆ pos()

template<class _Vector>
size_t pos ( ) const
inlinevirtual

Number of vectors created so far.

Implements VectorStream< _Vector >.

◆ dim()

template<class _Vector>
size_t dim ( ) const
inlinevirtual

Dimension of the space.

Implements VectorStream< _Vector >.

◆ operator bool()

template<class _Vector>
operator bool ( ) const
inlinevirtual

Check whether we have reached the end.

Implements VectorStream< _Vector >.

◆ reset()

template<class _Vector>
void reset ( )
inlinevirtual

Reset the factory 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: