Golos
Разработчикам Статистика Баунти Документация Партнеры Github
Namespaces | Classes | Typedefs | Enumerations | Functions
golos::languages Namespace Reference

Namespaces

 detail
 

Classes

class  author_language_stats_object
 
class  by_author_comment
 all blog posts by author with tag More...
 
class  by_author_parent_created
 
class  by_cashout
 
class  by_net_rshares
 all posts regardless of depth More...
 
class  by_parent_active
 
class  by_parent_children
 
class  by_parent_children_rshares2
 all top level posts by direct votes More...
 
class  by_parent_created
 all comments regardless of depth More...
 
class  by_parent_hot
 all top level posts with the most discussion (replies at all levels) More...
 
class  by_parent_net_rshares
 
class  by_parent_net_votes
 all top level posts by direct pending payout More...
 
class  by_parent_promoted
 
class  by_parent_trending
 all top level posts by total cumulative payout (aka payout) More...
 
class  by_reward_fund_net_rshares
 
struct  comment_metadata
 
class  comparable_index
 
class  language_api
 
class  language_object
 
class  language_stats_object
 
class  languages_plugin
 
class  peer_stats_object
 

Typedefs

typedef fc::fixed_string< fc::sha256 > language_name_type
 
typedef object_id< language_objectlanguage_id_type
 
typedef multi_index_container< language_object, indexed_by< ordered_unique< tag< by_id >, member< language_object, language_id_type, &language_object::id > >, ordered_non_unique< tag< by_comment >, member< language_object, comment_object::id_type, &language_object::comment > >, ordered_unique< tag< by_author_comment >, composite_key< language_object, member< language_object, account_object::id_type, &language_object::author >, member< language_object, comment_object::id_type, &language_object::comment >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< account_object::id_type >, std::less< comment_object::id_type >, std::less< language_id_type > > >, ordered_unique< tag< by_parent_created >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, comment_object::id_type, &language_object::parent >, member< language_object, time_point_sec, &language_object::created >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< comment_object::id_type >, std::greater< time_point_sec >, std::less< language_id_type > > >, ordered_unique< tag< by_parent_active >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, comment_object::id_type, &language_object::parent >, member< language_object, time_point_sec, &language_object::active >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< comment_object::id_type >, std::greater< time_point_sec >, std::less< language_id_type > > >, ordered_unique< tag< by_parent_promoted >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, comment_object::id_type, &language_object::parent >, member< language_object, share_type, &language_object::promoted_balance >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< comment_object::id_type >, std::greater< share_type >, std::less< language_id_type > > >, ordered_unique< tag< by_parent_net_rshares >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, comment_object::id_type, &language_object::parent >, member< language_object, int64_t, &language_object::net_rshares >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< comment_object::id_type >, std::greater< int64_t >, std::less< language_id_type > > >, ordered_unique< tag< by_parent_net_votes >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, comment_object::id_type, &language_object::parent >, member< language_object, int32_t, &language_object::net_votes >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< comment_object::id_type >, std::greater< int32_t >, std::less< language_id_type > > >, ordered_unique< tag< by_parent_children >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, comment_object::id_type, &language_object::parent >, member< language_object, int32_t, &language_object::children >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< comment_object::id_type >, std::greater< int32_t >, std::less< language_id_type > > >, ordered_unique< tag< by_parent_hot >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, comment_object::id_type, &language_object::parent >, member< language_object, double, &language_object::hot >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< comment_object::id_type >, std::greater< double >, std::less< language_id_type > > >, ordered_unique< tag< by_parent_trending >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, comment_object::id_type, &language_object::parent >, member< language_object, double, &language_object::trending >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< comment_object::id_type >, std::greater< double >, std::less< language_id_type > > >, ordered_unique< tag< by_parent_children_rshares2 >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, comment_object::id_type, &language_object::parent >, member< language_object, fc::uint128_t, &language_object::children_rshares2 >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< comment_object::id_type >, std::greater< fc::uint128_t >, std::less< language_id_type > > >, ordered_unique< tag< by_cashout >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, time_point_sec, &language_object::cashout >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< time_point_sec >, std::less< language_id_type > > >, ordered_unique< tag< by_net_rshares >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, int64_t, &language_object::net_rshares >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::greater< int64_t >, std::less< language_id_type > > >, ordered_unique< tag< by_author_parent_created >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, member< language_object, account_object::id_type, &language_object::author >, member< language_object, time_point_sec, &language_object::created >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< account_object::id_type >, std::greater< time_point_sec >, std::less< language_id_type > > >, ordered_unique< tag< by_reward_fund_net_rshares >, composite_key< language_object, member< language_object, language_name_type, &language_object::name >, const_mem_fun< language_object, bool, &language_object::is_post >, member< language_object, int64_t, &language_object::net_rshares >, member< language_object, language_id_type, &language_object::id > >, composite_key_compare< std::less< language_name_type >, std::less< bool >, std::greater< int64_t >, std::less< language_id_type > > > >, allocator< language_object > > language_index
 
typedef object_id< language_stats_objectlanguage_stats_id_type
 
typedef multi_index_container< language_stats_object, indexed_by< ordered_unique< tag< by_id >, member< language_stats_object, language_stats_id_type, &language_stats_object::id > >, ordered_unique< tag< by_tag >, member< language_stats_object, language_name_type, &language_stats_object::language > >, ordered_non_unique< tag< by_trending >, composite_key< language_stats_object, member< language_stats_object, fc::uint128_t, &language_stats_object::total_children_rshares2 >, member< language_stats_object, language_name_type, &language_stats_object::language > >, composite_key_compare< std::greater< uint128_t >, std::less< language_name_type > > > >, allocator< language_stats_object > > language_stats_index
 
typedef object_id< peer_stats_objectpeer_stats_id_type
 
typedef multi_index_container< peer_stats_object, indexed_by< ordered_unique< tag< by_id >, member< peer_stats_object, peer_stats_id_type, &peer_stats_object::id > >, ordered_unique< tag< by_rank >, composite_key< peer_stats_object, member< peer_stats_object, account_object::id_type, &peer_stats_object::voter >, member< peer_stats_object, float, &peer_stats_object::rank >, member< peer_stats_object, account_object::id_type, &peer_stats_object::peer > >, composite_key_compare< std::less< account_object::id_type >, std::greater< float >, std::less< account_object::id_type > > >, ordered_unique< tag< by_voter_peer >, composite_key< peer_stats_object, member< peer_stats_object, account_object::id_type, &peer_stats_object::voter >, member< peer_stats_object, account_object::id_type, &peer_stats_object::peer > >, composite_key_compare< std::less< account_object::id_type >, std::less< account_object::id_type > > > >, allocator< peer_stats_object > > peer_stats_index
 
typedef object_id< author_language_stats_objectauthor_tag_stats_id_type
 
typedef chainbase::shared_multi_index_container< author_language_stats_object, indexed_by< ordered_unique< tag< by_id >, member< author_language_stats_object, author_tag_stats_id_type, &author_language_stats_object::id > >, ordered_unique< tag< by_author_posts_tag >, composite_key< author_language_stats_object, member< author_language_stats_object, account_object::id_type, &author_language_stats_object::author >, member< author_language_stats_object, uint32_t, &author_language_stats_object::total_posts >, member< author_language_stats_object, language_name_type, &author_language_stats_object::language > >, composite_key_compare< less< account_object::id_type >, greater< uint32_t >, less< language_name_type > > >, ordered_unique< tag< by_author_tag_posts >, composite_key< author_language_stats_object, member< author_language_stats_object, account_object::id_type, &author_language_stats_object::author >, member< author_language_stats_object, language_name_type, &author_language_stats_object::language >, member< author_language_stats_object, uint32_t, &author_language_stats_object::total_posts > >, composite_key_compare< less< account_object::id_type >, less< language_name_type >, greater< uint32_t > > >, ordered_unique< tag< by_author_tag_rewards >, composite_key< author_language_stats_object, member< author_language_stats_object, account_object::id_type, &author_language_stats_object::author >, member< author_language_stats_object, language_name_type, &author_language_stats_object::language >, member< author_language_stats_object, asset< 0, 17, 0 >, &author_language_stats_object::total_rewards > >, composite_key_compare< less< account_object::id_type >, less< language_name_type >, greater< asset< 0, 17, 0 > > > >, ordered_unique< tag< by_tag_rewards_author >, composite_key< author_language_stats_object, member< author_language_stats_object, language_name_type, &author_language_stats_object::language >, member< author_language_stats_object, asset< 0, 17, 0 >, &author_language_stats_object::total_rewards >, member< author_language_stats_object, account_object::id_type, &author_language_stats_object::author > >, composite_key_compare< less< language_name_type >, greater< asset< 0, 17, 0 > >, less< account_object::id_type > > > > > author_language_stats_index
 

Enumerations

enum  languages_object_types { language_object_type = (LANGUAGES_SPACE_ID << 8), language_stats_object_type = (LANGUAGES_SPACE_ID << 8) + 1, peer_stats_object_type = (LANGUAGES_SPACE_ID << 8) + 2, author_language_stats_object_type = (LANGUAGES_SPACE_ID << 8) + 3 }
 

Functions

std::string get_language (const comment_object &c)
 
std::string get_language (const golos::application::comment_api_object &c)
 

Typedef Documentation

◆ author_language_stats_index

typedef chainbase::shared_multi_index_container<author_language_stats_object, indexed_by< ordered_unique<tag<by_id>, member<author_language_stats_object, author_tag_stats_id_type, &author_language_stats_object::id> >, ordered_unique<tag<by_author_posts_tag>, composite_key<author_language_stats_object, member<author_language_stats_object, account_object::id_type, &author_language_stats_object::author>, member<author_language_stats_object, uint32_t, &author_language_stats_object::total_posts>, member<author_language_stats_object, language_name_type, &author_language_stats_object::language> >, composite_key_compare<less<account_object::id_type>, greater<uint32_t>, less<language_name_type> > >, ordered_unique<tag<by_author_tag_posts>, composite_key<author_language_stats_object, member<author_language_stats_object, account_object::id_type, &author_language_stats_object::author>, member<author_language_stats_object, language_name_type, &author_language_stats_object::language>, member<author_language_stats_object, uint32_t, &author_language_stats_object::total_posts> >, composite_key_compare<less<account_object::id_type>, less<language_name_type>, greater<uint32_t> > >, ordered_unique<tag<by_author_tag_rewards>, composite_key<author_language_stats_object, member<author_language_stats_object, account_object::id_type, &author_language_stats_object::author>, member<author_language_stats_object, language_name_type, &author_language_stats_object::language>, member<author_language_stats_object, asset<0, 17, 0>, &author_language_stats_object::total_rewards> >, composite_key_compare<less<account_object::id_type>, less<language_name_type>, greater<asset<0, 17, 0> > > >, ordered_unique<tag<by_tag_rewards_author>, composite_key<author_language_stats_object, member<author_language_stats_object, language_name_type, &author_language_stats_object::language>, member<author_language_stats_object, asset<0, 17, 0>, &author_language_stats_object::total_rewards>, member<author_language_stats_object, account_object::id_type, &author_language_stats_object::author> >, composite_key_compare<less<language_name_type>, greater<asset<0, 17, 0> >, less<account_object::id_type> > > > > golos::languages::author_language_stats_index

Definition at line 524 of file languages_plugin.hpp.

◆ author_tag_stats_id_type

Definition at line 479 of file languages_plugin.hpp.

◆ language_id_type

Definition at line 114 of file languages_plugin.hpp.

◆ language_index

typedef multi_index_container<language_object, indexed_by<ordered_unique<tag<by_id>, member<language_object, language_id_type, &language_object::id> >, ordered_non_unique<tag<by_comment>, member<language_object, comment_object::id_type, &language_object::comment> >, ordered_unique<tag<by_author_comment>, composite_key<language_object, member<language_object, account_object::id_type, &language_object::author>, member<language_object, comment_object::id_type, &language_object::comment>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<account_object::id_type>, std::less<comment_object::id_type>, std::less<language_id_type> > >, ordered_unique<tag<by_parent_created>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, comment_object::id_type, &language_object::parent>, member<language_object, time_point_sec, &language_object::created>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<comment_object::id_type>, std::greater<time_point_sec>, std::less<language_id_type> > >, ordered_unique<tag<by_parent_active>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, comment_object::id_type, &language_object::parent>, member<language_object, time_point_sec, &language_object::active>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<comment_object::id_type>, std::greater<time_point_sec>, std::less<language_id_type> > >, ordered_unique<tag<by_parent_promoted>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, comment_object::id_type, &language_object::parent>, member<language_object, share_type, &language_object::promoted_balance>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<comment_object::id_type>, std::greater<share_type>, std::less<language_id_type> > >, ordered_unique<tag<by_parent_net_rshares>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, comment_object::id_type, &language_object::parent>, member<language_object, int64_t, &language_object::net_rshares>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<comment_object::id_type>, std::greater<int64_t>, std::less<language_id_type> > >, ordered_unique<tag<by_parent_net_votes>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, comment_object::id_type, &language_object::parent>, member<language_object, int32_t, &language_object::net_votes>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<comment_object::id_type>, std::greater<int32_t>, std::less<language_id_type> > >, ordered_unique<tag<by_parent_children>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, comment_object::id_type, &language_object::parent>, member<language_object, int32_t, &language_object::children>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<comment_object::id_type>, std::greater<int32_t>, std::less<language_id_type> > >, ordered_unique<tag<by_parent_hot>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, comment_object::id_type, &language_object::parent>, member<language_object, double, &language_object::hot>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<comment_object::id_type>, std::greater<double>, std::less<language_id_type> > >, ordered_unique<tag<by_parent_trending>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, comment_object::id_type, &language_object::parent>, member<language_object, double, &language_object::trending>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<comment_object::id_type>, std::greater<double>, std::less<language_id_type> > >, ordered_unique<tag<by_parent_children_rshares2>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, comment_object::id_type, &language_object::parent>, member<language_object, fc::uint128_t, &language_object::children_rshares2>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<comment_object::id_type>, std::greater<fc::uint128_t>, std::less<language_id_type> > >, ordered_unique<tag<by_cashout>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, time_point_sec, &language_object::cashout>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<time_point_sec>, std::less<language_id_type> > >, ordered_unique<tag<by_net_rshares>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, int64_t, &language_object::net_rshares>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::greater<int64_t>, std::less<language_id_type> > >, ordered_unique<tag<by_author_parent_created>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, member<language_object, account_object::id_type, &language_object::author>, member<language_object, time_point_sec, &language_object::created>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<account_object::id_type>, std::greater<time_point_sec>, std::less<language_id_type> > >, ordered_unique<tag<by_reward_fund_net_rshares>, composite_key<language_object, member<language_object, language_name_type, &language_object::name>, const_mem_fun<language_object, bool, &language_object::is_post>, member<language_object, int64_t, &language_object::net_rshares>, member<language_object, language_id_type, &language_object::id> >, composite_key_compare<std::less<language_name_type>, std::less<bool>, std::greater<int64_t>, std::less<language_id_type> > > >, allocator<language_object> > golos::languages::language_index

Definition at line 249 of file languages_plugin.hpp.

◆ language_name_type

typedef fc::fixed_string<fc::sha256> golos::languages::language_name_type

Definition at line 46 of file languages_plugin.hpp.

◆ language_stats_id_type

Definition at line 376 of file languages_plugin.hpp.

◆ language_stats_index

typedef multi_index_container<language_stats_object, indexed_by<ordered_unique<tag<by_id>, member<language_stats_object, language_stats_id_type, &language_stats_object::id> >, ordered_unique<tag<by_tag>, member<language_stats_object, language_name_type, &language_stats_object::language> >, ordered_non_unique<tag<by_trending>, composite_key<language_stats_object, member<language_stats_object, fc::uint128_t, &language_stats_object::total_children_rshares2>, member<language_stats_object, language_name_type, &language_stats_object::language> >, composite_key_compare<std::greater<uint128_t>, std::less<language_name_type> > > >, allocator<language_stats_object> > golos::languages::language_stats_index

Definition at line 380 of file languages_plugin.hpp.

◆ peer_stats_id_type

Definition at line 440 of file languages_plugin.hpp.

◆ peer_stats_index

typedef multi_index_container<peer_stats_object, indexed_by< ordered_unique<tag<by_id>, member<peer_stats_object, peer_stats_id_type, &peer_stats_object::id> >, ordered_unique<tag<by_rank>, composite_key<peer_stats_object, member<peer_stats_object, account_object::id_type, &peer_stats_object::voter>, member<peer_stats_object, float, &peer_stats_object::rank>, member<peer_stats_object, account_object::id_type, &peer_stats_object::peer> >, composite_key_compare<std::less<account_object::id_type>, std::greater<float>, std::less<account_object::id_type> > >, ordered_unique<tag<by_voter_peer>, composite_key<peer_stats_object, member<peer_stats_object, account_object::id_type, &peer_stats_object::voter>, member<peer_stats_object, account_object::id_type, &peer_stats_object::peer> >, composite_key_compare<std::less<account_object::id_type>, std::less<account_object::id_type> > > >, allocator<peer_stats_object> > golos::languages::peer_stats_index

Definition at line 443 of file languages_plugin.hpp.

Enumeration Type Documentation

◆ languages_object_types

Enumerator
language_object_type 
language_stats_object_type 
peer_stats_object_type 
author_language_stats_object_type 

Definition at line 52 of file languages_plugin.hpp.

Function Documentation

◆ get_language() [1/2]

std::string golos::languages::get_language ( const comment_object c)

Definition at line 28 of file languages_plugin.cpp.

◆ get_language() [2/2]

std::string golos::languages::get_language ( const golos::application::comment_api_object c)

Definition at line 44 of file languages_plugin.cpp.