47 "number of dataset members does not match number of fields: "
125 auto fr = std::dynamic_pointer_cast<URange<FieldID>>(
mFields);
126 for(
auto fi =
fr->begin();
fi !=
fr->end(); ++
fi){
127 fields[
fi.lex()] = (*fi).second.c_str();
133 CXZ_ASSERT(
err >= 0,
"error while initialzing table: error code = " <<
err);
142 CXZ_ASSERT(
err >= 0,
"error while appending record to table: error code = " <<
err);
159 auto fi = std::make_shared<CIndex>(
mFields);
174 auto fi = std::make_shared<CIndex>(
mFields);
197 auto i = std::make_shared<CIndex>(
mFields);
204 std::function<
DType(
const char*)>
of;
210 [](
const char*
d){
const int8_t x = *
reinterpret_cast<const int8_t*
>(
d);
return DType(
static_cast<Int>(x)); } :
239 of = [](
const char*
d){
const float x = *
reinterpret_cast<const float*
>(
d);
return DType(
static_cast<Double>(x)); };
243 of = [](
const char*
d){
const double x = *
reinterpret_cast<const double*
>(
d);
return DType(
static_cast<Double>(x)); };
#define CXZ_ERROR(errmsg)
#define CXZ_ASSERT(statement, errmsg)
virtual const T * data() const override
virtual bool ro() const =0
virtual String path() const =0
const ContentBase * mParent
virtual String filename() const =0
Table & readRecords(SizeT pos, SizeT n, char *data)
MArray< DType > read() const
const RangePtr & records() const
virtual Table & close() override final
virtual ContentType type() const override final
const RangePtr & fields() const
Table & initTable(SizeT n, const void *data, SizeT dsize, SizeT chunk_size)
virtual Table & open() override final
Table & appendRecords(SizeT n, const void *data)
virtual bool exists() const override final
Table(const String &name, const ContentBase *_parent)
virtual String filename() const override final
MArray< DType > readRecord(SizeT pos) const
virtual String path() const override final
Table & initFieldNames(const Vector< String > &fnames)
MArray< std::function< DType(const char *)> mInterpret)
virtual bool ro() const override final
Sptr< RangeBase > RangePtr
std::vector< T, Allocator< T > > Vector
decltype(auto) xpr(const Sptr< I > &i)
Sptr< Range > rangeCast(const RangePtr r)
constexpr decltype(auto) operation(F &&f, const Ops &... ops)