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

#include <Conv.h>

+ Collaboration diagram for Conv< short >:

Static Public Member Functions

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

Detailed Description

template<>
class Conv< short >

Definition at line 364 of file Conv.h.

Member Function Documentation

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

Definition at line 375 of file Conv.h.

375  {
376  short ret = (short)**buf;
377  (*buf)++;
378  return ret;
379  }
static string Conv< short >::rttiType ( )
inlinestatic

Definition at line 395 of file Conv.h.

395  {
396  return "short";
397  }
static unsigned int Conv< short >::size ( short  val)
inlinestatic

This is the size used in the serialized form.

Definition at line 370 of file Conv.h.

371  {
372  return 1;
373  }
static void Conv< short >::str2val ( short &  val,
const string &  s 
)
inlinestatic

Definition at line 385 of file Conv.h.

385  {
386  val = atoi( s.c_str() );
387  }
static void Conv< short >::val2buf ( short  val,
double **  buf 
)
inlinestatic

Definition at line 380 of file Conv.h.

380  {
381  **buf = val;
382  (*buf)++;
383  }
static void Conv< short >::val2str ( string &  s,
short  val 
)
inlinestatic

Definition at line 389 of file Conv.h.

389  {
390  stringstream ss;
391  ss << val;
392  s = ss.str();
393  }

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