Electroneum
cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution Struct Reference

#include <core_rpc_server_commands_defs.h>

Collaboration diagram for cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution:

Public Member Functions

 if (this_ref.binary)
 

Public Attributes

rpc::output_distribution_data data
 
uint64_t amount
 
std::string compressed_data
 
bool binary
 
bool compress
 

Detailed Description

Definition at line 2302 of file core_rpc_server_commands_defs.h.

Member Function Documentation

◆ if()

cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::if ( this_ref.  binary)
inline

Definition at line 2315 of file core_rpc_server_commands_defs.h.

2316  {
2317  if (is_store)
2318  {
2319  if (this_ref.compress)
2320  {
2321  const_cast<std::string&>(this_ref.compressed_data) = compress_integer_array(this_ref.data.distribution);
2323  }
2324  else
2326  }
2327  else
2328  {
2329  if (this_ref.compress)
2330  {
2332  const_cast<std::vector<uint64_t>&>(this_ref.data.distribution) = decompress_integer_array<uint64_t>(this_ref.compressed_data);
2333  }
2334  else
2336  }
2337  }
#define KV_SERIALIZE(varialble)
#define KV_SERIALIZE_CONTAINER_POD_AS_BLOB_N(varialble, val_name)
::std::string string
Definition: gtest-port.h:1097
std::vector< std::uint64_t > distribution
Definition: rpc_handler.h:46

Member Data Documentation

◆ amount

uint64_t cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::amount

Definition at line 2305 of file core_rpc_server_commands_defs.h.

◆ binary

bool cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::binary

Definition at line 2307 of file core_rpc_server_commands_defs.h.

◆ compress

bool cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::compress

Definition at line 2308 of file core_rpc_server_commands_defs.h.

◆ compressed_data

std::string cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::compressed_data

Definition at line 2306 of file core_rpc_server_commands_defs.h.

◆ data

rpc::output_distribution_data cryptonote::COMMAND_RPC_GET_OUTPUT_DISTRIBUTION::distribution::data

Definition at line 2304 of file core_rpc_server_commands_defs.h.


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