L4Re - L4 Runtime Environment
 All Data Structures Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
L4Re::Cap_alloc Class Reference

Capability allocator interface. More...

+ Collaboration diagram for L4Re::Cap_alloc:

Public Member Functions

virtual L4::Cap< void > alloc ()=0 throw ()
 Allocate a capability.
template<typename T >
L4::Cap< T > alloc () throw ()
 Allocate a capability.
virtual void free (L4::Cap< void > cap)=0 throw ()
 Free a capability.
virtual ~Cap_alloc ()=0
 Destructor.

Static Public Member Functions

template<typename CAP_ALLOC >
static L4Re::Cap_allocget_cap_alloc (CAP_ALLOC &ca)
 Construct an instance of a capability allocator.

Detailed Description

Capability allocator interface.

Definition at line 40 of file cap_alloc.

Member Function Documentation

virtual L4::Cap<void> L4Re::Cap_alloc::alloc ( ) throw ()
pure virtual

Allocate a capability.

Returns
Capability of type void

Referenced by get_cap_alloc().

+ Here is the caller graph for this function:

template<typename T >
L4::Cap<T> L4Re::Cap_alloc::alloc ( ) throw ()
inline

Allocate a capability.

Returns
Capability of type T

Definition at line 62 of file cap_alloc.

References alloc(), and L4::cap_cast().

Referenced by alloc().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void L4Re::Cap_alloc::free ( L4::Cap< void >  cap) throw ()
pure virtual

Free a capability.

Parameters
capCapability to free.

Referenced by get_cap_alloc().

+ Here is the caller graph for this function:

template<typename CAP_ALLOC >
static L4Re::Cap_alloc* L4Re::Cap_alloc::get_cap_alloc ( CAP_ALLOC &  ca)
inlinestatic

Construct an instance of a capability allocator.

Parameters
caCapaiblity allocator
Returns
Instance of a capability allocator.

Definition at line 85 of file cap_alloc.

References alloc(), and free().

+ Here is the call graph for this function:


The documentation for this class was generated from the following file:
L4Re - L4 Runtime Environment