Jpp 19.3.0-rc.2
the software that should make you happy
Loading...
Searching...
No Matches
JLANG::JSampler< T > Struct Template Reference

Template class for sampling from a JRewindableObjectIterator. More...

#include <JSampler.hh>

Public Member Functions

 JSampler ()
 Default constructor.
 
skip_type operator() (const T &object) const
 Acceptance test operator.
 

Detailed Description

template<class T>
struct JLANG::JSampler< T >

Template class for sampling from a JRewindableObjectIterator.

This class should be specialised for other samplings than complete.

Definition at line 22 of file JSampler.hh.

Constructor & Destructor Documentation

◆ JSampler()

template<class T >
JLANG::JSampler< T >::JSampler ( )
inline

Default constructor.

Definition at line 26 of file JSampler.hh.

27 {}

Member Function Documentation

◆ operator()()

template<class T >
skip_type JLANG::JSampler< T >::operator() ( const T & object) const
inline

Acceptance test operator.

Return value 0 means accept and >0 number of objects to skip.

Parameters
objectobject
Returns
0

Definition at line 37 of file JSampler.hh.

38 {
39 return 0;
40 }

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