GRASS GIS 8 Programmer's Manual  8.5.0dev(2024)-ee9fa48798
merge_key< KEY > Class Template Reference

#include <embuffer.h>

Public Member Functions

 merge_key ()
 
 merge_key (const KEY &x, const unsigned int sid)
 
 ~merge_key ()
 
void set (const KEY &x, const unsigned int sid)
 
KEY key () const
 
unsigned int stream_id () const
 
KEY getPriority () const
 

Data Fields

KEY k
 
unsigned int str_id
 

Friends

ostream & operator<< (ostream &s, const merge_key< KEY > &x)
 
int operator< (const merge_key &x, const merge_key &y)
 
int operator<= (const merge_key &x, const merge_key &y)
 
int operator> (const merge_key &x, const merge_key &y)
 
int operator>= (const merge_key &x, const merge_key &y)
 
int operator!= (const merge_key &x, const merge_key &y)
 
int operator== (const merge_key &x, const merge_key &y)
 
merge_key operator+ (const merge_key &x, const merge_key &y UNUSED)
 

Detailed Description

template<class KEY>
class merge_key< KEY >

Definition at line 91 of file embuffer.h.

Constructor & Destructor Documentation

◆ merge_key() [1/2]

template<class KEY >
merge_key< KEY >::merge_key ( )
inline

Definition at line 97 of file embuffer.h.

◆ merge_key() [2/2]

template<class KEY >
merge_key< KEY >::merge_key ( const KEY &  x,
const unsigned int  sid 
)
inline

Definition at line 99 of file embuffer.h.

◆ ~merge_key()

template<class KEY >
merge_key< KEY >::~merge_key ( )
inline

Definition at line 101 of file embuffer.h.

Member Function Documentation

◆ getPriority()

template<class KEY >
KEY merge_key< KEY >::getPriority ( ) const
inline

Definition at line 110 of file embuffer.h.

References merge_key< KEY >::k.

◆ key()

template<class KEY >
KEY merge_key< KEY >::key ( ) const
inline

Definition at line 108 of file embuffer.h.

References merge_key< KEY >::k.

◆ set()

template<class KEY >
void merge_key< KEY >::set ( const KEY &  x,
const unsigned int  sid 
)
inline

Definition at line 103 of file embuffer.h.

References merge_key< KEY >::k, merge_key< KEY >::str_id, and x.

◆ stream_id()

template<class KEY >
unsigned int merge_key< KEY >::stream_id ( ) const
inline

Definition at line 109 of file embuffer.h.

References merge_key< KEY >::str_id.

Friends And Related Function Documentation

◆ operator!=

template<class KEY >
int operator!= ( const merge_key< KEY > &  x,
const merge_key< KEY > &  y 
)
friend

Definition at line 132 of file embuffer.h.

◆ operator+

template<class KEY >
merge_key operator+ ( const merge_key< KEY > &  x,
const merge_key< KEY > &y  UNUSED 
)
friend

Definition at line 140 of file embuffer.h.

◆ operator<

template<class KEY >
int operator< ( const merge_key< KEY > &  x,
const merge_key< KEY > &  y 
)
friend

Definition at line 116 of file embuffer.h.

◆ operator<<

template<class KEY >
ostream& operator<< ( ostream &  s,
const merge_key< KEY > &  x 
)
friend

Definition at line 112 of file embuffer.h.

◆ operator<=

template<class KEY >
int operator<= ( const merge_key< KEY > &  x,
const merge_key< KEY > &  y 
)
friend

Definition at line 120 of file embuffer.h.

◆ operator==

template<class KEY >
int operator== ( const merge_key< KEY > &  x,
const merge_key< KEY > &  y 
)
friend

Definition at line 136 of file embuffer.h.

◆ operator>

template<class KEY >
int operator> ( const merge_key< KEY > &  x,
const merge_key< KEY > &  y 
)
friend

Definition at line 124 of file embuffer.h.

◆ operator>=

template<class KEY >
int operator>= ( const merge_key< KEY > &  x,
const merge_key< KEY > &  y 
)
friend

Definition at line 128 of file embuffer.h.

Field Documentation

◆ k

template<class KEY >
KEY merge_key< KEY >::k

◆ str_id

template<class KEY >
unsigned int merge_key< KEY >::str_id

Definition at line 94 of file embuffer.h.

Referenced by merge_key< KEY >::set(), and merge_key< KEY >::stream_id().


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