MDBX Containers
Loading...
Searching...
No Matches
MyStruct Struct Reference

Demonstrates storing values of arbitrary types using AnyValueTable. More...

Public Member Functions

std::vector< uint8_t > to_bytes () const
 
std::vector< uint8_t > to_bytes () const
 
std::vector< uint8_t > to_bytes () const
 
bool operator== (const MyStruct &other) const
 

Static Public Member Functions

static MyStruct from_bytes (const void *data, size_t size)
 
static MyStruct from_bytes (const void *data, size_t size)
 
static MyStruct from_bytes (const void *data, size_t size)
 

Public Attributes

int a
 
float b
 
double b
 

Detailed Description

Demonstrates storing values of arbitrary types using AnyValueTable.

Struct to verify custom type support.

Shows scoped transaction usage.

Simple struct for demonstration.

Definition at line 14 of file any_value_table_example.cpp.

Member Function Documentation

◆ from_bytes() [1/3]

static MyStruct MyStruct::from_bytes ( const void * data,
size_t size )
inlinestatic

Definition at line 24 of file any_value_table_example.cpp.

◆ from_bytes() [2/3]

static MyStruct MyStruct::from_bytes ( const void * data,
size_t size )
inlinestatic

Definition at line 22 of file single_transaction_demo.cpp.

◆ from_bytes() [3/3]

static MyStruct MyStruct::from_bytes ( const void * data,
size_t size )
inlinestatic

Definition at line 19 of file any_value_table_test.cpp.

◆ operator==()

bool MyStruct::operator== ( const MyStruct & other) const
inline

Definition at line 28 of file any_value_table_test.cpp.

◆ to_bytes() [1/3]

std::vector< uint8_t > MyStruct::to_bytes ( ) const
inline

Definition at line 18 of file any_value_table_example.cpp.

◆ to_bytes() [2/3]

std::vector< uint8_t > MyStruct::to_bytes ( ) const
inline

Definition at line 16 of file single_transaction_demo.cpp.

◆ to_bytes() [3/3]

std::vector< uint8_t > MyStruct::to_bytes ( ) const
inline

Definition at line 13 of file any_value_table_test.cpp.

Member Data Documentation

◆ a

int MyStruct::a

Definition at line 15 of file any_value_table_example.cpp.

◆ b [1/2]

float MyStruct::b

Definition at line 16 of file any_value_table_example.cpp.

◆ b [2/2]

double MyStruct::b

Definition at line 11 of file any_value_table_test.cpp.


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