OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
my_struct Struct Reference

Detailed Description

Definition at line 26 of file main_ser.cpp.

Public Member Functions

 my_struct (const my_struct &my)
 Copy constructor.
 
 my_struct (my_struct &&my)
 Copy constructor from temporal object.
 
my_structoperator= (const my_struct &my)
 This is fundamental to avoid crash, otherwise.
 
my_structoperator= (my_struct &&my)
 This is fundamental to avoid crash, otherwise.
 
template<int ... prp>
void packRequest (size_t &req) const
 Serialization request.
 
template<typename Memory , int ... prp>
void pack (ExtPreAlloc< Memory > &mem, Pack_stat &sts) const
 Serialize the data structure.
 
template<typename Memory , int ... prp>
void unpack (ExtPreAlloc< Memory > &mem, Unpack_stat &ps)
 De-serialize the data structure.
 

Static Public Member Functions

static bool pack ()
 Functions to check if the packing object is complex.
 
static bool noPointers ()
 

Data Fields

size_t size
 C string size.
 
char * ptr
 C string pointer.
 
std::string str
 C++ string.
 
openfpm::vector< int > v
 vector
 

Constructor & Destructor Documentation

◆ my_struct() [1/3]

my_struct::my_struct ( )
inline

Definition at line 50 of file main_ser.cpp.

◆ my_struct() [2/3]

my_struct::my_struct ( const my_struct my)
inline

Copy constructor.

Definition at line 57 of file main_ser.cpp.

◆ my_struct() [3/3]

my_struct::my_struct ( my_struct &&  my)
inline

Copy constructor from temporal object.

Definition at line 63 of file main_ser.cpp.

◆ ~my_struct()

my_struct::~my_struct ( )
inline

Definition at line 68 of file main_ser.cpp.

Member Function Documentation

◆ noPointers()

static bool my_struct::noPointers ( )
inlinestatic

Definition at line 117 of file main_ser.cpp.

◆ operator=() [1/2]

my_struct & my_struct::operator= ( const my_struct my)
inline

This is fundamental to avoid crash, otherwise.

Definition at line 76 of file main_ser.cpp.

◆ operator=() [2/2]

my_struct & my_struct::operator= ( my_struct &&  my)
inline

This is fundamental to avoid crash, otherwise.

Definition at line 90 of file main_ser.cpp.

◆ pack() [1/2]

static bool my_struct::pack ( )
inlinestatic

Functions to check if the packing object is complex.

Definition at line 45 of file main_ser.cpp.

◆ pack() [2/2]

template<typename Memory , int ... prp>
void my_struct::pack ( ExtPreAlloc< Memory > &  mem,
Pack_stat sts 
) const
inline

Serialize the data structure.

Definition at line 127 of file main_ser.cpp.

◆ packRequest()

template<int ... prp>
void my_struct::packRequest ( size_t &  req) const
inline

Serialization request.

Definition at line 107 of file main_ser.cpp.

◆ unpack()

template<typename Memory , int ... prp>
void my_struct::unpack ( ExtPreAlloc< Memory > &  mem,
Unpack_stat ps 
)
inline

De-serialize the data structure.

Definition at line 168 of file main_ser.cpp.

Field Documentation

◆ ptr

char* my_struct::ptr

C string pointer.

Definition at line 32 of file main_ser.cpp.

◆ size

size_t my_struct::size

C string size.

Definition at line 29 of file main_ser.cpp.

◆ str

std::string my_struct::str

C++ string.

Definition at line 35 of file main_ser.cpp.

◆ v

openfpm::vector<int> my_struct::v

vector

Definition at line 38 of file main_ser.cpp.


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