linbox
Public Member Functions
ConstantVectorStream< _Vector > Class Template Reference

Constant vector factory. More...

#include <stream.h>

+ Inheritance diagram for ConstantVectorStream< _Vector >:
+ Collaboration diagram for ConstantVectorStream< _Vector >:

Public Member Functions

 ConstantVectorStream (Vector &v, size_t m)
 Constructor. More...
 
Vector & get (Vector &v)
 Retrieve vector. More...
 
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.

Vector & next (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

Constructor & Destructor Documentation

◆ ConstantVectorStream()

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()

Vector& get ( Vector &  v)
inlinevirtual

Retrieve vector.

Parameters
vVector to use

Implements VectorStream< _Vector >.


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