#include <resource_manager.hpp>


Public Member Functions | |
| resource_flags (const word_type bits=word_type()) | |
| bool | is_attached (void) const |
| Returns whether a handler has been attached. | |
| bool | is_fixed (void) const |
| Returns whether the resource is fixed (may not be relocated). | |
| bool | is_virtual (void) const |
| Returns whether the resource is used by a virtual device. | |
| bool | is_physical (void) const |
| Returns whether the resource is used by a physcial device. | |
| bool | is_used (void) const |
| Returns whether a resource is currently used. | |
| bool | is_valid_use (void) const |
| Returns whether the flags encode a valid use. | |
| bool | is_equal_use (const resource_flags use) const |
| Returns whether the specified flags are equal considering only the use flags (USE_MASK). | |
| bool | is_usable (const resource_flags use) const |
| Returns whether a resource is usable. | |
| bool resource_manager::resource_flags::is_used | ( | void | ) | const [inline] |
Returns whether a resource is currently used.
That is one of VIRTUAL or PHYSICAL is set.
References resource_manager::PHYSICAL, and resource_manager::VIRTUAL.
| bool resource_manager::resource_flags::is_valid_use | ( | void | ) | const [inline] |
Returns whether the flags encode a valid use.
That is either VIRTUAL or PHYSICAL is set.
References is_physical(), and is_virtual().