GRASS GIS 7 Programmer's Manual  7.9.dev(2021)-e5379bbd7
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)
 

Detailed Description

template<class KEY>
class merge_key< KEY >

Definition at line 102 of file embuffer.h.

Constructor & Destructor Documentation

◆ merge_key() [1/2]

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

Definition at line 108 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 110 of file embuffer.h.

◆ ~merge_key()

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

Definition at line 113 of file embuffer.h.

Member Function Documentation

◆ getPriority()

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

Definition at line 125 of file embuffer.h.

References merge_key< KEY >::k.

◆ key()

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

Definition at line 119 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 115 of file embuffer.h.

References x.

Referenced by em_buffer< T, Key >::sort().

◆ stream_id()

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

Definition at line 122 of file embuffer.h.

References merge_key< KEY >::str_id.

Referenced by em_buffer< T, Key >::sort().

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 148 of file embuffer.h.

◆ operator+

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

Definition at line 156 of file embuffer.h.

◆ 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>
ostream& operator<< ( ostream &  s,
const merge_key< KEY > &  x 
)
friend

Definition at line 129 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 152 of file embuffer.h.

◆ operator>

template<class KEY>
int operator> ( const merge_key< KEY > &  x,
const merge_key< KEY > &  y 
)
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 144 of file embuffer.h.

Field Documentation

◆ k

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

Definition at line 104 of file embuffer.h.

Referenced by merge_key< KEY >::getPriority(), and merge_key< KEY >::key().

◆ str_id

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

Definition at line 105 of file embuffer.h.

Referenced by merge_key< KEY >::stream_id().


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