A dynamically-typed closure. More...
Public Member Functions | |
auto_closure () | |
Default constructor. Creates an empty closure. | |
auto_closure (const auto_closure &other) | |
Copy constructor. | |
bool | empty () const |
Returns true if the closure is empty. | |
auto_closure & | operator= (const auto_closure &other) |
Assignment operator. | |
bool | operator== (const detail::closure_base &other) const |
Returns true if the closure is the same as other . | |
bool | operator!= (const detail::closure_base &other) const |
Returns true if the closure is not the same as other . | |
template<typename T > | |
bool | has_type () const |
Returns true if the closure has the same type as a function of type T . |
A dynamically-typed closure.
The arbb::auto_closure class generally behaves like arbb::closure, but performs run-time type checking instead of static type checking, and can be used to store arbitrary captured functions.
Definition at line 39 of file auto_closure.hpp.
arbb::auto_closure::auto_closure | ( | ) |
Default constructor. Creates an empty closure.
arbb::auto_closure::auto_closure | ( | const auto_closure & | other | ) |
Copy constructor.
bool arbb::auto_closure::empty | ( | ) | const |
Returns true
if the closure is empty.
auto_closure& arbb::auto_closure::operator= | ( | const auto_closure & | other | ) |
Assignment operator.
bool arbb::auto_closure::operator== | ( | const detail::closure_base & | other | ) | const |
Returns true
if the closure is the same as other
.
bool arbb::auto_closure::operator!= | ( | const detail::closure_base & | other | ) | const |
Returns true
if the closure is not the same as other
.
bool arbb::auto_closure::has_type | ( | ) | const [inline] |
Copyright © 2010, Intel Corporation. All rights reserved.