Commit 6e546ef5 authored by pmla's avatar pmla
Browse files

added ptm namespace

parent 37201bed
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
#include "ptm_constants.h"
#include "ptm_initialize_data.h"

namespace ptm {

#define NUM_ALLOY_TYPES 3
static uint32_t typedata[NUM_ALLOY_TYPES][3] = {
@@ -99,3 +100,5 @@ int32_t find_alloy_type(const refdata_t* ref, int8_t* mapping, int32_t* numbers)
	return PTM_ALLOY_NONE;
}

}
+4 −0
Original line number Diff line number Diff line
@@ -3,7 +3,11 @@

#include "ptm_initialize_data.h"

namespace ptm {

int32_t find_alloy_type(const refdata_t* ref, int8_t* mapping, int32_t* numbers);

}

#endif
+3 −0
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@
#include "ptm_graph_tools.h"
#include "ptm_constants.h"

namespace ptm {

static bool weinberg_coloured(int num_nodes, int num_edges, int8_t common[PTM_MAX_NBRS][PTM_MAX_NBRS], int8_t* colours, int8_t* best_code, int8_t* canonical_labelling, int a, int b)
{
@@ -165,3 +166,5 @@ int canonical_form_coloured(int num_facets, int8_t facets[][3], int num_nodes, i
	return PTM_NO_ERROR;
}

}
+3 −0
Original line number Diff line number Diff line
@@ -3,7 +3,10 @@

#include <stdint.h>

namespace ptm {

int canonical_form_coloured(int num_facets, int8_t facets[][3], int num_nodes, int8_t* degree, int8_t* colours, int8_t* canonical_labelling, int8_t* best_code, uint64_t* p_hash);
}

#endif
+3 −0
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
#include "ptm_convex_hull_incremental.h"
#include "ptm_constants.h"

namespace ptm {

#define VISIBLE 1
#define INVISIBLE 2
@@ -361,3 +362,5 @@ int get_convex_hull(int num_points, const double (*points)[3], convexhull_t* ch,
	return ret;
}

}
Loading