Jpp
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 >:

Public Types

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

Public Member Functions

 JParallelFileScanner ()
 Default constructor. More...
 
virtual const multi_pointer_typenext ()
 Constructor. More...
 

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 31 of file JParallelFileScanner.hh.

Member Typedef Documentation

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 36 of file JParallelFileScanner.hh.

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

Definition at line 37 of file JParallelFileScanner.hh.

Constructor & Destructor Documentation

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

Default constructor.

Definition at line 43 of file JParallelFileScanner.hh.

44  {}

Member Function Documentation

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

Constructor.

Parameters
inputinput
limitlimit Get next element.
Returns
multi-pointer to element

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

Definition at line 64 of file JParallelFileScanner.hh.

65  {
66  ps.set(JFileScanner_t<T>::next());
67 
68  return ps;
69  }
virtual void set(JClass_t *p)
Set pointer.
Definition: JPointer.hh:75

Member Data Documentation

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

Definition at line 72 of file JParallelFileScanner.hh.


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