PostgreSQL Source Code  git master
sdir.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define ScanDirectionCombine(a, b)   ((a) * (b))
 
#define ScanDirectionIsValid(direction)
 
#define ScanDirectionIsBackward(direction)    ((bool) ((direction) == BackwardScanDirection))
 
#define ScanDirectionIsNoMovement(direction)    ((bool) ((direction) == NoMovementScanDirection))
 
#define ScanDirectionIsForward(direction)    ((bool) ((direction) == ForwardScanDirection))
 

Typedefs

typedef enum ScanDirection ScanDirection
 

Enumerations

enum  ScanDirection { BackwardScanDirection = -1 , NoMovementScanDirection = 0 , ForwardScanDirection = 1 }
 

Macro Definition Documentation

◆ ScanDirectionCombine

#define ScanDirectionCombine (   a,
  b 
)    ((a) * (b))

Definition at line 36 of file sdir.h.

◆ ScanDirectionIsBackward

#define ScanDirectionIsBackward (   direction)     ((bool) ((direction) == BackwardScanDirection))

Definition at line 50 of file sdir.h.

◆ ScanDirectionIsForward

#define ScanDirectionIsForward (   direction)     ((bool) ((direction) == ForwardScanDirection))

Definition at line 64 of file sdir.h.

◆ ScanDirectionIsNoMovement

#define ScanDirectionIsNoMovement (   direction)     ((bool) ((direction) == NoMovementScanDirection))

Definition at line 57 of file sdir.h.

◆ ScanDirectionIsValid

#define ScanDirectionIsValid (   direction)
Value:
((bool) (BackwardScanDirection <= (direction) && \
(direction) <= ForwardScanDirection))
@ BackwardScanDirection
Definition: sdir.h:26
@ ForwardScanDirection
Definition: sdir.h:28

Definition at line 42 of file sdir.h.

Typedef Documentation

◆ ScanDirection

Enumeration Type Documentation

◆ ScanDirection

Enumerator
BackwardScanDirection 
NoMovementScanDirection 
ForwardScanDirection 

Definition at line 24 of file sdir.h.

25 {
ScanDirection
Definition: sdir.h:25
@ NoMovementScanDirection
Definition: sdir.h:27