A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/misc_8hpp_source.html below:

NCBI C++ ToolKit: include/objtools/pubseq_gateway/client/impl/misc.hpp Source File

1 #ifndef OBJTOOLS__PUBSEQ_GATEWAY__CLIENT__IMPL__MISC__HPP 2 #define OBJTOOLS__PUBSEQ_GATEWAY__CLIENT__IMPL__MISC__HPP 35 #include <condition_variable> 48 #if defined(HAVE_PSG_CLIENT) 58 template

<

typename

TType =

void

>

65  template

<

class

... TArgs>

74  using clock

= chrono::system_clock;

84  template

<

typename

T =

bool

>

87

constexpr

auto

kWait = chrono::milliseconds(100);

91  const auto max

= clock::now() + kWait;

109  unsigned int

nanoseconds;

112  const auto

ns = chrono::duration_cast<clock::duration>(chrono::nanoseconds(nanoseconds));

113  return

clock::from_time_t(seconds) + ns;

116  template

<

class

... TArgs>

121  if

(!

x_CvWait

(lock, std::forward<TArgs>(args)...))

return false

;

156 template

<

class

TValue>

172  if

(

auto

locked = this->

GetLock

()) {

173  if

(!locked->empty()) {

174  value

= std::move(locked->front());

209 template

<

class

TParam>

212  using TValue

=

typename

TParam::TValueType;

214  template

<

class

TDescription>

221  " was increased to the minimum allowed value ('"

<<

sm_MinValue

<<

"')"

);

232 template

<

class

TParam>

235  using TValue

=

typename

TParam::TValueType;

239  template

<

class

TDescription>

245  template

<

typename

T>

251

TParam::SetDefault(

static_cast<TValue>

(

value

));

260  template

<

typename

T>

263  bool

sourcing_complete;

264  typename

TParam::EParamSource param_source;

265

TParam::GetDefault();

266

TParam::GetState(&sourcing_complete, &param_source);

268  if

(sourcing_complete && (param_source == TParam::eSource_Default)) {

279  template

<

class

TDescription>

284 template

<

class

TParam>

287  using TValue

=

typename

TParam::TValueType;

303 #define PSG_PARAM_TYPE(section, name) SPSG_Param<NCBI_PARAM_TYPE(section, name)> 304 #define PSG_PARAM_VALUE_TYPE(section, name) SPSG_ParamValue<NCBI_PARAM_TYPE(section, name)> 306 #define PSG_PARAM_VALUE_DECL_MIN(type, section, name) \ 307  NCBI_PARAM_DECL(type, section, name); \ 309  struct PSG_PARAM_TYPE(section, name)::SAdjust : SPSG_ParamMin<NCBI_PARAM_TYPE(section, name)> {} 311 #define PSG_PARAM_VALUE_DEF_MIN(type, section, name, default_value, min_value) \ 312  NCBI_PARAM_DEF(type, section, name, default_value); \ 313  template <> PSG_PARAM_TYPE(section, name)::TValue SPSG_ParamMin<NCBI_PARAM_TYPE(section, name)>::sm_MinValue = min_value

static void SetTestIdentity(const string &identity)

static shared_ptr< CPSG_Request > CreateRawRequest(string abs_path_ref, shared_ptr< void > user_context, CRef< CRequestContext > request_context)

static const CPSG_BlobId * GetRawResponseBlobId(const shared_ptr< CPSG_BlobData > &blob_data)

static int GetReplyHttpCode(const shared_ptr< CPSG_Reply > &reply)

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

void Warning(CExceptionArgs_Base &args)

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

bool IsInfinite(void) const

Check if the deadline is infinite.

void GetExpirationTime(time_t *sec, unsigned int *nanosec) const

Get the number of seconds and nanoseconds (since 1/1/1970).

@ eInfinite

Infinite deadline.

NCBI_PARAM_TYPE(PSG, throttle_by_connection_error_rate) TPSG_ThrottleThreshold

#define PSG_PARAM_VALUE_DECL_MIN(type, section, name)

NCBI_PARAM_ENUM_DECL(EPSG_DebugPrintout, PSG, debug_printout)

NCBI_PARAM_DECL(unsigned, PSG, rd_buf_size)

typedef NCBI_PARAM_TYPE(PSG, request_timeout) TPSG_RequestTimeout

NCBI_PARAM_TYPE(PSG, service) TPSG_Service

#define PSG_PARAM_VALUE_TYPE(section, name)

#define PSG_PARAM_TYPE(section, name)

NCBI_PARAM_TYPE(PSG, throttle_relaxation_period) TPSG_ThrottlePeriod

chrono::system_clock::time_point time_point

const GenericPointer< typename T::ValueType > T2 value

Defines: CTimeFormat - storage class for time format.

static SLJIT_INLINE sljit_ins l(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)

const atomic_bool & Stopped() const

bool Pop(TValue &value, const CDeadline &deadline=CDeadline::eInfinite)

bool x_CvWait(unique_lock< mutex > &l)

void NotifyOne() volatile

bool x_WaitUntil(const volatile atomic< T > &a, const CDeadline &deadline, T v=false, bool rv=false)

SPSG_CV & GetThis() volatile

chrono::system_clock clock

bool x_Wait(TArgs &&... args)

static clock::time_point x_GetTP(const CDeadline &d)

void NotifyAll() volatile

bool x_CvWait(unique_lock< mutex > &l, const clock::time_point &t)

bool WaitUntil(TArgs &&... args) volatile

bool x_WaitUntil(const CDeadline &deadline)

typename TParam::TValueType TValue

static TValue sm_MinValue

static TValue Do(TValue value, const TDescription &desc)

SPSG_ParamValue(TValue value)

SPSG_ParamValue(function< TValue(TValue)> adjust)

SPSG_ParamValue(EGetDefault)

typename TParam::TValueType TValue

static TValue Do(TValue value, const TDescription &)

static const auto & GetParamDescription()

static TValue GetDefault()

static void SetImplicitDefault(const T &value)

static void SetDefault(const T &value)

typename TParam::TValueType TValue

static const auto & GetParamDescription(const CParam< TDescription > *)

static void SetDefault(const string &value)

SLock< deque< TValue > > GetLock()


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4