pgr_flow_t.h 1.58 KB
Newer Older
1
/*PGR-GNU*****************************************************************
2
File: pgr_flow_t.h
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

Copyright (c) 2015 Celia Virginia Vergara Castillo
Mail: vicky_vergara@hotmail.com

------

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.

********************************************************************PGR-GNU*/
24
/*! @file */
25

26 27
#ifndef INCLUDE_C_TYPES_PGR_FLOW_T_H_
#define INCLUDE_C_TYPES_PGR_FLOW_T_H_
28 29
#pragma once

30 31 32

#ifdef __cplusplus

33
#include <cstddef>
34

35
#else  // __cplusplus
36

37 38
// for bool
#ifdef __GNUC__
39 40 41
#if __GNUC__ > 5
#pragma GCC diagnostic ignored "-Wpedantic"
#else
42 43
#pragma GCC diagnostic ignored "-pedantic"
#endif
44
#endif
45 46 47 48 49

#include <postgres.h>

#ifdef __GNUC__
#pragma GCC diagnostic pop
50 51
#endif

52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
// For NULL & size_t
#include <stdlib.h>


#endif  // __cplusplus

// For int64_t etc
#include <stdint.h>


typedef struct {
  int64_t edge;
  int64_t source;
  int64_t target;
  int64_t flow;
  int64_t residual_capacity;
} pgr_flow_t;

#endif  // INCLUDE_C_TYPES_PGR_FLOW_T_H_