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

#include <Conv.h>

+ Collaboration diagram for Conv< Id >:

Static Public Member Functions

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

Detailed Description

template<>
class Conv< Id >

The template specialization of Conv< Id > sets up alignment on word boundaries by storing the Id as a double. It also deals with the string conversion issues.

Definition at line 448 of file Conv.h.

Member Function Documentation

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

Definition at line 459 of file Conv.h.

459  {
460  Id ret( (unsigned int)**buf );
461  (*buf)++;
462  return ret;
463  }
Definition: Id.h:17
static string Conv< Id >::rttiType ( )
inlinestatic

Definition at line 478 of file Conv.h.

478  {
479  return "Id";
480  }
static unsigned int Conv< Id >::size ( Id  val)
inlinestatic

This is the size used in the serialized form.

Definition at line 454 of file Conv.h.

455  {
456  return 1;
457  }
static void Conv< Id >::str2val ( Id val,
const string &  s 
)
inlinestatic

Definition at line 469 of file Conv.h.

469  {
470  Id temp( s ); // converts the path
471  val = temp;
472  }
Definition: Id.h:17
static void Conv< Id >::val2buf ( Id  id,
double **  buf 
)
inlinestatic

Definition at line 464 of file Conv.h.

464  {
465  **buf = id.value();
466  (*buf)++;
467  }
static void Conv< Id >::val2str ( string &  s,
Id  val 
)
inlinestatic

Definition at line 474 of file Conv.h.

References Id::path().

474  {
475  s = val.path();
476  }
std::string path(const std::string &separator="/") const
Definition: Id.cpp:76

+ Here is the call graph for this function:


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