Static Public Member Functions | Static Private Member Functions
vtkTools Class Reference

Various functions for collecting and writing binary data. More...

Static Public Member Functions

static void write (std::ostream &, const bool, List< floatScalar > &)
 
static void write (std::ostream &, const bool, DynamicList< floatScalar > &)
 
static void write (std::ostream &, const bool, labelList &)
 
static void write (std::ostream &, const bool, DynamicList< label > &)
 
static void writeHeader (std::ostream &, const bool isBinary, const std::string &title)
 
static void writeCellDataHeader (std::ostream &, const label nCells, const label nFields)
 
static void writePointDataHeader (std::ostream &, const label nPoints, const label nFields)
 
static void insert (const scalar, DynamicList< floatScalar > &)
 
static void insert (const point &, DynamicList< floatScalar > &)
 
static void insert (const sphericalTensor &, DynamicList< floatScalar > &)
 
static void insert (const symmTensor &, DynamicList< floatScalar > &)
 
static void insert (const tensor &, DynamicList< floatScalar > &)
 
static void insert (const labelList &, DynamicList< label > &)
 Append elements to DynamicList. More...
 
template<class Type >
static void insert (const List< Type > &, DynamicList< floatScalar > &)
 

Static Private Member Functions

static void swapWord (label &word32)
 
static void swapWords (const label nWords, label *words32)
 

Detailed Description

Various functions for collecting and writing binary data.

Source files

Definition at line 52 of file vtkTools.H.

Member Function Documentation

◆ swapWord()

void swapWord ( label word32)
staticprivate

Definition at line 55 of file vtkTools.C.

◆ swapWords()

void swapWords ( const label  nWords,
label words32 
)
staticprivate

Definition at line 69 of file vtkTools.C.

◆ write() [1/4]

void write ( std::ostream &  os,
const bool  binary,
List< floatScalar > &  fField 
)
static

Definition at line 79 of file vtkTools.C.

References Foam::endl(), forAll, and List::size().

Here is the call graph for this function:

◆ write() [2/4]

void write ( std::ostream &  os,
const bool  binary,
DynamicList< floatScalar > &  fField 
)
static

Definition at line 119 of file vtkTools.C.

References fld(), DynamicList::shrink(), and write().

Here is the call graph for this function:

◆ write() [3/4]

void write ( std::ostream &  os,
const bool  binary,
labelList elems 
)
static

Definition at line 132 of file vtkTools.C.

References Foam::endl(), forAll, and List::size().

Here is the call graph for this function:

◆ write() [4/4]

void write ( std::ostream &  os,
const bool  binary,
DynamicList< label > &  elems 
)
static

Definition at line 172 of file vtkTools.C.

References fld(), DynamicList::shrink(), and write().

Here is the call graph for this function:

◆ writeHeader()

void writeHeader ( std::ostream &  os,
const bool  isBinary,
const std::string &  title 
)
static

Definition at line 185 of file vtkTools.C.

References Foam::endl().

Here is the call graph for this function:

◆ writeCellDataHeader()

void writeCellDataHeader ( std::ostream &  os,
const label  nCells,
const label  nFields 
)
static

Definition at line 206 of file vtkTools.C.

References Foam::endl().

Here is the call graph for this function:

◆ writePointDataHeader()

void writePointDataHeader ( std::ostream &  os,
const label  nPoints,
const label  nFields 
)
static

Definition at line 218 of file vtkTools.C.

References Foam::endl(), and nPoints.

Here is the call graph for this function:

◆ insert() [1/7]

void insert ( const scalar  src,
DynamicList< floatScalar > &  dest 
)
static

Definition at line 229 of file vtkTools.C.

References DynamicList::append().

Here is the call graph for this function:

◆ insert() [2/7]

void insert ( const point src,
DynamicList< floatScalar > &  dest 
)
static

Definition at line 235 of file vtkTools.C.

References DynamicList::append(), and VectorSpace< Vector< scalar >, scalar, 3 >::nComponents.

Here is the call graph for this function:

◆ insert() [3/7]

void insert ( const sphericalTensor src,
DynamicList< floatScalar > &  dest 
)
static

Definition at line 245 of file vtkTools.C.

References DynamicList::append(), and VectorSpace< SphericalTensor< Cmpt >, Cmpt, 1 >::nComponents.

Here is the call graph for this function:

◆ insert() [4/7]

void insert ( const symmTensor src,
DynamicList< floatScalar > &  dest 
)
static

◆ insert() [5/7]

void insert ( const tensor src,
DynamicList< floatScalar > &  dest 
)
static

Definition at line 272 of file vtkTools.C.

References DynamicList::append().

Here is the call graph for this function:

◆ insert() [6/7]

void insert ( const labelList src,
DynamicList< label > &  dest 
)
static

Append elements to DynamicList.

Definition at line 281 of file vtkTools.C.

References DynamicList::append().

Here is the call graph for this function:

◆ insert() [7/7]

void insert ( const List< Type > &  source,
DynamicList< floatScalar > &  dest 
)
static

Definition at line 32 of file vtkToolsTemplates.C.

References forAll, and insert().

Here is the call graph for this function:

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