示例#1
0
CConstRef<CSeq_loc> CSeqTableColumnInfo::GetSeq_loc(size_t row,
                                                    bool force) const
{
    CConstRef<CSeq_loc> ret = m_Column->GetSeq_loc(row);
    if ( !ret && force ) {
        x_ThrowUnsetValue();
    }
    return ret;
}
示例#2
0
const string* CSeqTableColumnInfo::GetStringPtr(size_t row,
                                                bool force) const
{
    const string* ret = m_Column->GetStringPtr(row);
    if ( !ret && force ) {
        x_ThrowUnsetValue();
    }
    return ret;
}
示例#3
0
const vector<char>* CSeqTableColumnInfo::GetBytesPtr(size_t row,
                                                     bool force) const
{
    const vector<char>* ret = m_Column->GetBytesPtr(row);
    if ( !ret && force ) {
        x_ThrowUnsetValue();
    }
    return ret;
}
 bool GetInt(size_t row, int& v, bool force = false) const
     {
         return m_Column->TryGetInt(row, v) ||
             (force && x_ThrowUnsetValue());
     }
 bool GetReal(size_t row, double& v, bool force = false) const
     {
         return m_Column->TryGetReal(row, v) ||
             (force && x_ThrowUnsetValue());
     }