MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Conv.h File Reference
#include <string>
+ Include dependency graph for Conv.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Conv< T >
 
class  Conv< bool >
 
class  Conv< double >
 
class  Conv< float >
 
class  Conv< Id >
 
class  Conv< int >
 
class  Conv< short >
 
class  Conv< string >
 
class  Conv< unsigned int >
 
class  Conv< unsigned short >
 
class  Conv< vector< T > >
 
class  Conv< vector< vector< T > > >
 

Variables

static const unsigned int UnreasonablyLargeArray = 1000000
 

Variable Documentation

const unsigned int UnreasonablyLargeArray = 1000000
static

This set of templates defines converters. The conversions are from string to object, object to string, and binary buffer to object, object to binary buffer. Many classes convert through a single template. Strings and other things with additional data need special converters. The key point is that the serialized form (buffer or output string) must have a complete independent copy of the data. So if a pointer or reference type is converted, then there must be a complete copy made.

Conv is used only during while the memory for the argument is stable. You can't create a Conv object from a variable, and free the variable before using the Conv.

Definition at line 29 of file Conv.h.