Lolly 1.4.27
Loading...
Searching...
No Matches
Classes | Macros | Functions
promise.hpp File Reference
#include "basic.hpp"
#include "tm_ostream.hpp"
Include dependency graph for promise.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  promise_rep< T >
 
class  promise< T >
 

Macros

#define TMPL   template <class T>
 

Functions

template<class T >
tm_ostreamoperator<< (tm_ostream &out, promise< T > cmd)
 
template<class T >
bool is_nil (promise< T > l)
 
 ABSTRACT_NULL_TEMPLATE_CODE (promise, class, T)
 
template<class T >
bool operator== (promise< T > mw1, promise< T > mw2)
 

Macro Definition Documentation

◆ TMPL

#define TMPL   template <class T>

Definition at line 39 of file promise.hpp.

Function Documentation

◆ operator<<()

template<class T >
tm_ostream & operator<< ( tm_ostream & out,
promise< T > cmd )
inline

Definition at line 52 of file promise.hpp.

53 {
54 if (is_nil (cmd)) return out << "(null)";
55 else return cmd->print (out);
56}
The list class represents a linked list.
Definition list.hpp:48
bool is_nil(promise< T > l)

◆ is_nil()

template<class T >
bool is_nil ( promise< T > l)

◆ ABSTRACT_NULL_TEMPLATE_CODE()

ABSTRACT_NULL_TEMPLATE_CODE ( promise ,
class ,
T  )

◆ operator==()

template<class T >
bool operator== ( promise< T > mw1,
promise< T > mw2 )
inline

Definition at line 49 of file promise.hpp.

49 {
50 return mw1.rep == mw2.rep;
51}