MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
scratch.h File Reference

Go to the source code of this file.

Classes

struct  maia::maia_signed
 
struct  maia::maia_unsigned
 
struct  maia::is_unsigned< T >
 
struct  maia::is_unsigned< MUint >
 
struct  maia::is_unsigned< MUlong >
 
class  Scratch
 This class holds the complete scratch space. More...
 
class  ScratchSpaceBase
 This class is a base class for all ScratchSpaces. More...
 
class  ScratchSpace< T >
 This class is a ScratchSpace. More...
 
struct  ScratchSpace< T >::p_
 

Namespaces

namespace  maia
 Namespace for auxiliary functions/classes.
 

Typedefs

using MStringScratchSpace = ScratchSpace< MString >
 
using MCharScratchSpace = ScratchSpace< MChar >
 
using MIntScratchSpace = ScratchSpace< MInt >
 
using MLongScratchSpace = ScratchSpace< MLong >
 
using MFloatScratchSpace = ScratchSpace< MFloat >
 
using MBoolScratchSpace = ScratchSpace< MBool >
 
using MUshortScratchSpace = ScratchSpace< MUshort >
 
using MUcharScratchSpace = ScratchSpace< MUchar >
 
using MIntPointerScratchSpace = ScratchSpace< MInt * >
 
using MLongPointerScratchSpace = ScratchSpace< MLong * >
 
using MFloatPointerScratchSpace = ScratchSpace< MFloat * >
 
using MBoolPointerScratchSpace = ScratchSpace< MBool * >
 
using MFloatPointerPointerScratchSpace = ScratchSpace< MFloat ** >
 
using MPI_GroupScratchSpace = ScratchSpace< MPI_Group >
 
using ScratchList = std::list< ScratchSpaceBase * >
 

Functions

template<class T >
std::ostream & operator<< (std::ostream &os, const ScratchSpace< T > &s)
 Print contents of scratch space object. More...
 

Typedef Documentation

◆ MBoolPointerScratchSpace

Definition at line 74 of file scratch.h.

◆ MBoolScratchSpace

Definition at line 66 of file scratch.h.

◆ MCharScratchSpace

Definition at line 61 of file scratch.h.

◆ MFloatPointerPointerScratchSpace

Definition at line 76 of file scratch.h.

◆ MFloatPointerScratchSpace

Definition at line 73 of file scratch.h.

◆ MFloatScratchSpace

Definition at line 65 of file scratch.h.

◆ MIntPointerScratchSpace

Definition at line 70 of file scratch.h.

◆ MIntScratchSpace

Definition at line 62 of file scratch.h.

◆ MLongPointerScratchSpace

Definition at line 72 of file scratch.h.

◆ MLongScratchSpace

Definition at line 64 of file scratch.h.

◆ MPI_GroupScratchSpace

using MPI_GroupScratchSpace = ScratchSpace<MPI_Group>

Definition at line 78 of file scratch.h.

◆ MStringScratchSpace

Definition at line 60 of file scratch.h.

◆ MUcharScratchSpace

Definition at line 68 of file scratch.h.

◆ MUshortScratchSpace

Definition at line 67 of file scratch.h.

◆ ScratchList

using ScratchList = std::list<ScratchSpaceBase*>

Definition at line 80 of file scratch.h.

Function Documentation

◆ operator<<()

template<class T >
std::ostream & operator<< ( std::ostream &  os,
const ScratchSpace< T > &  s 
)
Author
Michael Schlottke (mic) mic@a.nosp@m.ia.r.nosp@m.wth-a.nosp@m.ache.nosp@m.n.de
Date
2015-03-13
Template Parameters
TElement type.
Parameters
[in]osStream object to write to.
[in]sScratch space object.
Returns
Stream object to allow chained writing

Note: if T is not convertible to string, the contents are not printed.

Definition at line 722 of file scratch.h.

722 {
723 os << s.printSelf();
724 os << "Content:\n";
725 for(typename ScratchSpace<T>::size_type i = 0; i < s.size(); i++) {
726 os << std::setw(7) << i << ": " << s[i] << "\n";
727 }
728 return os;
729}
size_type size() const
Definition: scratch.h:302
MString printSelf() const override
Returns a string summing up this scratch space element information.
Definition: scratch.h:547
std::size_t size_type
Definition: scratch.h:242