MorphologicalAttributeFilters
Public API documentation
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
mmcfilters::AttributeKey Struct Reference

Composite key used to index delta-augmented attribute layouts. More...

#include <AttributeTypes.hpp>

Collaboration diagram for mmcfilters::AttributeKey:
Collaboration graph
[legend]

Public Member Functions

 AttributeKey (Attribute a, int d=0)
 Builds a composite key for a at delta offset d.
 
bool operator== (const AttributeKey &other) const
 Returns true when both the attribute and delta offset match.
 

Public Attributes

Attribute attr
 Attribute component of the composite lookup key.
 
int delta = 0
 Relative ancestor/descendant offset associated with attr.
 

Detailed Description

Composite key used to index delta-augmented attribute layouts.

Definition at line 117 of file AttributeTypes.hpp.

Constructor & Destructor Documentation

◆ AttributeKey()

mmcfilters::AttributeKey::AttributeKey ( Attribute  a,
int  d = 0 
)
inline

Builds a composite key for a at delta offset d.

A zero delta denotes the current node. Negative deltas refer to ancestor samples and positive deltas refer to descendant samples in delta-aware layouts.

Definition at line 131 of file AttributeTypes.hpp.

Member Function Documentation

◆ operator==()

bool mmcfilters::AttributeKey::operator== ( const AttributeKey other) const
inline

Returns true when both the attribute and delta offset match.

Definition at line 136 of file AttributeTypes.hpp.

Member Data Documentation

◆ attr

Attribute mmcfilters::AttributeKey::attr

Attribute component of the composite lookup key.

Definition at line 119 of file AttributeTypes.hpp.

◆ delta

int mmcfilters::AttributeKey::delta = 0

Relative ancestor/descendant offset associated with attr.

Definition at line 122 of file AttributeTypes.hpp.


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