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

#include <tags_plugin.hpp>

Inheritance diagram for golos::tags::tag_object:

Public Member Functions

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

Public Attributes

id_type id
tag_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 tag_objects for that comment are updated to match.

Definition at line 75 of file tags_plugin.hpp.

Constructor & Destructor Documentation

◆ tag_object() [1/2]

template<typename Constructor , typename Allocator >
golos::tags::tag_object::tag_object ( Constructor &&  c,
allocator< Allocator >  a 

Definition at line 78 of file tags_plugin.hpp.

◆ tag_object() [2/2]

golos::tags::tag_object::tag_object ( )

Definition at line 82 of file tags_plugin.hpp.

Member Function Documentation

◆ is_post()

bool golos::tags::tag_object::is_post ( ) const

Definition at line 109 of file tags_plugin.hpp.

Member Data Documentation

◆ active

time_point_sec golos::tags::tag_object::active

Definition at line 89 of file tags_plugin.hpp.

◆ author

account_object::id_type golos::tags::tag_object::author

Definition at line 105 of file tags_plugin.hpp.

◆ cashout

time_point_sec golos::tags::tag_object::cashout

Definition at line 90 of file tags_plugin.hpp.

◆ children

int32_t golos::tags::tag_object::children = 0

Definition at line 93 of file tags_plugin.hpp.

◆ children_rshares2

fc::uint128_t golos::tags::tag_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 tags_plugin.hpp.

◆ comment

comment_object::id_type golos::tags::tag_object::comment

Definition at line 107 of file tags_plugin.hpp.

◆ created

time_point_sec golos::tags::tag_object::created

Definition at line 88 of file tags_plugin.hpp.

◆ hot

double golos::tags::tag_object::hot = 0

Definition at line 94 of file tags_plugin.hpp.

◆ id

id_type golos::tags::tag_object::id

Definition at line 85 of file tags_plugin.hpp.

◆ name

tag_name_type golos::tags::tag_object::name

Definition at line 87 of file tags_plugin.hpp.

◆ net_rshares

int64_t golos::tags::tag_object::net_rshares = 0

Definition at line 91 of file tags_plugin.hpp.

◆ net_votes

int32_t golos::tags::tag_object::net_votes = 0

Definition at line 92 of file tags_plugin.hpp.

◆ parent

comment_object::id_type golos::tags::tag_object::parent

Definition at line 106 of file tags_plugin.hpp.

◆ promoted_balance

share_type golos::tags::tag_object::promoted_balance = 0

Definition at line 96 of file tags_plugin.hpp.

◆ trending

double golos::tags::tag_object::trending = 0

Definition at line 95 of file tags_plugin.hpp.

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