Jpp  18.3.1
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
JLANG::JSampler< T > Struct Template Reference

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

#include <JSampler.hh>

Public Member Functions

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

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

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

Default constructor.

Definition at line 26 of file JSampler.hh.

27  {}

Member Function Documentation

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: