|
CoreComponents 3.0.0
A Modern C++ Toolkit
|
Call by reference function arguments. More...
#include <cc/InOut>
Public Member Functions | |
| InOut (T *x) | |
| Construct a call by reference argument. | |
| InOut (const None &) | |
| Construct a default call by reference argument. | |
| InOut & | operator= (const T &y) |
| Assign a value y to be returned. | |
| InOut & | operator<< (const T &y) |
| Assign a value y to be returned. | |
| operator T () const | |
| Access return value. | |
| bool | requested () const |
| Check if a return value is requested. | |
| bool | operator== (const None &) const |
| Check if a return value is requested. | |
| bool | operator!= (const None &) const |
| Check if a return value is not requested. | |
| template<class U > | |
| operator InOut< U > () | |
| Automatically cast to a compatible return value type. | |
| T & | operator() () |
| Get reference to return value. | |
| const T & | operator() () const |
| Get constant reference to return value. | |
| T & | operator* () |
| Get reference to return value. | |
| const T & | operator* () const |
| Get constant reference to return value. | |
| T * | operator-> () |
| Get access to the return value. | |
| const T * | operator-> () const |
| Get access to the return value. | |
| template<class B > | |
| InOut & | operator+= (const B &b) |
| Addition assignment. | |
| template<class B > | |
| InOut & | operator-= (const B &b) |
| Subtraction assignment. | |
| template<class B > | |
| InOut & | operator*= (const B &b) |
| Multiplication assignment. | |
| template<class B > | |
| InOut & | operator/= (const B &b) |
| Division assignment. | |
| T * | operator& () |
| Get address of. | |
| template<class B > | |
| B & | as () |
| Get return value statically casted to type B. | |
Call by reference function arguments.
| T | return value type |
| InOut | ( | T * | x | ) |
Construct a call by reference argument.
| InOut & operator= | ( | const T & | y | ) |
Assign a value y to be returned.
| InOut & operator<< | ( | const T & | y | ) |
Assign a value y to be returned.
| operator T | ( | ) | const |
Access return value.
| bool requested | ( | ) | const |
Check if a return value is requested.
| bool operator== | ( | const None & | ) | const |
Check if a return value is requested.
| bool operator!= | ( | const None & | ) | const |
Check if a return value is not requested.
Automatically cast to a compatible return value type.
| T & operator() | ( | ) |
Get reference to return value.
| const T & operator() | ( | ) | const |
Get constant reference to return value.
| T & operator* | ( | ) |
Get reference to return value.
| const T & operator* | ( | ) | const |
Get constant reference to return value.
| T * operator-> | ( | ) |
Get access to the return value.
| const T * operator-> | ( | ) | const |
Get access to the return value.
Addition assignment.
Subtraction assignment.
Multiplication assignment.
Division assignment.
| T * operator& | ( | ) |
Get address of.
| B & as | ( | ) |
Get return value statically casted to type B.