亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? optional.hpp

?? ncbi源碼
?? HPP
字號(hào):
/* * =========================================================================== * PRODUCTION $Log: optional.hpp,v $ * PRODUCTION Revision 1000.1  2004/06/01 18:06:46  gouriano * PRODUCTION PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2 * PRODUCTION * =========================================================================== */#ifndef ALGO_BLAST_API_DEMO___OPTIONAL__HPP#define ALGO_BLAST_API_DEMO___OPTIONAL__HPP/*  $Id: optional.hpp,v 1000.1 2004/06/01 18:06:46 gouriano Exp $ * =========================================================================== * *                            PUBLIC DOMAIN NOTICE *               National Center for Biotechnology Information * *  This software/database is a "United States Government Work" under the *  terms of the United States Copyright Act.  It was written as part of *  the author's official duties as a United States Government employee and *  thus cannot be copyrighted.  This software/database is freely available *  to the public for use. The National Library of Medicine and the U.S. *  Government have not placed any restriction on its use or reproduction. * *  Although all reasonable efforts have been taken to ensure the accuracy *  and reliability of the software and data, the NLM and the U.S. *  Government do not and cannot warrant the performance or results that *  may be obtained by using this software or data. The NLM and the U.S. *  Government disclaim all warranties, express or implied, including *  warranties of performance, merchantability or fitness for any particular *  purpose. * *  Please cite the author in any work or product based on this material. * * =========================================================================== * * Author:  Kevin Bealer * *//// @file optional.hpp/// Optional value idiom for remote_blast.////// Optional value concept (but not the actual code) is from the Boost/// libraries.  Many times in programming, we have the concept of a/// parameter which can either take a value or be omitted.  The/// Optional<> template expresses this idea directly in code, wrapping/// any value type.  Each optional object contains a boolean which is/// set to true if there is a meaningful value present, or false/// otherwise.  Attempts to read a false value will result in an/// assertion.  The presence of the value can be checked.  Also/// provided are functions which return an optional value from a CArgs/// object based on name; CArgs (unlike the C toolkit counterpart)/// preserves the information of whether an option was selected or/// omitted.  This obviates the need for 'sentinel' values, special/// "unreasonable" default values for each parameter, used to detect/// the absence of the parameter.  Optional values semantics are/// important to remote_blast because of the design of the blast4/// (netblast) network protocols.  This design states that the blast4/// server would provide default values for (most) options if a value/// is not specified by the client.  It is therefore important to/// track which optional values are present.#include <corelib/ncbiargs.hpp>BEGIN_NCBI_SCOPE/// Optional template - wrap any value type as an optional value.////// Optional template - any value type may be wrapped as an optional/// value.  If no value has been set, the object is considered invalid/// and will fail an assertion if an attempt is made to read the/// value.  This class also provides a few basic 'logic' operations on/// optional values.template <typename T>class COptional{public:    /// Value constructor - produces a valid (present) object.    ///    /// Copy the value from the value type, set object to valid.    //  @param value The value to set.    COptional(T value)        : m_Value(value),          m_Exists(true)    {    }        /// Copy constructor - copies an existing object.    ///    /// Copy from another optional object.    /// @param other COptional object (valid or not) to copy.    COptional(const COptional<T> & other)        : m_Exists(other.m_Exists)    {        if (m_Exists) {            m_Value = other.m_Value;        }    }        /// Blank constructor - construct an invalid object.    COptional(void)        : m_Exists(false)    {    }        /// Returns true if the value is present/exists.    bool Exists(void) const    {        return m_Exists;    }        /// Returns the value, or throws an assertion (if not valid).    const T & GetValue(void) const    {        _ASSERT(m_Exists);        return m_Value;    }            /// Boolean max() operator - return the max of existing values.    ///    /// If both arguments exist: return the max.  If neither argument    /// exists, returns an invalid object.  Otherwise, one argument    /// exists, so return that object.    ///    /// @param lhs One argument.    /// @param rhs The other argument.    static COptional<T> Max(const COptional<T> & lhs,                            const COptional<T> & rhs);        /// Boolean min() operator - return the min of existing values.    ///    /// If both arguments exist: return the min.  If neither argument    /// exists, returns an invalid object.  Otherwise, one argument    /// exists, so return that object.    ///    /// @param lhs One argument.    /// @param rhs The other argument.    static COptional<T> Min(const COptional<T> & lhs,                            const COptional<T> & rhs);        /// Unary inversion operator - return the inverse of the value.    ///    /// If the argument exists: return ! value().  Otherwise, return    /// an invalid object.    ///    /// @param v The (possibly unset) value.        static COptional<T> Invert(const COptional<T> & v);        /// Assignment operator.    ///    /// Copy the state of another object.  If it exists, copy    /// the value as well.        const COptional<T> & operator= (const COptional<T> & other)    {        if (this != &other) {            m_Exists = other.m_Exists;                                    if (m_Exists) {                m_Value = other.m_Value;            }        }                        return *this;    }        private:    /// The actual value (if m_Exists is true).    T    m_Value;        /// If true, m_Value is meaningful.    bool m_Exists;};using std::string;/// Optional integer.typedef COptional<int>            TOptInteger;/// Optional bool.typedef COptional<bool>           TOptBool;/// Optional double prec float.typedef COptional<double>         TOptDouble;/// Optional string (pointer) value - be sure to delete the actual object.typedef COptional<string> TOptString;/// Optional input stream pointer - be sure to delete the actual object.typedef COptional<CNcbiIstream *> TOptInfile;/// Get existence and value from a boolean program parameter.inline TOptBool CheckArgsBool(const CArgValue & val){    if (val.HasValue()) {        return TOptBool(val.AsBoolean());    } else {        return TOptBool();    }}/// Get existence and value from a double program parameter.inline TOptDouble CheckArgsDouble(const CArgValue & val){    if (val.HasValue()) {        return TOptDouble(val.AsDouble());    } else {        return TOptDouble();    }}/// Get existence and value from an integer program parameter.inline TOptInteger CheckArgsInteger(const CArgValue & val){    if (val.HasValue()) {        return TOptInteger(val.AsInteger());    } else {        return TOptInteger();    }}/// Get existence and value from a string program parameter.inline TOptString CheckArgsString(const CArgValue & val){    if (val.HasValue()) {        return TOptString(val.AsString());    } else {        return TOptString();    }}template <class T>inline COptional<T> COptional<T>::Max(const COptional<T> & lhs,                                      const COptional<T> & rhs){    COptional<T> result;                    if (lhs.m_Exists) {        if (rhs.m_Exists) {            result.m_Exists = true;            result.m_Value = ((lhs.m_Value > rhs.m_Value)                              ? lhs.m_Value                              : rhs.m_Value);        } else {            result = lhs;        }    } else {        if (rhs.m_Exists) {            result = rhs;        }    }                    return result;}template <class T>inline COptional<T> COptional<T>::Min(const COptional<T> & lhs,                                      const COptional<T> & rhs){    COptional<T> result;                    if (lhs.m_Exists) {        if (rhs.m_Exists) {            result.m_Exists = true;            result.m_Value = ((lhs.m_Value < rhs.m_Value)                              ? lhs.m_Value                              : rhs.m_Value);        } else {            result = lhs;        }    } else {        if (rhs.m_Exists) {            result = rhs;        }    }                    return result;}template <class T>inline COptional<T> COptional<T>::Invert(const COptional<T> & v){    COptional<T> result;        if (v.m_Exists) {        result.m_Exists = true;        result.m_Value = ! v.m_Value;    }        return result;}/* * =========================================================================== * * $Log: optional.hpp,v $ * Revision 1000.1  2004/06/01 18:06:46  gouriano * PRODUCTION: UPGRADED [GCC34_MSVC7] Dev-tree R1.2 * * Revision 1.2  2004/05/19 14:52:02  camacho * 1. Added doxygen tags to enable doxygen processing of algo/blast/core * 2. Standardized copyright, CVS $Id string, $Log and rcsid formatting and i *    location * 3. Added use of @todo doxygen keyword * * Revision 1.1  2004/02/18 17:04:41  bealer * - Adapt blast_client code for Remote Blast API, merging code into the *   remote_blast demo application. * * =========================================================================== */END_NCBI_SCOPE#endif // ALGO_BLAST_API_DEMO___OPTIONAL__HPP

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
紧缚奴在线一区二区三区| 国产精品一级片| 久久精品视频在线免费观看| 色婷婷久久久亚洲一区二区三区| 麻豆国产欧美日韩综合精品二区| 国产精品电影一区二区| 日韩免费看的电影| 色婷婷精品大在线视频| 国产九九视频一区二区三区| 亚洲一区二区三区在线看| 久久久久国产免费免费| 欧美三区在线视频| av午夜精品一区二区三区| 麻豆freexxxx性91精品| 亚洲国产视频网站| 国产精品伦理一区二区| 91超碰这里只有精品国产| 91在线国产观看| 国产精品一区二区x88av| 天堂一区二区在线| 亚洲黄色av一区| 一区在线播放视频| 久久九九久久九九| 亚洲午夜在线电影| 久久久精品2019中文字幕之3| 欧美一区二区三区色| 色香蕉成人二区免费| 成人网男人的天堂| 国产成人自拍网| 日本不卡不码高清免费观看| 亚洲成人精品影院| 一区二区三区四区av| 最新日韩av在线| 国产欧美精品一区二区三区四区 | 国产亚洲一二三区| 精品精品欲导航| 91精品国产欧美一区二区成人| 欧美性videosxxxxx| 色域天天综合网| 色婷婷一区二区三区四区| 91在线观看地址| 色综合久久综合中文综合网| www.在线成人| 91小宝寻花一区二区三区| 9i看片成人免费高清| 不卡的av电影在线观看| 成人免费视频一区| eeuss鲁片一区二区三区在线看| 国产.精品.日韩.另类.中文.在线.播放 | 成a人片国产精品| 久久99国产精品久久99果冻传媒| 亚洲韩国精品一区| 亚洲大片精品永久免费| 色哟哟精品一区| 91视视频在线观看入口直接观看www| 粉嫩av亚洲一区二区图片| 国产高清不卡一区| 成人性生交大片免费| aa级大片欧美| 欧美主播一区二区三区美女| 欧美色图第一页| 在线播放国产精品二区一二区四区| 欧美日韩激情一区| 日韩一级成人av| 欧美成人精品3d动漫h| 欧美一级艳片视频免费观看| 欧美成人艳星乳罩| 国产亚洲美州欧州综合国 | 男女性色大片免费观看一区二区| 日韩电影在线免费观看| 日本va欧美va精品| 国产在线精品一区二区不卡了| 国产福利一区在线| 成人av电影免费在线播放| 91久久精品网| 日韩欧美国产一区在线观看| 久久久影院官网| 亚洲免费高清视频在线| 天天操天天综合网| 国产一区二区按摩在线观看| 粉嫩嫩av羞羞动漫久久久| 色妹子一区二区| 日韩亚洲欧美在线| 国产精品久久久久久久岛一牛影视 | 一区二区三区在线影院| 亚洲成人在线免费| 激情小说亚洲一区| 99国产精品99久久久久久| 欧美精品久久99| 日本一区二区三区在线观看| 中文字幕综合网| 蜜臀久久99精品久久久久宅男| 福利一区在线观看| 欧美日韩一区二区三区免费看| 久久在线免费观看| 一区二区免费在线播放| 久久99九九99精品| 日本乱人伦aⅴ精品| 精品国产乱码久久久久久牛牛 | 国产精品高潮呻吟久久| 日韩国产精品久久| 不卡高清视频专区| 欧美tickling挠脚心丨vk| 亚洲日本欧美天堂| 韩国女主播成人在线观看| 日本高清成人免费播放| 精品国产乱码久久久久久免费| 亚洲精品美国一| 国产精品一级在线| 91精品久久久久久蜜臀| 亚洲欧洲精品一区二区精品久久久| 视频在线观看一区二区三区| 99re成人精品视频| 久久久精品国产免大香伊 | 欧美少妇一区二区| 国产欧美在线观看一区| 午夜视频在线观看一区二区三区| 不卡的av电影| 国产三级久久久| 青青草91视频| 欧美日韩精品高清| 一区二区三区四区五区视频在线观看| 国产在线不卡一卡二卡三卡四卡| 欧美亚洲日本国产| 亚洲三级在线看| 成人午夜视频在线观看| 欧美精品一区二区三区视频| 天使萌一区二区三区免费观看| 91免费看`日韩一区二区| 777色狠狠一区二区三区| 亚洲综合成人在线| 91亚洲精品久久久蜜桃网站| 国产精品美女久久久久久久久久久 | 成人久久18免费网站麻豆 | 欧美日韩精品二区第二页| 1024成人网| 丁香天五香天堂综合| 精品国产伦理网| 久久er99精品| 欧美一区二区三区小说| 亚洲图片一区二区| 欧美亚洲动漫制服丝袜| 一个色在线综合| 91官网在线观看| 亚洲国产日韩a在线播放| 91老司机福利 在线| 亚洲天堂中文字幕| 91在线视频免费91| 国产精品丝袜一区| 不卡大黄网站免费看| 亚洲欧洲成人自拍| aaa亚洲精品一二三区| 国产精品嫩草影院com| 成人精品国产福利| 中文字幕一区不卡| 日本韩国视频一区二区| 亚洲国产日韩一级| 欧美日韩国产成人在线免费| 亚洲福利一区二区三区| 欧美日韩日本视频| 日韩中文字幕亚洲一区二区va在线 | 另类中文字幕网| 欧美日韩国产片| 日本中文字幕不卡| 欧日韩精品视频| 五月综合激情婷婷六月色窝| 69堂成人精品免费视频| 国产午夜精品一区二区三区四区 | 久久久99精品久久| 美国一区二区三区在线播放| 色94色欧美sute亚洲线路一ni| 中文在线免费一区三区高中清不卡| 日日摸夜夜添夜夜添精品视频 | 欧美日韩亚洲国产综合| 国产精品久久久久婷婷 | 在线播放国产精品二区一二区四区 | 国产精品不卡视频| 懂色av中文一区二区三区| 精品国产一区二区三区四区四| 免费观看在线色综合| 欧美一区二区三区婷婷月色| 日韩高清欧美激情| 欧美卡1卡2卡| 天天亚洲美女在线视频| 91精品啪在线观看国产60岁| 天堂资源在线中文精品| 欧美人妇做爰xxxⅹ性高电影| 五月天激情小说综合| 欧美日本一区二区在线观看| 亚洲国产成人av网| 3d动漫精品啪啪| 日韩高清不卡一区二区三区| 这里是久久伊人| 精品一区二区三区在线观看国产| 精品福利一区二区三区免费视频| 国产精品一区二区在线观看网站| 国产日韩在线不卡| 91麻豆国产福利在线观看| 一区二区在线观看免费视频播放| 欧美怡红院视频|