m_general.h File Reference

Template functions for general supergeneric ws methods. More...

#include <iostream>
#include <stdexcept>
#include "messages.h"
#include "ppath.h"
#include "special_interp.h"
#include "mystring.h"

Include dependency graph for m_general.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  Timer

Defines

#define SWITCH_OUTPUT(x, y)

Functions

template<typename T>
void Print (const T &x, const Index &level)
 WORKSPACE METHOD: Print.
void Print (Workspace &ws, const Agenda &x, const Index &level)
void Print (const ArrayOfGridPos &x, const Index &level)
void Print (const Ppath &ppath, const Index &level)
void Print (const Timer &x, const Index &level)
void PrintWorkspace (Workspace &ws, const Index &only_allocated, const Index &level)


Detailed Description

Template functions for general supergeneric ws methods.

Author:
Oliver Lemke <olemke@core-dump.info>
Date:
2003-07-24

Definition in file m_general.h.


Define Documentation

#define SWITCH_OUTPUT ( x,
 ) 

Value:

switch (x) { \
case 0: out0 << y << "\n";break; \
case 1: out1 << y << "\n";break; \
case 2: out2 << y << "\n";break; \
case 3: out3 << y << "\n";break; \
default: throw runtime_error ("Output level must have value from 0-3"); \
}

Definition at line 52 of file m_general.h.

Referenced by Print(), and PrintWorkspace().


Function Documentation

void Print ( const Timer x,
const Index level 
)

Definition at line 199 of file m_general.cc.

void Print ( const Ppath ppath,
const Index level 
)

void Print ( const ArrayOfGridPos x,
const Index level 
)

Definition at line 86 of file m_general.cc.

References Array< base >::nelem(), Print(), and SWITCH_OUTPUT.

void Print ( Workspace ws,
const Agenda x,
const Index level 
)

Definition at line 72 of file m_general.cc.

References SWITCH_OUTPUT.

template<typename T>
void Print ( const T &  gin1,
const Index level 
) [inline]

WORKSPACE METHOD: Print.

Prints a variable on the screen.

Keywords: <br> level : Output level to use.

Author:
Oliver Lemke
Parameters:
[in] gin1 Generic Input
[in] level Generic Input (Default: "1")

Definition at line 70 of file m_general.h.

References SWITCH_OUTPUT.

Referenced by Print(), Print_sg_Agenda_g(), Print_sg_ArrayOfArrayOfArrayOfArrayOfGridPos_g(), Print_sg_ArrayOfArrayOfGField1_g(), Print_sg_ArrayOfArrayOfGField3_g(), Print_sg_ArrayOfArrayOfIndex_g(), Print_sg_ArrayOfArrayOfLineRecord_g(), Print_sg_ArrayOfArrayOfMatrix_g(), Print_sg_ArrayOfArrayOfSpeciesTag_g(), Print_sg_ArrayOfArrayOfTensor3_g(), Print_sg_ArrayOfArrayOfTensor6_g(), Print_sg_ArrayOfGField1_g(), Print_sg_ArrayOfGField2_g(), Print_sg_ArrayOfGField3_g(), Print_sg_ArrayOfGField4_g(), Print_sg_ArrayOfIndex_g(), Print_sg_ArrayOfLineRecord_g(), Print_sg_ArrayOfLineshapeSpec_g(), Print_sg_ArrayOfMatrix_g(), Print_sg_ArrayOfPpath_g(), Print_sg_ArrayOfRetrievalQuantity_g(), Print_sg_ArrayOfSingleScatteringData_g(), Print_sg_ArrayOfString_g(), Print_sg_ArrayOfTensor3_g(), Print_sg_ArrayOfTensor4_g(), Print_sg_ArrayOfTensor6_g(), Print_sg_ArrayOfTensor7_g(), Print_sg_ArrayOfVector_g(), Print_sg_GasAbsLookup_g(), Print_sg_GField1_g(), Print_sg_GField2_g(), Print_sg_GField3_g(), Print_sg_GField4_g(), Print_sg_GridPos_g(), Print_sg_Index_g(), Print_sg_Matrix_g(), Print_sg_MCAntenna_g(), Print_sg_Numeric_g(), Print_sg_Ppath_g(), Print_sg_SingleScatteringData_g(), Print_sg_SLIData2_g(), Print_sg_Sparse_g(), Print_sg_String_g(), Print_sg_Tensor3_g(), Print_sg_Tensor4_g(), Print_sg_Tensor5_g(), Print_sg_Tensor6_g(), Print_sg_Tensor7_g(), Print_sg_Timer_g(), and Print_sg_Vector_g().

void PrintWorkspace ( Workspace ws,
const Index only_allocated,
const Index level 
)

Definition at line 215 of file m_general.cc.

References Workspace::is_initialized(), Workspace::nelem(), PrintWsvName(), and SWITCH_OUTPUT.

Referenced by PrintWorkspace_g().


Generated on Mon Mar 23 14:06:40 2009 for ARTS by  doxygen 1.5.6