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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
/*
Author: Scott Kuehn, Shane Neph
Date: Tue Aug 14 14:44:45 PDT 2007
*/
//
// BEDOPS
// Copyright (C) 2011-2022 Shane Neph, Scott Kuehn and Alex Reynolds
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
#ifndef BEDTYPES_HPP
#define BEDTYPES_HPP
#include "data/bed/Bed.hpp"
#include "data/bed/Bed_minmem.hpp"
#include "suite/BEDOPS.Constants.hpp"
namespace Bed {
/***********************************************/
/* Typedef helper for user applications */
/***********************************************/
template <bool UseNonStaticChrom, bool UseRest, typename MType = Bed::MeasurementType, bool MemPool = true>
struct BedTypes {
typedef MType MeasureType;
typedef BasicCoords<UseNonStaticChrom, UseRest> Bed3Type;
typedef Bed4<Bed3Type, UseRest> Bed4Type;
typedef Bed5<Bed4Type, MeasureType, UseRest> Bed5Type;
};
template <bool UseNonStaticChrom, bool UseRest, typename MType>
struct BedTypes<UseNonStaticChrom, UseRest, MType, false> {
typedef MType MeasureType;
typedef NoPool::BasicCoords<UseNonStaticChrom, UseRest> Bed3Type;
typedef NoPool::Bed4<Bed3Type, UseRest> Bed4Type;
typedef NoPool::Bed5<Bed4Type, MeasureType, UseRest> Bed5Type;
};
enum { Rest = true, NoRest = false, OneChrom = false, AllChrom = true, NoPooling = false };
/***********************************************/
/* Common typedefs */
/***********************************************/
typedef BedTypes<AllChrom, Rest, Bed::MeasurementType> BTAllRest;
typedef BedTypes<AllChrom, NoRest, Bed::MeasurementType> BTAllNoRest;
typedef BTAllRest::Bed3Type B3Rest;
typedef BTAllNoRest::Bed3Type B3NoRest;
typedef BTAllRest::Bed4Type B4Rest;
typedef BTAllNoRest::Bed4Type B4NoRest;
typedef BTAllRest::Bed5Type B5Rest;
typedef BTAllNoRest::Bed5Type B5NoRest;
typedef BedTypes<AllChrom, Rest, Bed::MeasurementType, NoPooling> BTAllRestNoPool;
typedef BedTypes<AllChrom, NoRest, Bed::MeasurementType, NoPooling> BTAllNoRestNoPool;
typedef BTAllRestNoPool::Bed3Type B3RestNoPool;
typedef BTAllNoRestNoPool::Bed3Type B3NoRestNoPool;
typedef BTAllRestNoPool::Bed4Type B4RestNoPool;
typedef BTAllNoRestNoPool::Bed4Type B4NoRestNoPool;
typedef BTAllRestNoPool::Bed5Type B5RestNoPool;
typedef BTAllNoRestNoPool::Bed5Type B5NoRestNoPool;
} // namespace Bed
#endif // BEDTYPES_HPP
|