FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

bufferedAccumulator< Type > Class Template Reference

#include <molecularMeasurements/bufferedAccumulator.H>


Detailed Description

template<class Type>
class Foam::bufferedAccumulator< Type >

Source files

Definition at line 61 of file bufferedAccumulator.H.

Inheritance diagram for bufferedAccumulator< Type >:
Collaboration diagram for bufferedAccumulator< Type >:

List of all members.

Public Types

typedef pTraits< Type >::cmptType  cmptType
 Component type.

Public Member Functions

 bufferedAccumulator ()
 Construct null.
 bufferedAccumulator (const label nBuffers, const label bufferLength, const label bufferingInterval)
 Construct from components.
 bufferedAccumulator (const bufferedAccumulator< Type > &)
 Construct as copy.
 ~bufferedAccumulator ()
label  addToBuffers (const List< Type > &valuesToAdd)
Field< Type >  averaged () const
void  resetAveraging ()
label  averagesTaken () const
label  nBuffers () const
label  bufferLength () const
const List< label > &  bufferOffsets () const
void  setSizes (const label nBuffers, const label bufferLength, const label bufferingInterval)
void  operator= (const bufferedAccumulator< Type > &)

Static Public Attributes

static const char *const  typeName

Friends

Ostream &  operator (Ostream &, const bufferedAccumulator< Type > &)

Member Typedef Documentation

typedef pTraits<Type>::cmptType cmptType

Component type.

Reimplemented in correlationFunction< Type >.

Definition at line 84 of file bufferedAccumulator.H.


Constructor & Destructor Documentation

Construct null.

Definition at line 53 of file bufferedAccumulator.C.

bufferedAccumulator ( const label   nBuffers,
const label   bufferLength,
const label   bufferingInterval  
)

Construct from components.

Definition at line 63 of file bufferedAccumulator.C.

bufferedAccumulator ( const bufferedAccumulator< Type > &   bA  )

Construct as copy.

Definition at line 84 of file bufferedAccumulator.C.

Definition at line 97 of file bufferedAccumulator.C.


Member Function Documentation

Foam::label addToBuffers ( const List< Type > &   valuesToAdd  )

Definition at line 131 of file bufferedAccumulator.C.

References Foam::abort(), b, Foam::FatalError, and FatalErrorIn.

Foam::Field< Type > averaged (  ) const

Definition at line 174 of file bufferedAccumulator.C.

References Foam::endl(), and WarningIn.

void resetAveraging (  )

Definition at line 198 of file bufferedAccumulator.C.

label averagesTaken (  ) const [inline]

Definition at line 48 of file bufferedAccumulatorI.H.

label nBuffers (  ) const [inline]

Definition at line 55 of file bufferedAccumulatorI.H.

label bufferLength (  ) const [inline]

Definition at line 62 of file bufferedAccumulatorI.H.

const List< label > & bufferOffsets (  ) const [inline]

Definition at line 69 of file bufferedAccumulatorI.H.

void setSizes ( const label   nBuffers,
const label   bufferLength,
const label   bufferingInterval  
)

Definition at line 105 of file bufferedAccumulator.C.

References b, forAll, and List< T >::setSize().

void operator= ( const bufferedAccumulator< Type > &   rhs  )

Definition at line 210 of file bufferedAccumulator.C.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.


Friends And Related Function Documentation

Ostream& operator ( Ostream &   ,
const bufferedAccumulator< Type > &    
) [friend]

Member Data Documentation

const char *const typeName [static]

Reimplemented in correlationFunction< Type >.

Definition at line 89 of file bufferedAccumulator.H.


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