ztsdb
Classes | Typedefs | Enumerations | Functions | Variables
val Namespace Reference

Contains the types that constitute the output of an evaluation by the interpreter. More...

Classes

struct  getelttype
 
struct  getelttype< vt_bool >
 
struct  getelttype< vt_double >
 
struct  getelttype< vt_duration >
 
struct  getelttype< vt_interval >
 
struct  getelttype< vt_period >
 
struct  getelttype< vt_string >
 
struct  getelttype< vt_time >
 
struct  gettype
 Mapping from ValType to type. More...
 
struct  gettype< vt_bool >
 
struct  gettype< vt_double >
 
struct  gettype< vt_duration >
 
struct  gettype< vt_interval >
 
struct  gettype< vt_list >
 
struct  gettype< vt_null >
 
struct  gettype< vt_period >
 
struct  gettype< vt_string >
 
struct  gettype< vt_time >
 
struct  gettype< vt_zts >
 
struct  rmptr
 
struct  rmptr< SpVAB >
 
struct  rmptr< SpVAD >
 
struct  rmptr< SpVADT >
 
struct  rmptr< SpVADUR >
 
struct  rmptr< SpVAIVL >
 
struct  rmptr< SpVAPRD >
 
struct  rmptr< SpVAS >
 
struct  rmptr< SpVList >
 
struct  rmptr< SpZts >
 
struct  SizeOf
 
struct  to_string_v
 
struct  ToString
 
struct  Typeof
 
struct  VClos
 
struct  VCode
 Code value. This type contains code (as a result). More...
 
struct  VConn
 
struct  VError
 
struct  VFuture
 
struct  VList
 
struct  VNamed
 
struct  VNull
 
struct  VPtr
 
struct  VTimer
 

Typedefs

typedef Vector< size_t > VI
 
typedef std::shared_ptr< VISpVI
 
typedef Array< double > VArrayD
 
typedef Array< zstringVArrayS
 
typedef Array< bool > VArrayB
 
typedef Array< Global::dtime > VArrayDT
 
typedef Array< tz::intervalVArrayIVL
 
typedef Array< Global::duration > VArrayDUR
 
typedef Array< tz::periodVArrayPRD
 
typedef cow_ptr< VArrayDSpVAD
 
typedef cow_ptr< VArraySSpVAS
 
typedef cow_ptr< VArrayBSpVAB
 
typedef cow_ptr< VArrayDTSpVADT
 
typedef cow_ptr< VArrayDURSpVADUR
 
typedef cow_ptr< VArrayIVLSpVAIVL
 
typedef cow_ptr< VArrayPRDSpVAPRD
 
typedef cow_ptr< ztsSpZts
 
typedef cow_ptr< VListSpVList
 
typedef shared_ptr< VFutureSpFuture
 
typedef shared_ptr< VTimerSpTimer
 
typedef shared_ptr< VBuiltinGSpBuiltin
 
typedef shared_ptr< VConnSpConn
 
typedef int64_t integer_t
 
typedef Variant< std::string,SpVI,SpVAD,SpVAB,SpVADT,SpVADUR,SpVAIVL,SpVAPRD,SpVAS,SpZts,SpVList,VNull,recursive_wrapper< VCode >,std::shared_ptr< VClos >,SpBuiltin,SpFuture,VConn,SpTimer,recursive_wrapper< VNamed >,VError,recursive_wrapper< VPtr > > Value
 

Enumerations

enum  ValType {
  vt_std_string, vt_std_int, vt_double, vt_bool,
  vt_time, vt_duration, vt_interval, vt_period,
  vt_string, vt_zts, vt_list, vt_null,
  vt_code, vt_clos, vt_builting, vt_future,
  vt_connection, vt_timer, vt_named, vt_error,
  vt_ptr
}
 

Functions

template<typename T >
string to_string (T t, const cfg::CfgMap &cfg)
 
string to_string (const VCode &v, const cfg::CfgMap &cfg)
 
string to_string (const std::shared_ptr< VClos > &v, const cfg::CfgMap &cfg)
 
string to_string (const VClos &v, const cfg::CfgMap &cfg=cfg::cfgmap)
 
string to_string (const VNull &v, const cfg::CfgMap &cfg)
 
string to_string (const std::shared_ptr< VBuiltinG > &v, const cfg::CfgMap &cfg)
 
string to_string (const SpFuture &v, const cfg::CfgMap &cfg)
 
string to_string (const VNamed &v, const cfg::CfgMap &cfg)
 
string to_string (const VConn &conn, const cfg::CfgMap &cfg)
 
string to_string (const SpTimer &v, const cfg::CfgMap &cfg)
 
string to_string (const VList &l, const cfg::CfgMap &cfg)
 
string to_string (const SpVList &l, const cfg::CfgMap &cfg)
 
string to_string (double d, const cfg::CfgMap &cfg)
 
string to_string (bool, const cfg::CfgMap &cfg)
 
string to_string (const arr::zts &ts, const cfg::CfgMap &cfg)
 
string to_string (const SpZts &ts, const cfg::CfgMap &cfg)
 
string to_string (Global::dtime dt, const cfg::CfgMap &cfg, bool unquoted=false)
 
string to_string (Global::dtime::duration d, const cfg::CfgMap &cfg)
 
string to_string (tz::interval i, const cfg::CfgMap &cfg)
 
string to_string (tz::period p, const cfg::CfgMap &cfg)
 
string to_string (const string &s, const cfg::CfgMap &cfg, bool unquoted=false)
 
string to_string (const val::integer_t &s, const cfg::CfgMap &cfg)
 
string to_string (const val::SpVI &s, const cfg::CfgMap &cfg)
 
string to_string (const arr::zstring &s, const cfg::CfgMap &cfg, bool unquoted=false)
 
string to_string (const VError &e, const cfg::CfgMap &cfg)
 
string to_string (const VPtr &p, const cfg::CfgMap &cfg)
 
template<typename T >
Vector< zstringvectorToString (const Vector< T > &v, const cfg::CfgMap &cfg)
 
template<>
Vector< zstringvectorToString (const Vector< double > &v, const cfg::CfgMap &cfg)
 
template<>
Vector< zstringvectorToString (const Vector< Global::dtime > &v, const cfg::CfgMap &cfg)
 
template<>
Vector< zstringvectorToString (const Vector< tz::interval > &v, const cfg::CfgMap &cfg)
 
template<>
Vector< zstringvectorToString (const Vector< tz::period > &v, const cfg::CfgMap &cfg)
 
template<typename T >
Array< zstringarrayToString (const Array< T > &a, const cfg::CfgMap &cfg)
 
template<>
Array< zstringarrayToString (const Array< double > &a, const cfg::CfgMap &cfg)
 
template<>
Array< zstringarrayToString (const Array< Global::dtime > &a, const cfg::CfgMap &cfg)
 
template<>
Array< zstringarrayToString (const Array< tz::interval > &a, const cfg::CfgMap &cfg)
 
template<>
Array< zstringarrayToString (const Array< tz::period > &a, const cfg::CfgMap &cfg)
 
template<typename T >
Vector< zstringgetDimnames (const Array< T > &a, idx_type d, idx_type n, const string &prefix="", const string &postfix="")
 
Vector< zstringgetVectorLineNumbers (idx_type n, idx_type ncols)
 
vector< unsigned > getLengths (const Vector< zstring > vs)
 
template<typename T >
string displayVector (const Array< T > &a_p, const cfg::CfgMap &cfg)
 
vector< IndexgetFirstVIndex (const arr::Vector< idx_type > &dim, idx_type maxrows)
 
bool getNextVIndex (vector< Index > &i, const arr::Vector< idx_type > &dim)
 
string displaySliceHeader (const vector< Index > &ii, const vector< unique_ptr< Dname >> &names)
 
template<typename T , typename R >
string displaySlice (const Array< T > &slice, const Vector< R > &rownames_c, const cfg::CfgMap &cfg, idx_type &nleft)
 
template<typename R >
string displaySliceWithZeros (const vector< Index > &i, const arr::Vector< idx_type > &dim, const vector< unique_ptr< Dname >> &names, const Vector< R > &rownames_c, const cfg::CfgMap &cfg, idx_type &nleft)
 
template<typename T , typename R >
string display (const Array< T > &a, const Vector< R > &rownames, const cfg::CfgMap &cfg, size_t &left)
 
string display (const SpVList &l, const cfg::CfgMap &cfg, string prefix, size_t &left)
 
template<typename T >
const string to_string (const Array< T > &v, const cfg::CfgMap &cfg)
 
template<typename T >
const string to_string (const cow_ptr< Array< T >> &v, const cfg::CfgMap &cfg)
 
string to_string (const val::Value &v, const cfg::CfgMap &cfg=cfg::cfgmap)
 
string display (const val::Value &v)
 
string str (const val::Value &v, const cfg::CfgMap &cfg, std::string prefix="")
 
template<typename T >
string str (const T &v, const cfg::CfgMap &cfg, std::string prefix)
 
template<>
string str (const val::VList &vl, const cfg::CfgMap &cfg, std::string prefix)
 
template<>
string str (const arr::zts &z, const cfg::CfgMap &cfg, std::string prefix)
 
template<>
string str (const val::VClos &vl, const cfg::CfgMap &cfg, std::string prefix)
 
template<class UnaryPredicate >
bool any_of (const val::Value &v, UnaryPredicate p)
 
bool operator== (const VNamed &p1, const VNamed &p2)
 
bool operator== (const VNull &p1, const VNull &p2)
 
bool operator== (const VFuture &p1, const VFuture &p2)
 
bool operator== (const SpVList &p1, const SpVList &p2)
 
bool operator== (const VError &p1, const VError &p2)
 
bool operator== (const VCode &p1, const VCode &p2)
 
bool operator== (const VClos &p1, const VClos &p2)
 
bool operator== (const VConn &p1, const VConn &p2)
 
bool operator== (const VTimer &p1, const VTimer &p2)
 
bool operator== (const VBuiltinG &p1, const VBuiltinG &p2)
 
bool operator== (const VPtr &p1, const VPtr &p2)
 
size_t size (const val::Value &v)
 
template<typename T >
arr::cow_ptr< arr::Array< T > > make_array (const T &t)
 Build a one dimensional 'Array' with one element and no names. (put it in one location LLL)
 
template<typename T >
get_scalar (const Value &v)
 
void setTmp (Value &v)
 
void resetTmp (Value &v)
 
void setConst (Value &v)
 
void setLast (Value &v)
 
void setLock (Value &v)
 
void resetLock (Value &v)
 
void setRef (Value &v)
 
void resetRef (Value &v)
 
bool isLocked (const Value &v)
 
bool isRef (const Value &v)
 
bool isTmp (const Value &v)
 
bool isConst (const Value &v)
 

Variables

const idx_type MAXIDX = std::numeric_limits<idx_type>::max()
 
const map< int, string > vt_to_string
 

Detailed Description

Contains the types that constitute the output of an evaluation by the interpreter.

Variable Documentation

◆ vt_to_string

const map<int, string> val::vt_to_string
Initial value:
= {
{0, "encode_std_string"},
{1, "encode_std_int"},
{2, "double"},
{3, "logical"},
{4, "datetime"},
{5, "duration"},
{6, "interval"},
{7, "period"},
{8, "string"},
{9, "zts"},
{10, "list"},
{11, "NULL"},
{12, "expression"},
{13, "closure"},
{14, "builtin"},
{15, "future"},
{16, "connection"},
{17, "timer"},
{18, "named"},
{19, "error"},
{20, "vptr"}
}