AGX Dynamics  2.35.0.1
agxSDK::MergeIgnoreGroups Class Reference

A collection of merge ignore groups, some named and some not. More...

#include <MergeIgnoreGroups.h>

Public Member Functions

agx::Bool add (agx::UInt32 id)
 Add the given group ID. More...
 
agx::Bool add (const agx::Name &name)
 Add the given group name. More...
 
const agx::UInt32Vector & getIds () const
 
const agx::NameVector & getNames () const
 
agx::Bool remove (agx::UInt32 id)
 Remove the given group ID. More...
 
agx::Bool remove (const agx::Name &name)
 Remove the given group name. More...
 
void restore (agxStream::InputArchive &archive)
 
void store (agxStream::OutputArchive &archive) const
 

Detailed Description

A collection of merge ignore groups, some named and some not.

Owned and maintained by MergeSplitProperties. Used by MergeSplitHandler to reject merges. The groups identified by ID is a subset of the groups identified by name. That is, adding a group by name will also add the corresponding group ID.

Definition at line 39 of file MergeIgnoreGroups.h.

Member Function Documentation

◆ add() [1/2]

agx::Bool agxSDK::MergeIgnoreGroups::add ( agx::UInt32  id)

Add the given group ID.

The ID must not correspond to a named group.

Parameters
id- The group ID to add.
Returns
True if a new group was added. False if already part of the given group.

◆ add() [2/2]

agx::Bool agxSDK::MergeIgnoreGroups::add ( const agx::Name &  name)

Add the given group name.

The corresponding group ID will be added as well.

Parameters
name- The group name to add.
Returns
True if a group was added. False if already part of the given group.

◆ getIds()

const agx::UInt32Vector& agxSDK::MergeIgnoreGroups::getIds ( ) const
Returns
Return group IDs for all groups, including named.

◆ getNames()

const agx::NameVector& agxSDK::MergeIgnoreGroups::getNames ( ) const
Returns
The named groups.

◆ remove() [1/2]

agx::Bool agxSDK::MergeIgnoreGroups::remove ( agx::UInt32  id)

Remove the given group ID.

If the ID has a corresponding group name then the name is removed as well. In that case it will be faster to pass the name to remove instead of the ID.

Parameters
id- The group ID to remove.
Returns
True if the groups was removed. False otherwise.

◆ remove() [2/2]

agx::Bool agxSDK::MergeIgnoreGroups::remove ( const agx::Name &  name)

Remove the given group name.

The corresponding group ID will be removed as well.

Parameters
name- The group name to remove.
Returns
True if a group was removed. False otherwise.

◆ restore()

void agxSDK::MergeIgnoreGroups::restore ( agxStream::InputArchive &  archive)

◆ store()

void agxSDK::MergeIgnoreGroups::store ( agxStream::OutputArchive &  archive) const

The documentation for this class was generated from the following file: