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

#include <Conv.h>

+ Collaboration diagram for Conv< unsigned short >:

Static Public Member Functions

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

Detailed Description

template<>
class Conv< unsigned short >

Definition at line 327 of file Conv.h.

Member Function Documentation

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

Definition at line 338 of file Conv.h.

338  {
339  unsigned short ret = (unsigned int)**buf;
340  (*buf)++;
341  return ret;
342  }
static string Conv< unsigned short >::rttiType ( )
inlinestatic

Definition at line 358 of file Conv.h.

358  {
359  return "unsigned short";
360  }
static unsigned int Conv< unsigned short >::size ( unsigned short  val)
inlinestatic

This is the size used in the serialized form.

Definition at line 333 of file Conv.h.

334  {
335  return 1;
336  }
static void Conv< unsigned short >::str2val ( unsigned short &  val,
const string &  s 
)
inlinestatic

Definition at line 348 of file Conv.h.

348  {
349  val = atoi( s.c_str() );
350  }
static void Conv< unsigned short >::val2buf ( unsigned short  val,
double **  buf 
)
inlinestatic

Definition at line 343 of file Conv.h.

343  {
344  **buf = (double)val;
345  (*buf)++;
346  }
static void Conv< unsigned short >::val2str ( string &  s,
unsigned short  val 
)
inlinestatic

Definition at line 352 of file Conv.h.

352  {
353  stringstream ss;
354  ss << val;
355  s = ss.str();
356  }

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