#include <node.h>
|
void | data_is_fresh (bool recursive) |
| Emitted when node recieve new topology from remote server. More...
|
|
void | data_is_outdated () |
| assume that server have an updated version of data with (blob_id, blob_modification_time) and initiate sync More...
|
|
|
void | synced () |
| Emitted when node finished network operation. More...
|
|
void | tree_synced () |
| Emitted when node and all its leafs finished synced operation. More...
|
|
void | syncing () |
| Emitted when node or sub-node syncing state changed. More...
|
|
◆ GetDataCallback
◆ Key
◆ Map
◆ SetDataCallback
◆ TopologyUpdatedCallback
◆ Flags
Enumerator |
---|
none | |
data_in | |
data_out | |
topology_in | |
topology_out | |
all | |
◆ Node() [1/2]
ui::task::Node::Node |
( |
Flags |
_flags = Flags::none , |
|
|
QUuid |
_node_id = QUuid::createUuid() |
|
) |
| |
|
explicit |
◆ Node() [2/2]
ui::task::Node::Node |
( |
QString const & |
_type, |
|
|
Flags |
_flags, |
|
|
QUuid |
_node_id = QUuid::createUuid() |
|
) |
| |
|
explicit |
◆ ~Node()
ui::task::Node::~Node |
( |
| ) |
|
◆ abort_network_operation()
void ui::task::Node::abort_network_operation |
( |
| ) |
|
|
private |
◆ add()
void ui::task::Node::add |
( |
Key const & |
key, |
|
|
NodeSP const & |
node |
|
) |
| |
◆ data_download_finished
void ui::task::Node::data_download_finished |
( |
void |
| ) |
|
|
privateslot |
◆ data_is_fresh
void ui::task::Node::data_is_fresh |
( |
bool |
recursive | ) |
|
|
slot |
Emitted when node recieve new topology from remote server.
assume that current node data/topology is fresh and start upload process
References abort_network_operation(), data_out, data_upload_finished(), flags_, get_data_, ui::task::get_utc_timestamp(), ui::task::has_permission(), demo.D060_Folding::jd, extract_by_sidechain_sasa_score::l, leaf(), leafs_, local_modification_time_, ui::task::network_access_manager(), node_id_, parent_, create_a3b_hbs::r, recursive_, reply_, ui::task::server_url(), syncing(), syncing_, topology_out, type_, and cache_trajectory::url.
Referenced by data_upload_finished().
◆ data_is_outdated
void ui::task::Node::data_is_outdated |
( |
| ) |
|
|
slot |
◆ data_upload_finished
void ui::task::Node::data_upload_finished |
( |
void |
| ) |
|
|
privateslot |
subscribe to server update channel. This signal can be used for all, even non-root nodes.
References data_is_fresh(), ui::task::get_retry_interval(), extract_by_sidechain_sasa_score::l, leafs_, local_modification_time_, node_synced(), recursive_, reply_, server_modification_time_, synced(), and syncing_.
Referenced by data_is_fresh().
◆ erase()
bool ui::task::Node::erase |
( |
Node * |
leaf | ) |
|
◆ execute() [1/2]
void ui::task::Node::execute |
( |
QUuid const & |
node_id, |
|
|
std::function< void(Node &) > const & |
f |
|
) |
| |
◆ execute() [2/2]
◆ find()
◆ flags()
Flags ui::task::Node::flags |
( |
| ) |
const |
|
inline |
◆ get_data_callback()
◆ is_syncing()
int ui::task::Node::is_syncing |
( |
bool |
recursive = false | ) |
const |
◆ leaf() [1/2]
NodeSP ui::task::Node::leaf |
( |
int |
i | ) |
const |
◆ leaf() [2/2]
NodeSP ui::task::Node::leaf |
( |
Key const & |
key | ) |
const |
◆ local_modification_time()
TimeStamp ui::task::Node::local_modification_time |
( |
| ) |
const |
|
inline |
◆ node_id()
QUuid ui::task::Node::node_id |
( |
| ) |
const |
|
inline |
◆ node_index()
int ui::task::Node::node_index |
( |
Node * |
node | ) |
|
◆ node_synced()
void ui::task::Node::node_synced |
( |
| ) |
|
|
private |
◆ operator!=()
bool ui::task::Node::operator!= |
( |
Node const & |
r | ) |
const |
|
inline |
◆ operator==()
bool ui::task::Node::operator== |
( |
Node const & |
r | ) |
const |
◆ parent()
Node* ui::task::Node::parent |
( |
| ) |
const |
|
inline |
◆ set_data_callback()
◆ size()
int ui::task::Node::size |
( |
| ) |
const |
|
inline |
◆ synced
void ui::task::Node::synced |
( |
| ) |
|
|
signal |
◆ syncing
void ui::task::Node::syncing |
( |
| ) |
|
|
signal |
◆ topology_updated_callback()
◆ tree_size()
int ui::task::Node::tree_size |
( |
| ) |
const |
◆ tree_synced
void ui::task::Node::tree_synced |
( |
| ) |
|
|
signal |
Emitted when node and all its leafs finished synced operation.
Referenced by node_synced().
◆ type()
QString ui::task::Node::type |
( |
| ) |
const |
|
inline |
◆ update_from_json
void ui::task::Node::update_from_json |
( |
QJsonObject const & |
root, |
|
|
bool |
forced |
|
) |
| |
|
privateslot |
References all, data_in, flags_, ui::task::has_permission(), subloop_histogram::key, extract_by_sidechain_sasa_score::l, leafs_, local_modification_time_, kmeans_adaptive_kernel_density_bb_dependent_rotlib::n, node_id(), kmeans_adaptive_kernel_density_bb_dependent_rotlib::p, server_modification_time_, set_data_, topology_in, topology_updated_, basic::options::OptionKeys::mp::transform::transform, and type().
Referenced by data_download_finished().
◆ operator<<
QDataStream& operator<< |
( |
QDataStream & |
out, |
|
|
Node const & |
n |
|
) |
| |
|
friend |
◆ operator>>
QDataStream& operator>> |
( |
QDataStream & |
in, |
|
|
Node & |
n |
|
) |
| |
|
friend |
◆ _T_outdated_
TimeStamp const ui::task::Node::_T_outdated_ = 1 |
◆ _T_unknown_
TimeStamp const ui::task::Node::_T_unknown_ = 0 |
◆ flags_
◆ get_data_
◆ leafs_
Map ui::task::Node::leafs_ |
|
private |
Referenced by add(), data_is_fresh(), data_upload_finished(), erase(), execute(), find(), is_syncing(), leaf(), node_index(), operator==(), size(), tree_size(), and update_from_json().
◆ local_modification_time_
◆ node_id_
QUuid ui::task::Node::node_id_ |
|
private |
◆ parent_
Node* ui::task::Node::parent_ = nullptr |
|
private |
◆ recursive_
bool ui::task::Node::recursive_ |
|
private |
◆ reply_
QPointer<QNetworkReply> ui::task::Node::reply_ |
|
private |
◆ server_modification_time_
◆ set_data_
◆ syncing_
bool ui::task::Node::syncing_ = false |
|
private |
◆ topology_updated_
◆ type_
QString ui::task::Node::type_ |
|
private |
The documentation for this class was generated from the following files: