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

#include <Conv.h>

+ Collaboration diagram for Conv< int >:

Static Public Member Functions

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

Detailed Description

template<>
class Conv< int >

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

Definition at line 290 of file Conv.h.

Member Function Documentation

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

Definition at line 301 of file Conv.h.

301  {
302  int ret = (int)**buf;
303  (*buf)++;
304  return ret;
305  }
static string Conv< int >::rttiType ( )
inlinestatic

Definition at line 321 of file Conv.h.

321  {
322  return "int";
323  }
static unsigned int Conv< int >::size ( int  val)
inlinestatic

This is the size used in the serialized form.

Definition at line 296 of file Conv.h.

297  {
298  return 1;
299  }
static void Conv< int >::str2val ( int &  val,
const string &  s 
)
inlinestatic

Definition at line 311 of file Conv.h.

311  {
312  val = atoi( s.c_str() );
313  }
static void Conv< int >::val2buf ( int  val,
double **  buf 
)
inlinestatic

Definition at line 306 of file Conv.h.

306  {
307  **buf = val;
308  (*buf)++;
309  }
static void Conv< int >::val2str ( string &  s,
int  val 
)
inlinestatic

Definition at line 315 of file Conv.h.

315  {
316  stringstream ss;
317  ss << val;
318  s = ss.str();
319  }

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