#include <Framework_Component.h>
Collaboration diagram for ACE_Framework_Repository:
Public Types | |
enum | { DEFAULT_SIZE = ACE_DEFAULT_FRAMEWORK_REPOSITORY_SIZE } |
Public Methods | |
~ACE_Framework_Repository (void) | |
Close down the repository and free up dynamically allocated resources. More... | |
int | open (int size=DEFAULT_SIZE) |
Initialize the repository. More... | |
int | close (void) |
Close down the repository and free up dynamically allocated resources, also called by dtor. More... | |
int | register_component (const ACE_Framework_Component *fc) |
Insert a new component. Returns -1 when the repository is full and 0 on success. More... | |
int | current_size (void) const |
Return the current size of the repository. More... | |
int | total_size (void) const |
Return the total size of the repository. More... | |
void | dump (void) const |
Dump the state of an object. More... | |
Static Public Methods | |
ACE_Framework_Repository * | instance (int size=ACE_Framework_Repository::DEFAULT_SIZE) |
Get pointer to a process-wide <ACE_Framework_Repository>. More... | |
void | close_singleton (void) |
Delete the dynamically allocated Singleton. More... | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. More... | |
Private Methods | |
ACE_Framework_Repository (int size=ACE_Framework_Repository::DEFAULT_SIZE) | |
Initialize the repository. More... | |
ACE_Framework_Repository (const ACE_Framework_Repository &) | |
Don't allow these to be called. More... | |
ACE_Framework_Repository & | operator= (const ACE_Framework_Repository &) |
Private Attributes | |
const ACE_Framework_Component ** | component_vector_ |
Contains all the framework components. More... | |
int | current_size_ |
Current number of components. More... | |
int | total_size_ |
Maximum number of components. More... | |
Static Private Attributes | |
ACE_Framework_Repository * | repository_ = 0 |
Pointer to a process-wide <ACE_Framework_Repository>. More... | |
Friends | |
class | ACE_Framework_Component |
This class contains a vector of <ACE_Framework_Component> *'s. On destruction, framework components are destroyed in the reverse order that they were added originally.
|
|
|
Close down the repository and free up dynamically allocated resources.
|
|
Initialize the repository.
|
|
Don't allow these to be called.
|
|
Close down the repository and free up dynamically allocated resources, also called by dtor.
|
|
Delete the dynamically allocated Singleton.
|
|
Return the current size of the repository.
|
|
Dump the state of an object.
|
|
Get pointer to a process-wide <ACE_Framework_Repository>.
|
|
Initialize the repository.
|
|
|
|
Insert a new component. Returns -1 when the repository is full and 0 on success.
|
|
Return the total size of the repository.
|
|
|
|
Declare the dynamic allocation hooks.
|
|
Contains all the framework components.
|
|
Current number of components.
|
|
Pointer to a process-wide <ACE_Framework_Repository>.
|
|
Maximum number of components.
|