Lolly 1.4.27
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
promise_rep_int_add Class Reference
Inheritance diagram for promise_rep_int_add:
Inheritance graph
[legend]
Collaboration diagram for promise_rep_int_add:
Collaboration graph
[legend]

Public Member Functions

 promise_rep_int_add (int a, int b)
 
virtual int eval () override
 
- Public Member Functions inherited from promise_rep< int >
 promise_rep ()
 
virtual ~promise_rep ()
 
virtual tm_ostreamprint (tm_ostream &out)
 
- Public Member Functions inherited from abstract_struct
 abstract_struct ()
 Default constructor for the abstract object. Sets the reference count to 0.
 
virtual ~abstract_struct ()
 Virtual destructor for the abstract object. Decrements the reference count.
 

Private Attributes

int x
 
int y
 

Additional Inherited Members

- Public Attributes inherited from abstract_struct
int ref_count
 The reference count for the abstract object.
 

Detailed Description

Definition at line 12 of file promise_test.cpp.

Constructor & Destructor Documentation

◆ promise_rep_int_add()

promise_rep_int_add::promise_rep_int_add ( int a,
int b )
inline

Definition at line 17 of file promise_test.cpp.

17: x (a), y (b){};
blackbox b[13]

Member Function Documentation

◆ eval()

virtual int promise_rep_int_add::eval ( )
inlineoverridevirtual

Implements promise_rep< int >.

Definition at line 18 of file promise_test.cpp.

18{ return x + y; }

Member Data Documentation

◆ x

int promise_rep_int_add::x
private

Definition at line 13 of file promise_test.cpp.

◆ y

int promise_rep_int_add::y
private

Definition at line 14 of file promise_test.cpp.


The documentation for this class was generated from the following file: