Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

DWFToolkit::DWFDefinedObjectInstanceContainer Class Reference
[DWF Package API]

#include "dwf/package/utility/DefinedObjectContainer.h"

Inheritance diagram for DWFToolkit::DWFDefinedObjectInstanceContainer:

Inheritance graph
[legend]
List of all members.

Detailed Description

An auto-indexing collection utility for DWFDefinedObjectInstance objects.
Since:
7.0.1.

Definition at line 215 of file DefinedObjectContainer.h.

Public Member Functions

_DWFTK_API DWFDefinedObjectInstanceContainer () throw ()
virtual _DWFTK_API ~DWFDefinedObjectInstanceContainer () throw ()
_DWFTK_API void addInstance (DWFDefinedObjectInstance *pInstance, uint32_t nGroup=0) throw ()
_DWFTK_API bool empty () const throw ()
DWFXMLSerializablegetSerializableInstanceContainer () const throw ()

Protected Types

typedef multimap< uint32_t,
DWFDefinedObjectInstance * > 
_tGroupedInstanceMap
 This type is used to describe the instance groups.

Protected Attributes

_tGroupedInstanceMap _oGroupedInstances
 The instance groups.


Constructor & Destructor Documentation

_DWFTK_API DWFToolkit::DWFDefinedObjectInstanceContainer::DWFDefinedObjectInstanceContainer  )  throw ()
 

Constructor

Exceptions:
None 

virtual _DWFTK_API DWFToolkit::DWFDefinedObjectInstanceContainer::~DWFDefinedObjectInstanceContainer  )  throw () [virtual]
 

Destructor

Exceptions:
None 


Member Function Documentation

_DWFTK_API void DWFToolkit::DWFDefinedObjectInstanceContainer::addInstance DWFDefinedObjectInstance pInstance,
uint32_t  nGroup = 0
throw ()
 

Inserts an instance into the container.

Parameters:
pInstance The instance to add. This pointer is now owned by the container and will be released with the DWFCORE_FREE_OBJECT macro.
nGroup An optional parameter that preserves order relative to the other children. This value does not have to be unique, in fact, it is a group not a key. Groups are sorted in ascending order, so children in group 0 will be ordered before children in group 1 (or any other group for that matter.) There is no rule defined for child ordering within a group.
Exceptions:
None 
Examples:
SimpleEPlotWriter/SimpleEPlotWriter_UTF8.cpp.

_DWFTK_API bool DWFToolkit::DWFDefinedObjectInstanceContainer::empty  )  const throw ()
 

Indicates whether or not any instances have been added to the container.

Returns:
true if there is at least one instances in the container, false otherwise.
Exceptions:
None 

DWFXMLSerializable& DWFToolkit::DWFDefinedObjectInstanceContainer::getSerializableInstanceContainer  )  const throw () [inline]
 

Returns an interface with which the container can be serialized into an XML document.

Returns:
A reference to a serialization inteface.
Exceptions:
None 

Definition at line 275 of file DefinedObjectContainer.h.


The documentation for this class was generated from the following file:
Generated on Tue May 17 12:39:08 2005 for Autodesk DWF Toolkit by  doxygen 1.4.1