ztsdb
Public Member Functions | List of all members
arr::zts Struct Reference

Public Member Functions

 zts (rsv_t, const Vector< idx_type > &dim_p, const std::vector< Vector< zstring >> cnames=std::vector< Vector< zstring >>())
 
 zts (const Vector< idx_type > &dim_p, const Vector< Global::dtime > &tidx_p, const Vector< double > &v_p, const std::vector< Vector< zstring >> cnames=std::vector< Vector< zstring >>(), std::unique_ptr< AllocFactory > &&allocf_a=std::make_unique< FlexAllocFactory >(), std::unique_ptr< AllocFactory > &&allocf_idx=std::make_unique< FlexAllocFactory >())
 
 zts (Array< Global::dtime > tidx_p, Array< double > a_p, std::unique_ptr< AllocFactory > &&allocf_a=std::make_unique< FlexAllocFactory >(), std::unique_ptr< AllocFactory > &&allocf_idx=std::make_unique< FlexAllocFactory >())
 
 zts (std::unique_ptr< AllocFactory > &&allocf_a, std::unique_ptr< AllocFactory > &&allocf_idx)
 
 zts (const zts &z, std::unique_ptr< AllocFactory > &&allocf_a=std::make_unique< FlexAllocFactory >(), std::unique_ptr< AllocFactory > &&allocf_idx=std::make_unique< FlexAllocFactory >())
 
 zts (zts &&z)
 
const Array< double > & getArray () const
 
const Array< Global::dtime > & getIndex () const
 
std::shared_ptr< Array< double > > & getArrayPtr () const
 
std::shared_ptr< Array< Global::dtime > > & getIndexPtr () const
 
bool operator== (const zts &o) const
 
const Vector< idx_type > & getdim () const
 
const idx_type getdim (idx_type d) const
 
const idx_type size () const
 
const Vector< double > & getcol (idx_type i) const
 
fsys::path getAllocfDirname () const
 
void msync (bool async) const
 
ztsappend (const char *buf, size_t buflen, size_t &offset)
 
ztsappendVector (const char *buf, size_t buflen)
 
Global::buflen_pair to_buffer (size_t offset=0) const
 
ztsaddprefix (const string &prefix, idx_type d)
 
ztsresize (idx_type d, idx_type sz, idx_type from=0)
 
template<typename INDEX >
zts operator() (const vector< INDEX > &i, bool drop=true) const
 Complex subsetting.
 
template<typename INDEX , typename U >
ztsoperator() (const vector< INDEX > &i, const Array< U > &u)
 subassign an array.
 
template<typename INDEX , typename U >
ztsoperator() (const vector< INDEX > &i, U u)
 subassign a scalar.
 
zts subsetRows (idx_type from, idx_type to, bool dummy=false) const
 
template<class F >
ztsapplyf (F f)
 Apply a function on every element of the array.
 
ztsabind (const zts &z, idx_type d, const string &prefix="")
 
ztsabind (const Array< double > &u, idx_type d, const string &prefix="")
 
bool isPersistent () const
 

Member Function Documentation

◆ appendVector()

arr::zts & arr::zts::appendVector ( const char *  buf,
size_t  buflen 
)

LLL, yes, we do!!!

◆ getArrayPtr()

std::shared_ptr<Array<double> >& arr::zts::getArrayPtr ( ) const
inline

Get the underlying shared_ptr to the index. This should be used only in very few and specific cases. One in particular is making a copy on write pointer to the index.

◆ getIndexPtr()

std::shared_ptr<Array<Global::dtime> >& arr::zts::getIndexPtr ( ) const
inline

Get the underlying shared_ptr to the array. This should be used only in very few and specific cases. One in particular is making a copy on write pointer to the array.

◆ subsetRows()

arr::zts arr::zts::subsetRows ( arr::idx_type  from,
arr::idx_type  to,
bool  dummy = false 
) const

subset with a row range. The dummy argument allows templating together with array::subsetRows.


The documentation for this struct was generated from the following files: