Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Public Member Functions | Public Attributes | List of all members
golos::languages::peer_stats_object Class Reference

#include <languages_plugin.hpp>

Inheritance diagram for golos::languages::peer_stats_object:

Public Member Functions

template<typename Constructor , typename Allocator >
 peer_stats_object (Constructor &&c, allocator< Allocator > a)
 
 peer_stats_object ()
 
void update_rank ()
 

Public Attributes

id_type id
 
account_object::id_type voter
 
account_object::id_type peer
 
int32_t direct_positive_votes = 0
 
int32_t direct_votes = 1
 
int32_t indirect_positive_votes = 0
 
int32_t indirect_votes = 1
 
float rank = 0
 

Detailed Description

The purpose of this object is to track the relationship between accounts based upon how a user votes. Every time a user votes on a post, the relationship between voter and author increases direct rshares.

Definition at line 397 of file languages_plugin.hpp.

Constructor & Destructor Documentation

◆ peer_stats_object() [1/2]

template<typename Constructor , typename Allocator >
golos::languages::peer_stats_object::peer_stats_object ( Constructor &&  c,
allocator< Allocator >  a 
)
inline

Definition at line 400 of file languages_plugin.hpp.

◆ peer_stats_object() [2/2]

golos::languages::peer_stats_object::peer_stats_object ( )
inline

Definition at line 404 of file languages_plugin.hpp.

Member Function Documentation

◆ update_rank()

void golos::languages::peer_stats_object::update_rank ( )
inline

Definition at line 419 of file languages_plugin.hpp.

Member Data Documentation

◆ direct_positive_votes

int32_t golos::languages::peer_stats_object::direct_positive_votes = 0

Definition at line 411 of file languages_plugin.hpp.

◆ direct_votes

int32_t golos::languages::peer_stats_object::direct_votes = 1

Definition at line 412 of file languages_plugin.hpp.

◆ id

id_type golos::languages::peer_stats_object::id

Definition at line 407 of file languages_plugin.hpp.

◆ indirect_positive_votes

int32_t golos::languages::peer_stats_object::indirect_positive_votes = 0

Definition at line 414 of file languages_plugin.hpp.

◆ indirect_votes

int32_t golos::languages::peer_stats_object::indirect_votes = 1

Definition at line 415 of file languages_plugin.hpp.

◆ peer

account_object::id_type golos::languages::peer_stats_object::peer

Definition at line 410 of file languages_plugin.hpp.

◆ rank

float golos::languages::peer_stats_object::rank = 0

Definition at line 417 of file languages_plugin.hpp.

◆ voter

account_object::id_type golos::languages::peer_stats_object::voter

Definition at line 409 of file languages_plugin.hpp.


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