OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

bufferedAccumulator< Type > Class Template Reference

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 > &)

Detailed Description

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

Source files

Definition at line 56 of file bufferedAccumulator.H.


Member Typedef Documentation

Component type.

Reimplemented in correlationFunction< Type >.

Definition at line 79 of file bufferedAccumulator.H.


Constructor & Destructor Documentation

bufferedAccumulator (  )  [inline]

Construct null.

Definition at line 45 of file bufferedAccumulator.C.

bufferedAccumulator ( const label  nBuffers,
const label  bufferLength,
const label  bufferingInterval 
) [inline]

Construct from components.

Definition at line 55 of file bufferedAccumulator.C.

bufferedAccumulator ( const bufferedAccumulator< Type > &  bA  )  [inline]

Construct as copy.

Definition at line 76 of file bufferedAccumulator.C.

~bufferedAccumulator (  )  [inline]

Definition at line 89 of file bufferedAccumulator.C.


Member Function Documentation

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

Definition at line 123 of file bufferedAccumulator.C.

Foam::Field< Type > averaged (  )  const [inline]

Definition at line 166 of file bufferedAccumulator.C.

void resetAveraging (  )  [inline]

Definition at line 190 of file bufferedAccumulator.C.

label averagesTaken (  )  const [inline]

Definition at line 40 of file bufferedAccumulatorI.H.

References bufferedAccumulator< Type >::nBuffers().

Here is the call graph for this function:

label nBuffers (  )  const [inline]

Definition at line 47 of file bufferedAccumulatorI.H.

Referenced by bufferedAccumulator< Type >::averagesTaken().

Here is the caller graph for this function:

label bufferLength (  )  const [inline]

Definition at line 54 of file bufferedAccumulatorI.H.

References List< T >::size().

Here is the call graph for this function:

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

Definition at line 61 of file bufferedAccumulatorI.H.

void setSizes ( const label  nBuffers,
const label  bufferLength,
const label  bufferingInterval 
) [inline]

Definition at line 97 of file bufferedAccumulator.C.

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

Definition at line 202 of file bufferedAccumulator.C.


Friends And Related Function Documentation

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


Member Data Documentation

const char *const typeName [inline, static]

Reimplemented in correlationFunction< Type >.

Definition at line 84 of file bufferedAccumulator.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd