sc::TranslateDataOut(3)

πŸ“¦
version 2.3.1 Β· 4 versions
, in ubuntu jammy

✨ sc::TranslateDataOut(3) ✨

okay so bestie, welcome to the sc::TranslateDataOut page from the MPQC manual β€” it's literally a whole class for converting data into other formats πŸ’…


🌸 NAME 🌸

sc::TranslateDataOut β€” convert data to other formats, no cap πŸ¦‹


πŸŽ€ SYNOPSIS πŸŽ€

#include <translate.h>

πŸ’– Public Member Functions πŸ’–

TranslateDataOut (StateOut *s, TranslateData *t)
virtual int put (const char *, int)
virtual int put (const short *, int)
virtual int put (const unsigned int *, int)
virtual int put (const int *, int)
virtual int put (const long *, int)
virtual int put (const float *, int)
virtual int put (const double *, int)
TranslateData * translator ()

🫢 Protected Member Functions 🫢

int putv (const void *d, int s)

🌈 Detailed Description 🌈

so the whole vibe of this class is: convert data to other formats ✨

the generated data gets inserted into a StateOut object β€” that's the destination, the main character of this operation πŸ‘‘


🧚 Constructor & Destructor Documentation 🧚

⭐ sc::TranslateDataOut::TranslateDataOut (StateOut * s, TranslateData * t)

write to s using the translation defined by t. πŸ’«

⚠️ heads up bestie: the t argument will be deleted by this β€” like, it takes ownership and that pointer is GONE after this, so don't go using it again after, ok? πŸ˜­πŸ’€

πŸ”₯ Member Function Documentation πŸ”₯

⭐ virtual int sc::TranslateDataOut::put (const char *, int) [virtual]

translate and write the data, slay πŸ’…

and fyi β€” a similar member exists for each basic type, so like, there's a put for every one of those types listed up in the synopsis. you're covered fr fr ✨


πŸ‘‘ Author πŸ‘‘

generated automatically by Doxygen for MPQC from the source code. iconic behaviour honestly πŸ€–πŸ’œ


and that's the whole page bestie!! πŸ“ version 2.3.1, dated Sun Oct 4 2020 β€” signed, sealed, delivered by the MPQC manual, mwah πŸ’‹πŸŽ€

πŸ“¦ where this page comes from