Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B > Class Template Reference

#include <cPair.h>

Inheritance diagram for Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B >:
Gray::cPairT< _TYPE_A, _TYPE_B >

Public Member Functions

 cPairX () noexcept
 
 cPairX (_TYPE_ARG_A a, _TYPE_ARG_B b) noexcept
 
void SetValues (_TYPE_ARG_A a, _TYPE_ARG_B b) noexcept
 
_TYPE_ARG_A get_HashCode () const noexcept
 
const _TYPE_A & get_A () const noexcept
 
void put_A (_TYPE_ARG_A a) noexcept
 
const _TYPE_A & get_B () const noexcept
 
void put_B (_TYPE_ARG_B b) noexcept
 
- Public Member Functions inherited from Gray::cPairT< _TYPE_A, _TYPE_B >
_TYPE_A get_A () const noexcept
 
_TYPE_B get_B () const noexcept
 
_TYPE_A get_HashCode () const noexcept
 
void put_A (_TYPE_A a) noexcept
 
void put_B (_TYPE_B b) noexcept
 

Additional Inherited Members

- Public Attributes inherited from Gray::cPairT< _TYPE_A, _TYPE_B >
_TYPE_A m_a
 nullptr or 0 = last in array. (typically sorted by A as primary key) More...
 
_TYPE_B m_b
 nullptr or 0 = last in array. More...
 

Detailed Description

template<class _TYPE_A, class _TYPE_ARG_A, class _TYPE_B, class _TYPE_ARG_B>
class Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B >

Template to associate a complex something with another something. _TYPE_ARG_A = Allow an alternate argument type for _TYPE_A. Usually a reference for _TYPE_A if complex. typically sorted by _TYPE_A. but not assumed/enforced. typically in a static table! typically LAST ENTRY in static table = { 0 or nullptr }, in either place. Like cArrayStruct<> is to cArrayVal<>

Constructor & Destructor Documentation

◆ cPairX() [1/2]

template<class _TYPE_A , class _TYPE_ARG_A , class _TYPE_B , class _TYPE_ARG_B >
Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B >::cPairX ( )
inlinenoexcept

◆ cPairX() [2/2]

template<class _TYPE_A , class _TYPE_ARG_A , class _TYPE_B , class _TYPE_ARG_B >
Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B >::cPairX ( _TYPE_ARG_A  a,
_TYPE_ARG_B  b 
)
inlinenoexcept

Member Function Documentation

◆ get_A()

template<class _TYPE_A , class _TYPE_ARG_A , class _TYPE_B , class _TYPE_ARG_B >
const _TYPE_A& Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B >::get_A ( ) const
inlinenoexcept

◆ get_B()

template<class _TYPE_A , class _TYPE_ARG_A , class _TYPE_B , class _TYPE_ARG_B >
const _TYPE_A& Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B >::get_B ( ) const
inlinenoexcept

◆ get_HashCode()

template<class _TYPE_A , class _TYPE_ARG_A , class _TYPE_B , class _TYPE_ARG_B >
_TYPE_ARG_A Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B >::get_HashCode ( ) const
inlinenoexcept

Support this in case anyone wants to use it.

◆ put_A()

template<class _TYPE_A , class _TYPE_ARG_A , class _TYPE_B , class _TYPE_ARG_B >
void Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B >::put_A ( _TYPE_ARG_A  a)
inlinenoexcept

◆ put_B()

template<class _TYPE_A , class _TYPE_ARG_A , class _TYPE_B , class _TYPE_ARG_B >
void Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B >::put_B ( _TYPE_ARG_B  b)
inlinenoexcept

◆ SetValues()

template<class _TYPE_A , class _TYPE_ARG_A , class _TYPE_B , class _TYPE_ARG_B >
void Gray::cPairX< _TYPE_A, _TYPE_ARG_A, _TYPE_B, _TYPE_ARG_B >::SetValues ( _TYPE_ARG_A  a,
_TYPE_ARG_B  b 
)
inlinenoexcept

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