IODA Bundle
ShiftedBitColumnExpression.cc
Go to the documentation of this file.
1
/*
2
* (C) Copyright 1996-2012 ECMWF.
3
*
4
* This software is licensed under the terms of the Apache Licence Version 2.0
5
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
6
* In applying this licence, ECMWF does not waive the privileges and immunities
7
* granted to it by virtue of its status as an intergovernmental organisation nor
8
* does it submit to any jurisdiction.
9
*/
10
11
namespace
odc
{
12
namespace
sql {
13
namespace
expression {
14
/*
15
double ShiftedBitColumnExpression::eval(bool& missing) const
16
{
17
if(value_->second) missing = true;
18
unsigned long x = static_cast<unsigned long>(value_->first);
19
return (x & mask_) >> bitShift_;
20
}
21
22
void ShiftedBitColumnExpression::print(std::ostream& s) const { s << columnName_ << "#" << shift_; }
23
*/
24
25
}
// namespace expression
26
}
// namespace sql
27
}
// namespace odc
28
odc
Definition:
ColumnInfo.h:23
odc
src
odc
ShiftedBitColumnExpression.cc
Generated on Fri Aug 20 2021 11:49:10 for IODA Bundle by
1.9.1