#include <DynamicRelations.H>
Public Member Functions | |
void | insert (const TDynamicFactorRelation &x) |
int | monitoredSize () |
int | size_active () const |
int | size_passive () const |
size_t | size () const |
const int | operator[] (const int i) |
Private Attributes | |
CMutex | monitor_mutex |
CMutex | SLP_mutex |
vector< int > | DynamicFactorList |
int | size_active_SLP |
int | size_passive_SLP |
Friends | |
class | Cprocess_clients |
void | fillin_streampos (TDynamicFactorRelation &x) |
bool | is_dynamic_factor (const int number) |
bool | is_dynamic_factor (TDynamicFactorRelation &FaRelSearch) |
Definition at line 123 of file DynamicRelations.H.
void CServerDynamicFactorRelations::insert | ( | const TDynamicFactorRelation & | x | ) | [inline] |
Reimplemented from std::set< TDynamicFactorRelation, TDynamicFactorRelation >.
Definition at line 131 of file DynamicRelations.H.
References cerr, DynamicFactorList, endl(), exit(), TDynamicFactorRelation::factor, std::set< TDynamicFactorRelation, TDynamicFactorRelation >::insert(), CMutex::lock(), monitor_mutex, TDynamicFactorRelation::sieveable(), size_active_SLP, size_passive_SLP, SLP_mutex, and CMutex::unlock().
Referenced by CClientDynamicFactorFetcher::fetch(), main(), Cprocess_clients::process_data_stream(), and SpecialRelations::split_by_primefactor().
int CServerDynamicFactorRelations::monitoredSize | ( | ) | [inline] |
Definition at line 158 of file DynamicRelations.H.
References DynamicFactorList, CMutex::lock(), monitor_mutex, and CMutex::unlock().
Referenced by Cprocess_clients::process_data_stream().
int CServerDynamicFactorRelations::size_active | ( | ) | const [inline] |
Definition at line 165 of file DynamicRelations.H.
References size_active_SLP.
Referenced by statistical_data::StatusReport(), and statistical_data::XML_StatusReport().
int CServerDynamicFactorRelations::size_passive | ( | ) | const [inline] |
Definition at line 166 of file DynamicRelations.H.
References size_passive_SLP.
Referenced by statistical_data::StatusReport(), and statistical_data::XML_StatusReport().
size_t CServerDynamicFactorRelations::size | ( | ) | const [inline] |
Reimplemented from std::set< TDynamicFactorRelation, TDynamicFactorRelation >.
Definition at line 167 of file DynamicRelations.H.
References std::set< TDynamicFactorRelation, TDynamicFactorRelation >::size().
Referenced by statistical_data::StatusReport(), and statistical_data::XML_StatusReport().
const int CServerDynamicFactorRelations::operator[] | ( | const int | i | ) | [inline] |
Definition at line 168 of file DynamicRelations.H.
References DynamicFactorList, CMutex::lock(), monitor_mutex, and CMutex::unlock().
friend class Cprocess_clients [friend] |
Definition at line 178 of file DynamicRelations.H.
void fillin_streampos | ( | TDynamicFactorRelation & | x | ) | [friend] |
Definition at line 188 of file DynamicRelations.H.
bool is_dynamic_factor | ( | const int | number | ) | [friend] |
Definition at line 200 of file DynamicRelations.H.
bool is_dynamic_factor | ( | TDynamicFactorRelation & | FaRelSearch | ) | [friend] |
Definition at line 215 of file DynamicRelations.H.
CMutex CServerDynamicFactorRelations::monitor_mutex [mutable, private] |
Definition at line 126 of file DynamicRelations.H.
Referenced by insert(), monitoredSize(), and operator[]().
CMutex CServerDynamicFactorRelations::SLP_mutex [mutable, private] |
Definition at line 126 of file DynamicRelations.H.
Referenced by insert(), and Cprocess_clients::process_data_stream().
vector<int> CServerDynamicFactorRelations::DynamicFactorList [private] |
Definition at line 127 of file DynamicRelations.H.
Referenced by insert(), monitoredSize(), and operator[]().
int CServerDynamicFactorRelations::size_active_SLP [private] |
int CServerDynamicFactorRelations::size_passive_SLP [private] |