Zen
A cross-platform functional programming language
Classes | Functions

z Namespace Reference

Namespace to hold all types intrinsic within zen. More...

Classes

class  date
 Intrinsic date type. More...
class  time
 Intrinsic time type. More...
class  datetime
 Intrinsic datetime type. More...
class  string
 Intrinsic string type. More...
class  sharedptr
 Shared pointer type. More...
class  autoptr
 Auto pointer type. More...
class  scopedptr
 Auto pointer type. More...
class  owner
 Intrinsic owner type. More...
class  holder
 Intrinsic holder type. More...
class  iteratorbase
 base of all iterators More...
class  iteratorbaseL
 base of all list iterators More...
class  iteratorbaseD
 base of all dict iterators More...
class  containerbase
 base of all container classes More...
class  listbase
 base of all lists More...
class  list
 Intrinsic list type. More...
class  set
 Intrinsic set type. More...
class  stack
 Intrinsic stack type. More...
class  queue
 Intrinsic queue type. More...
class  dictbase
 base class for all dicts More...
class  dict
 Intrinsic dict type. More...
class  tree
 Intrinsic tree type. More...
class  stringset
 Intrinsic stringset type. More...
class  stringlist
 Intrinsic stringlist type. More...
class  buffer
 Intrinsic buffer type. More...
class  fileinfo
 Intrinsic fileinfo type. More...
class  file
 Intrinsic file type. More...
class  stream
 Abstract stream type. More...
class  filestream
 Intrinsic filestream type. More...
class  stringstream
 Intrinsic stringstream type. More...
class  nullstream
 Intrinsic null stream type. More...
class  end
 Exception end. More...
class  exception
 Intrinsic exception type. More...
class  application
 Intrinsic application type. More...
class  process
 Intrinsic process type. More...
class  timer
 Intrinsic timer type. More...
class  mutex
 Intrinsic mutex type. More...
class  mutexlocker
 Intrinsic mutex locker type. More...
class  database
 Intrinsic database type. More...
class  transaction
 Intrinsic transaction type. More...
class  statement
 SQL query statement. More...
class  data
 Intrinsic data type. More...
class  qexpr
 Intrinsic query expression type. More...
class  qvisitorT
 Abstract base class for query expression visitor. More...
class  qconstant
 Intrinsic query constant type. More...
class  qstring
 Intrinsic query string type. More...
class  qid
 Intrinsic query id type. More...
class  qint
 Intrinsic query int type. More...
class  qval
 Intrinsic query val type. More...
class  qbinary
 Query expression binary operator type. More...
class  qnot
 Query expression binary not type. More...
class  qpair
 Query expression pair. More...
class  query
 Intrinsic query type. More...
class  result
 Intrinsic query result type. More...
class  store
 Intrinsic store type. More...
class  any
 Intrinsic any (variant) type. More...
class  key
 Intrinsic key type. More...
class  property
 Intrinsic gui property type. More...
class  widget
 Intrinsic gui widget type. More...
class  view
 Intrinsic gui view type. More...

Functions

z::string operator+ (const char *src, const z::string &dst)
 Add char* string to string.
QDebug operator<< (QDebug db, const z::string &ss)
 Write string to debug stream.
uint qHash (const z::string &key)
 Return hash of a string.
uint qHash (const double &key)
 Return hash of a double.
z::streamoperator<< (z::stream &ss, const int &val)
 Write a int value to a stream.
z::streamoperator<< (z::stream &ss, const char *val)
 Write a string value to a stream.
z::streamoperator<< (z::stream &ss, const QString &val)
 Write a string value to a stream.
z::streamoperator<< (z::stream &ss, const z::string &val)
 Write a string value to a stream.
template<typename derT , typename listT , typename iterT , typename V >
z::streamoperator<< (z::stream &ss, const z::listbase< derT, listT, iterT, V > &val)
 streamers for list
template<typename derT , typename K , typename V >
z::streamoperator<< (z::stream &ss, const z::dictbase< derT, K, V > &val)
 streamers for dictionary
z::streamoperator<< (z::stream &ss, const z::end &e)
 Writes EOL to a stream.
z::streamoperator<< (z::stream &ss, const z::qid &val)
 Write an any value to a stream.
uint qHash (const z::qid &key)
 Returns the hash of an id.
template<typename T >
QVariant getQVar (const T &v)
 Set the value of a QVariant with any type.
z::any getVar (const QVariant &v)
 Convert a QVariant to an any type.
template<>
QVariant getQVar (const z::string &v)
 Set the value of a QVariant with a string.
z::streamoperator<< (z::stream &ss, const z::any &val)
 Write an any value to a stream.
bool operator< (const key &lhs, const key &rhs)
 Compare two any instances.
uint getTypeHash (const z::string &name, const int64 &p)
 Get the hash of a type.
z::streamoperator<< (z::stream &ss, const z::key &val)
 Write an key value to a stream.

Detailed Description

Namespace to hold all types intrinsic within zen.


Function Documentation

QVariant z::getQVar ( const T &  v) [inline]

Set the value of a QVariant with any type.

Parameters:
vThe value to set
Returns:
The QVariant instance
QVariant z::getQVar ( const z::string v) [inline]

Set the value of a QVariant with a string.

Parameters:
vThe string to set
Returns:
The QVariant instance
uint z::getTypeHash ( const z::string name,
const int64 p 
) [inline]

Get the hash of a type.

Parameters:
nameThe name of a type
pA unique number
Returns:
The hash value
z::any getVar ( const QVariant &  v) [inline]

Convert a QVariant to an any type.

Parameters:
vThe QVariant type to convert
Returns:
The any type
z::string z::operator+ ( const char *  src,
const z::string dst 
) [inline]

Add char* string to string.

Parameters:
srcThe LHS string
dstThe RHS string
Returns:
A concatenation of the two strings
bool z::operator< ( const key &  lhs,
const key &  rhs 
) [inline]

Compare two any instances.

Parameters:
lhsThe LHS to compare
rhsThe RHS to compare
Returns:
True if lhs is less than rhs, else false
z::stream& z::operator<< ( z::stream ss,
const char *  val 
) [inline]

Write a string value to a stream.

Parameters:
ssOutput stream
valThe value to write
Returns:
Stream instance
z::stream& z::operator<< ( z::stream ss,
const QString &  val 
) [inline]

Write a string value to a stream.

Parameters:
ssOutput stream
valThe value to write
Returns:
Stream instance
QDebug z::operator<< ( QDebug  db,
const z::string ss 
) [inline]

Write string to debug stream.

Parameters:
dbThe debug log
ssThe string to write
Returns:
The debug log instance
z::stream& z::operator<< ( z::stream ss,
const z::string val 
) [inline]

Write a string value to a stream.

Parameters:
ssOutput stream
valThe value to write
Returns:
Stream instance
z::stream& z::operator<< ( z::stream ss,
const z::end e 
) [inline]

Writes EOL to a stream.

Parameters:
ssThe stream
eThe end indicator
Returns:
Exception instance
z::stream& z::operator<< ( z::stream ss,
const z::dictbase< derT, K, V > &  val 
) [inline]

streamers for dictionary

Needs to be here because streams are defined after the cc's.

Parameters:
ssOutput stream
valThe value to write
Returns:
Stream instance
z::stream& z::operator<< ( z::stream ss,
const z::key val 
) [inline]

Write an key value to a stream.

Parameters:
ssOutput stream
valThe value to write
Returns:
Stream instance
z::stream& z::operator<< ( z::stream ss,
const int &  val 
) [inline]

Write a int value to a stream.

Parameters:
ssOutput stream
valThe value to write
Returns:
Stream instance
z::stream& z::operator<< ( z::stream ss,
const z::listbase< derT, listT, iterT, V > &  val 
) [inline]

streamers for list

Needs to be here because streams are defined after the cc's.

Parameters:
ssOutput stream
valThe value to write
Returns:
Stream instance
z::stream& z::operator<< ( z::stream ss,
const z::qid val 
) [inline]

Write an any value to a stream.

Parameters:
ssOutput stream
valThe value to write
Returns:
Stream instance
z::stream& z::operator<< ( z::stream ss,
const z::any val 
) [inline]

Write an any value to a stream.

Parameters:
ssOutput stream
valThe value to write
Returns:
Stream instance
uint z::qHash ( const z::string key) [inline]

Return hash of a string.

Parameters:
keyThe value to hash
Returns:
The hash value
uint z::qHash ( const z::qid key) [inline]

Returns the hash of an id.

Parameters:
keyThe id
Returns:
The hash value
uint z::qHash ( const double &  key) [inline]

Return hash of a double.

Parameters:
keyThe value to hash
Returns:
The hash value
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines