TIBCO Adapter SDK C++ Reference
MAssocList
Class Hierarchy | C++ Classes and Methods | Members | Methods
An MAssocList object can be used in a similar fashion to a map or a hash table. It holds key-value pairs. Values can be either MData objects such as MInstance, MSequence, MAssocList or a basic type such as MInteger or MStringData.

An MAssocList consists of ordered key/value (attribute/value) pairs; the same key may be repeated multiple time. You can form nested trees by making an MAssocList the value of an MAssocList attribute.

The interface supports accessing key-value pairs either by key and key index or by global position inside the association list.

MAssocList behaves in a similar fashion to an MTree, but the major difference between these two classes is that MAssocList is part of the MData class hierarchy and therefore can also be used in conjunction with other metadata driven objects. For example, an MAssocList object may be used as an attribute of an MInstance or as a member of a MSequence.

One usage of MAssocList is when highly dynamic data structure needs to be shipped and no class description can be available or only partial class description is available.

Declaration
class MAssocList : public MData;
Class Hierarchy
MObject
    MData
        MAssocList
File
MAssocList.h
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.