File: directions.h

package info (click to toggle)
snap-aligner 1.0~beta.18%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 9,036 kB
  • ctags: 4,550
  • sloc: cpp: 106,701; ansic: 5,239; python: 227; makefile: 80
file content (36 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*++

Module Name:

    directions.h

Abstract:

    Definitions for basic read directions (forward & reverse compliment)

Authors:

    Bill Bolosky, January, 2013

Environment:

    User mode service.

Revision History:

    
--*/

#pragma once

const int NUM_DIRECTIONS = 2;    // Forward and reverse compliment

typedef int Direction;

const int FORWARD = 0;
const int RC = 1;

inline Direction OppositeDirection(Direction direction) {
    _ASSERT(FORWARD == direction || RC == direction);
    return 1-direction;
}