MPQC
3.0.0-alpha
|
Convert data to other formats. More...
#include <util/state/translate.h>
Public Member Functions | |
TranslateDataOut (StateOut *s, TranslateData *t) | |
Write to s using the translation defined by t. More... | |
virtual int | put (const char *, int) |
Translate and write the data. More... | |
virtual int | put (const short *, int) |
virtual int | put (const unsigned int *, int) |
virtual int | put (const int *, int) |
virtual int | put (const unsigned long *, int) |
virtual int | put (const long *, int) |
virtual int | put (const float *, int) |
virtual int | put (const double *, int) |
TranslateData * | translator () |
Returns the translator. | |
Protected Member Functions | |
int | putv (const void *d, int s) |
Convert data to other formats.
The generated data is inserted into a StateOut object.
sc::TranslateDataOut::TranslateDataOut | ( | StateOut * | s, |
TranslateData * | t | ||
) |
Write to s using the translation defined by t.
The t argument will be deleted by this.
|
virtual |
Translate and write the data.
A similar member exists for each basic type.