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

#include <languages_plugin.hpp>

Inheritance diagram for golos::languages::language_object:

Public Member Functions

template<typename Constructor , typename Allocator >
 language_object (Constructor &&c, allocator< Allocator > a)
 language_object ()
bool is_post () const

Public Attributes

id_type id
language_name_type name
time_point_sec created
time_point_sec active
time_point_sec cashout
int64_t net_rshares = 0
int32_t net_votes = 0
int32_t children = 0
double hot = 0
double trending = 0
share_type promoted_balance = 0
fc::uint128_t children_rshares2
account_object::id_type author
comment_object::id_type parent
comment_object::id_type comment

Detailed Description

The purpose of the tag object is to allow the generation and listing of all top level posts by a string tag. The desired sort orders include:

  1. created - time of creation
  2. maturing - about to receive a payout
  3. active - last reply the post or any child of the post
  4. netvotes - individual accounts voting for post minus accounts voting against it

When ever a comment is modified, all language_objects for that comment are updated to match.

Definition at line 75 of file languages_plugin.hpp.

Constructor & Destructor Documentation

◆ language_object() [1/2]

template<typename Constructor , typename Allocator >
golos::languages::language_object::language_object ( Constructor &&  c,
allocator< Allocator >  a 

Definition at line 78 of file languages_plugin.hpp.

◆ language_object() [2/2]

golos::languages::language_object::language_object ( )

Definition at line 82 of file languages_plugin.hpp.

Member Function Documentation

◆ is_post()

bool golos::languages::language_object::is_post ( ) const

Definition at line 109 of file languages_plugin.hpp.

Member Data Documentation

◆ active

time_point_sec golos::languages::language_object::active

Definition at line 89 of file languages_plugin.hpp.

◆ author

account_object::id_type golos::languages::language_object::author

Definition at line 105 of file languages_plugin.hpp.

◆ cashout

time_point_sec golos::languages::language_object::cashout

Definition at line 90 of file languages_plugin.hpp.

◆ children

int32_t golos::languages::language_object::children = 0

Definition at line 93 of file languages_plugin.hpp.

◆ children_rshares2

fc::uint128_t golos::languages::language_object::children_rshares2

Used to track the total rshares^2 of all children, this is used for indexing purposes. A discussion that has a nested comment of high value should promote the entire discussion so that the comment can be reviewed.

Definition at line 103 of file languages_plugin.hpp.

◆ comment

comment_object::id_type golos::languages::language_object::comment

Definition at line 107 of file languages_plugin.hpp.

◆ created

time_point_sec golos::languages::language_object::created

Definition at line 88 of file languages_plugin.hpp.

◆ hot

double golos::languages::language_object::hot = 0

Definition at line 94 of file languages_plugin.hpp.

◆ id

id_type golos::languages::language_object::id

Definition at line 85 of file languages_plugin.hpp.

◆ name

language_name_type golos::languages::language_object::name

Definition at line 87 of file languages_plugin.hpp.

◆ net_rshares

int64_t golos::languages::language_object::net_rshares = 0

Definition at line 91 of file languages_plugin.hpp.

◆ net_votes

int32_t golos::languages::language_object::net_votes = 0

Definition at line 92 of file languages_plugin.hpp.

◆ parent

comment_object::id_type golos::languages::language_object::parent

Definition at line 106 of file languages_plugin.hpp.

◆ promoted_balance

share_type golos::languages::language_object::promoted_balance = 0

Definition at line 96 of file languages_plugin.hpp.

◆ trending

double golos::languages::language_object::trending = 0

Definition at line 95 of file languages_plugin.hpp.

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