MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Conv< float > Class Template Reference

#include <Conv.h>

+ Collaboration diagram for Conv< float >:

Static Public Member Functions

static const float buf2val (double **buf)
 
static string rttiType ()
 
static unsigned int size (float val)
 
static void str2val (float &val, const string &s)
 
static void val2buf (float val, double **buf)
 
static void val2str (string &s, float val)
 

Detailed Description

template<>
class Conv< float >

The template specialization of Conv< unsigned int > sets up alignment on word boundaries by storing the data as a double.

Definition at line 208 of file Conv.h.

Member Function Documentation

static const float Conv< float >::buf2val ( double **  buf)
inlinestatic

Definition at line 219 of file Conv.h.

219  {
220  float ret = **buf;
221  (*buf)++;
222  return ret;
223  }
static string Conv< float >::rttiType ( )
inlinestatic

Definition at line 239 of file Conv.h.

239  {
240  return "float";
241  }
static unsigned int Conv< float >::size ( float  val)
inlinestatic

This is the size used in the serialized form.

Definition at line 214 of file Conv.h.

215  {
216  return 1;
217  }
static void Conv< float >::str2val ( float &  val,
const string &  s 
)
inlinestatic

Definition at line 229 of file Conv.h.

229  {
230  val = atof( s.c_str() );
231  }
static void Conv< float >::val2buf ( float  val,
double **  buf 
)
inlinestatic

Definition at line 224 of file Conv.h.

224  {
225  **buf = val;
226  (*buf)++;
227  }
static void Conv< float >::val2str ( string &  s,
float  val 
)
inlinestatic

Definition at line 233 of file Conv.h.

233  {
234  stringstream ss;
235  ss << val;
236  s = ss.str();
237  }

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