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

#include <Conv.h>

+ Collaboration diagram for Conv< unsigned int >:

Static Public Member Functions

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

Detailed Description

template<>
class Conv< unsigned int >

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

Definition at line 249 of file Conv.h.

Member Function Documentation

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

Definition at line 260 of file Conv.h.

260  {
261  unsigned int ret = (unsigned int)**buf;
262  (*buf)++;
263  return ret;
264  }
static string Conv< unsigned int >::rttiType ( )
inlinestatic

Definition at line 280 of file Conv.h.

280  {
281  return "unsigned int";
282  }
static unsigned int Conv< unsigned int >::size ( int  val)
inlinestatic

This is the size used in the serialized form.

Definition at line 255 of file Conv.h.

256  {
257  return 1;
258  }
static void Conv< unsigned int >::str2val ( unsigned int &  val,
const string &  s 
)
inlinestatic

Definition at line 270 of file Conv.h.

270  {
271  val = atoi( s.c_str() );
272  }
static void Conv< unsigned int >::val2buf ( unsigned int  val,
double **  buf 
)
inlinestatic

Definition at line 265 of file Conv.h.

265  {
266  **buf = val;
267  (*buf)++;
268  }
static void Conv< unsigned int >::val2str ( string &  s,
unsigned int  val 
)
inlinestatic

Definition at line 274 of file Conv.h.

274  {
275  stringstream ss;
276  ss << val;
277  s = ss.str();
278  }

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