AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
agxSDK::MergeIgnoreFilter Class Reference

A collection of merge ignore group ID pairs for which merge should be rejected. More...

#include <MergeIgnoreFilter.h>

Public Member Functions

void addRejection (agx::UInt32 group1, agx::UInt32 group2)
 Add a rejection for the given group pair.
 
agx::Bool rejects (agx::UInt32 group1, agx::UInt32 group2) const
 Check if the given group pair is on the rejection list.
 
agx::Bool rejects (const agx::UInt32Vector &groups1, const agx::UInt32Vector &groups2) const
 Check if there is any pair in the cartesian product of the given group lists for which a rejection has been added.
 
void removeRejection (agx::UInt32 group1, agx::UInt32 group2)
 Forget a previously added rejection pair.
 
void restore (agxStream::InputArchive &archive)
 
void store (agxStream::OutputArchive &archive) const
 

Static Public Member Functions

static agx::Bool isNameId (agx::UInt32 id)
 Check if the given group ID corresponds to a named group.
 
static agx::UInt32 nameToId (const agx::Name &name)
 Compute the group ID that corresponds to the given group name.
 

Static Public Attributes

static const agx::UInt32 MAX_UNAMED_GROUP_ID
 The maximum ID that may be used to create an unamed group.
 

Detailed Description

A collection of merge ignore group ID pairs for which merge should be rejected.

The filter itself is owned and used by MergeSplitHandler and the merge ignore group IDs are held by MergeSplitProperties.

Definition at line 32 of file MergeIgnoreFilter.h.

Member Function Documentation

◆ addRejection()

void agxSDK::MergeIgnoreFilter::addRejection ( agx::UInt32  group1,
agx::UInt32  group2 
)

Add a rejection for the given group pair.

The order the groups are passed does not matter.

Parameters
group1- The first group.
group2- The second group.

◆ isNameId()

static agx::Bool agxSDK::MergeIgnoreFilter::isNameId ( agx::UInt32  id)
static

Check if the given group ID corresponds to a named group.

Parameters
id- The group ID to check.
Returns
True if the grou ID corresponds to a named group. False otherwise.

◆ nameToId()

static agx::UInt32 agxSDK::MergeIgnoreFilter::nameToId ( const agx::Name &  name)
static

Compute the group ID that corresponds to the given group name.

Parameters
name- Name of the group to compute the group ID for.
Returns
The group ID of the given group.

◆ rejects() [1/2]

agx::Bool agxSDK::MergeIgnoreFilter::rejects ( agx::UInt32  group1,
agx::UInt32  group2 
) const

Check if the given group pair is on the rejection list.

The order the groups are passed does not matter.

Parameters
group1- The first group.
group2- The second group.
Returns
True if there is a rejection for the given pair. False otherwise.

◆ rejects() [2/2]

agx::Bool agxSDK::MergeIgnoreFilter::rejects ( const agx::UInt32Vector &  groups1,
const agx::UInt32Vector &  groups2 
) const

Check if there is any pair in the cartesian product of the given group lists for which a rejection has been added.

Parameters
groups1- The first set of groups.
groups2- The second set of groups.
Returns
True if any rejected pair is found. False otherwise.

◆ removeRejection()

void agxSDK::MergeIgnoreFilter::removeRejection ( agx::UInt32  group1,
agx::UInt32  group2 
)

Forget a previously added rejection pair.

The order the groups are passed does not matter.

Parameters
group1- The first group.
group2- The second group.

◆ restore()

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

◆ store()

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

Member Data Documentation

◆ MAX_UNAMED_GROUP_ID

const agx::UInt32 agxSDK::MergeIgnoreFilter::MAX_UNAMED_GROUP_ID
static

The maximum ID that may be used to create an unamed group.

All group IDs created for named groups will be larger than this value;

Definition at line 92 of file MergeIgnoreFilter.h.


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