Workspace 6.21.5
Public Member Functions | List of all members
PrimaryKeyValue Struct Reference

#include <DataAnalysis/DataStructures/sqldatamodel.h>

Public Member Functions

 PrimaryKeyValue (const PrimaryKeyValue &)=default
 
template<typename T >
 PrimaryKeyValue (DataExecution::TypedObject< T > &obj)
 
uint getHashKey (uint seed) const
 
const DataExecution::DataObjectgetObject () const
 
bool operator== (const PrimaryKeyValue &val) const
 

Constructor & Destructor Documentation

◆ PrimaryKeyValue() [1/2]

PrimaryKeyValue ( const PrimaryKeyValue )
default

◆ PrimaryKeyValue() [2/2]

Template Parameters
TThe datatype of the underlying primary key data.
Parameters
objTypedObject containing the underlying primary key data.

Template constructor for a PrimaryKeyValue, used to store a type-safe implementation for comparing values of primary keys of the same type.

Member Function Documentation

◆ getHashKey()

uint getHashKey ( uint  seed) const
inline
Parameters
seedThe seed for hash key generation.
Returns
An unsigned integer hash key that uniquely identifies this primary key.

◆ getObject()

const DataExecution::DataObject & getObject ( ) const
inline
Returns
The data object containing the primary key data itself.

◆ operator==()

bool operator== ( const PrimaryKeyValue val) const
inline
Parameters
valThe primary key value to compare against
Returns
true if this object's primary key matches the primary key contained in val. The datatypes of both primary keys must also match.