#include <MamaSymbolList.h>
Inherited by Wombat::MamaSymbolListFile
Name | |
---|---|
MamaSymbolList() | |
virtual | ~MamaSymbolList() |
void | addMembershipHandler(MamaSymbolListMembershipHandler * handler) |
void | addMember(MamaSymbolListMember * member) |
MamaSymbolListMember * | findMember(const char * symbol, const char * source, mamaTransport transport) |
MamaSymbolListMember * | removeMember(const char * symbol, const char * source, mamaTransport transport) |
void | removeMember(MamaSymbolListMember & member) |
void | removeMemberAll(void ) |
void | clear() |
void | dump() |
bool | empty() const |
mama_size_t | size() const |
void | setClosure(void * closure) |
void * | getClosure() const |
void | iterate(MamaSymbolListIteratorHandler & handler, void * iterateClosure =NULL) |
mamaSymbolList | getCValue() |
const mamaSymbolList | getCValue() const |
Name | |
---|---|
MamaSymbolListImpl * | myPimpl |
Name | |
---|---|
mamaSymbolList | myList |
class Wombat::MamaSymbolList;
MamaSymbolList manages a list of MAMA symbols and related attributes. Methods are provided for creating, updating and sorting the members of the list. Handler interfaces are provided so that it is possible to handle asynchronous/external changes to the symbol list, as many types of symbol lists can be quite dynamic.
MamaSymbolList()
virtual ~MamaSymbolList()
void addMembershipHandler(
MamaSymbolListMembershipHandler * handler
)
Parameters:
Add a “membership” handler that implements the MamaSymbolListMembershipHandler interface. Multiple handlers may be registered.
void addMember(
MamaSymbolListMember * member
)
Parameters:
Add a symbol to the list. The list maintains a unique list of symbols.
MamaSymbolListMember * findMember(
const char * symbol,
const char * source,
mamaTransport transport
)
Parameters:
Return: The object containing additional information about the symbol (or NULL).
Find a symbol in the list.
MamaSymbolListMember * removeMember(
const char * symbol,
const char * source,
mamaTransport transport
)
Parameters:
Return: The member just removed (or NULL if not found)
Remove a symbol from the list (providing it exists in the list). The member itself is not destroyed but returned as the result of this method.
void removeMember(
MamaSymbolListMember & member
)
Parameters:
Remove a symbol from the list (providing it exists in the list). The member itself is not destroyed.
void removeMemberAll(
void
)
Remove all symbols from the list (providing it exists in the list). The member itself is not destroyed.
void clear()
Remove all symbols from the list. Handlers remain registered.
void dump()
Dump the contents of the list to stdout. For debugging.
bool empty() const
Return: whether the symbol list is empty.
mama_size_t size() const
Return: the size of the symbol list.
void setClosure(
void * closure
)
Parameters:
Set the closure.
void * getClosure() const
Return: The closure.
Get the closure.
void iterate(
MamaSymbolListIteratorHandler & handler,
void * iterateClosure =NULL
)
Parameters:
Iterate over all members of the symbol list.
mamaSymbolList getCValue()
Return: The mamaSymbolList
Get the underlying Impl at C level
const mamaSymbolList getCValue() const
Return: The mamaSymbolList
Get the underlying Impl at C level
MamaSymbolListImpl * myPimpl;
mamaSymbolList myList;
Updated on 2023-03-31 at 15:29:25 +0100