eap_core_map_c Class Reference
A
eap_core_map_c
template class. The
eap_core_map_c
template class includes an array that is indexed with type of Selector_Type parameter. The Type could be any class that offers two functions with the following prototypes:
void object_increase_reference_count();
u32_t object_decrease_reference_count();
Constructor & Destructor Documentation
eap_core_map_c(abs_eap_am_tools_c *const, Abs_Type *const)
The constructor initializes attributes using the passed parameters. Each pointer of m_map array is initialized null.
abs_eap_am_tools_c
.
Parameters
abs_eap_am_tools_c
*const tools
|
is pointer to the tools class.
|
Abs_Type *const partner
|
is back pointer to object which created this object.
|
~eap_core_map_c()
~eap_core_map_c
|
(
|
)
|
[inline, virtual]
|
The destructor of the eap_core_map template class deletes all stored objects.
Member Functions Documentation
add_handler(const Selector_Type *const, Type *const)
eap_status_e
|
add_handler
|
(
|
const Selector_Type *const
|
p_selector,
|
|
Type *const
|
object
|
|
)
|
[inline]
|
The
add_handler()
function stores a new type to the eap_core_map object.
Parameters
const Selector_Type *const p_selector
|
is pointer to a selector object. The p_selector object identifies the stored type.
|
Type *const object
|
|
for_each(eap_status_e(*)(Type *const value, abs_eap_am_tools_c *const m_am_tools), const)
The
for_each()
function runs function for the each object in the MAP.
get_atom_count()
u32_t
|
get_atom_count
|
(
|
)
|
const [inline]
|
get_handler(const Selector_Type *const)
Type *const
|
get_handler
|
(
|
const Selector_Type *const
|
p_selector
|
)
|
const [inline]
|
Parameters
const Selector_Type *const p_selector
|
is pointer to a selector object. The p_selector object identifies the required object.
|
get_is_valid()
bool
|
get_is_valid
|
(
|
)
|
[inline]
|
remove_handler(const Selector_Type *const, const bool)
eap_status_e
|
remove_handler
|
(
|
const Selector_Type *const
|
p_selector,
|
|
const bool
|
delete_object
|
|
)
|
[inline]
|
Parameters
const Selector_Type *const p_selector
|
is pointer to a selector object.
|
const bool delete_object
|
tells whether the object is deleted (true) or not (false). The p_selector object identifies the removed object.
|
Member Data Documentation
abs_eap_am_tools_c *const m_am_tools
eap_state_map_atom_c< Type, Selector_Type > * m_map
This is hash-table to all objects stored to the eap_core_map object. Objects are stored using the eap_state_map_atom template class.
Abs_Type *const m_partner
Abs_Type *const
|
m_partner
|
[private]
|
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.