Jpp 20.0.0-27-g39925593c-D
the software that should make you happy
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes | List of all members
JSUPPORT::JParallelFileScanner< T, JFileScanner_t > Class Template Reference

General purpose class for parallel reading of objects from a single file or multiple files. More...

#include <JParallelFileScanner.hh>

Inheritance diagram for JSUPPORT::JParallelFileScanner< T, JFileScanner_t >:
JSUPPORT::JTriggeredFileScanner< JTypelist_t, JFileScanner_t >

Public Types

typedef JFileScanner_t< JNullType >::input_type input_type
 
typedef JMultiPointer< T > multi_pointer_type
 

Public Member Functions

 JParallelFileScanner ()
 Default constructor.
 
 JParallelFileScanner (const input_type &input)
 Constructor.
 
 JParallelFileScanner (const input_type &input, const JLimit &limit)
 Constructor.
 
virtual const multi_pointer_typenext () override
 Get next element.
 

Private Attributes

multi_pointer_type ps
 

Detailed Description

template<class T, template< class > class JFileScanner_t = JSingleFileScanner>
class JSUPPORT::JParallelFileScanner< T, JFileScanner_t >

General purpose class for parallel reading of objects from a single file or multiple files.

Definition at line 33 of file JParallelFileScanner.hh.

Member Typedef Documentation

◆ input_type

template<class T , template< class > class JFileScanner_t = JSingleFileScanner>
typedef JFileScanner_t<JNullType>::input_type JSUPPORT::JParallelFileScanner< T, JFileScanner_t >::input_type

Definition at line 38 of file JParallelFileScanner.hh.

◆ multi_pointer_type

template<class T , template< class > class JFileScanner_t = JSingleFileScanner>
typedef JMultiPointer<T> JSUPPORT::JParallelFileScanner< T, JFileScanner_t >::multi_pointer_type

Definition at line 39 of file JParallelFileScanner.hh.

Constructor & Destructor Documentation

◆ JParallelFileScanner() [1/3]

template<class T , template< class > class JFileScanner_t = JSingleFileScanner>
JSUPPORT::JParallelFileScanner< T, JFileScanner_t >::JParallelFileScanner ( )
inline

Default constructor.

Definition at line 45 of file JParallelFileScanner.hh.

46 {}

◆ JParallelFileScanner() [2/3]

template<class T , template< class > class JFileScanner_t = JSingleFileScanner>
JSUPPORT::JParallelFileScanner< T, JFileScanner_t >::JParallelFileScanner ( const input_type & input)
inline

Constructor.

Parameters
inputinput

Definition at line 54 of file JParallelFileScanner.hh.

55 {
56 this->configure(input, JLimit());
57 }
void configure(const T &value, const JAbstractCollection< JAbscissa_t > &bounds, JBool< false > option)
Configuration of value.
Auxiliary class for defining the range of iterations of objects.
Definition JLimit.hh:45

◆ JParallelFileScanner() [3/3]

template<class T , template< class > class JFileScanner_t = JSingleFileScanner>
JSUPPORT::JParallelFileScanner< T, JFileScanner_t >::JParallelFileScanner ( const input_type & input,
const JLimit & limit )
inline

Constructor.

Parameters
inputinput
limitlimit

Definition at line 66 of file JParallelFileScanner.hh.

67 {
68 this->configure(input, limit);
69 }
Template definition of a multi-dimensional oscillation probability interpolation table.

Member Function Documentation

◆ next()

template<class T , template< class > class JFileScanner_t = JSingleFileScanner>
virtual const multi_pointer_type & JSUPPORT::JParallelFileScanner< T, JFileScanner_t >::next ( )
inlineoverridevirtual

Get next element.

Returns
multi-pointer to element

Reimplemented in JSUPPORT::JParallelFileScanner< JTypeList< JHead_t, JTail_t >, JFileScanner_t >, and JSUPPORT::JTriggeredFileScanner< JTypelist_t, JFileScanner_t >.

Definition at line 77 of file JParallelFileScanner.hh.

78 {
79 ps.set(JFileScanner_t<T>::next());
80
81 return ps;
82 }
virtual void set(JClass_t *p) override
Set pointer.
Definition JPointer.hh:75

Member Data Documentation

◆ ps

template<class T , template< class > class JFileScanner_t = JSingleFileScanner>
multi_pointer_type JSUPPORT::JParallelFileScanner< T, JFileScanner_t >::ps
private

Definition at line 85 of file JParallelFileScanner.hh.


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