Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding library name (CXXGRAPH) in header guards to avoid possible conflicts in include folders Node and Graph #117

Merged
merged 3 commits into from
Oct 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions include/Edge/DirectedEdge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __DIRECTEDEDGE_H__
#define __DIRECTEDEDGE_H__
#ifndef __CXXGRAPH_DIRECTEDEDGE_H__
#define __CXXGRAPH_DIRECTEDEDGE_H__

#pragma once

Expand Down Expand Up @@ -101,4 +101,4 @@ namespace CXXGRAPH
}
}

#endif // __DIRECTEDEDGE_H__
#endif // __CXXGRAPH_DIRECTEDEDGE_H__
6 changes: 3 additions & 3 deletions include/Edge/DirectedWeightedEdge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
/***********************************************************/
/*** License: AGPL v3.0 ***/
/***********************************************************/
#ifndef __DIRECTEDWEIGHTEDEDGE_H__
#define __DIRECTEDWEIGHTEDEDGE_H__
#ifndef __CXXGRAPH_DIRECTEDWEIGHTEDEDGE_H__
#define __CXXGRAPH_DIRECTEDWEIGHTEDEDGE_H__

#pragma once

Expand Down Expand Up @@ -106,4 +106,4 @@ namespace CXXGRAPH

}

#endif // __DIRECTEDWEIGHTEDEDGE_H__
#endif // __CXXGRAPH_DIRECTEDWEIGHTEDEDGE_H__
6 changes: 3 additions & 3 deletions include/Edge/Edge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __EDGE_H__
#define __EDGE_H__
#ifndef __CXXGRAPH_EDGE_H__
#define __CXXGRAPH_EDGE_H__

#pragma once

Expand Down Expand Up @@ -114,4 +114,4 @@ namespace CXXGRAPH
}
}

#endif // __EDGE_H__
#endif // __CXXGRAPH_EDGE_H__
6 changes: 3 additions & 3 deletions include/Edge/UndirectedEdge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __UNDIRECTEDEDGE_H__
#define __UNDIRECTEDEDGE_H__
#ifndef __CXXGRAPH_UNDIRECTEDEDGE_H__
#define __CXXGRAPH_UNDIRECTEDEDGE_H__

#pragma once

Expand Down Expand Up @@ -100,4 +100,4 @@ namespace CXXGRAPH
}


#endif // __UNDIRECTEDEDGE_H__
#endif // __CXXGRAPH_UNDIRECTEDEDGE_H__
6 changes: 3 additions & 3 deletions include/Edge/UndirectedWeightedEdge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __UNDIRECTEDWEIGHTEDEDGE_H__
#define __UNDIRECTEDWEIGHTEDEDGE_H__
#ifndef __CXXGRAPH_UNDIRECTEDWEIGHTEDEDGE_H__
#define __CXXGRAPH_UNDIRECTEDWEIGHTEDEDGE_H__

#pragma once

Expand Down Expand Up @@ -107,4 +107,4 @@ namespace CXXGRAPH

}

#endif // __UNDIRECTEDWEIGHTEDEDGE_H__
#endif // __CXXGRAPH_UNDIRECTEDWEIGHTEDEDGE_H__
6 changes: 3 additions & 3 deletions include/Edge/Weighted.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __WEIGHTED_H__
#define __WEIGHTED_H__
#ifndef __CXXGRAPH_WEIGHTED_H__
#define __CXXGRAPH_WEIGHTED_H__

#pragma once

Expand Down Expand Up @@ -64,4 +64,4 @@ namespace CXXGRAPH
}


#endif // __WEIGHTED_H__
#endif // __CXXGRAPH_WEIGHTED_H__
6 changes: 3 additions & 3 deletions include/Graph/Graph.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __GRAPH_H__
#define __GRAPH_H__
#ifndef __CXXGRAPH_GRAPH_H__
#define __CXXGRAPH_GRAPH_H__

#pragma once

Expand Down Expand Up @@ -1978,4 +1978,4 @@ namespace CXXGRAPH
}

} // namespace CXXGRAPH
#endif // __GRAPH_H__
#endif // __CXXGRAPH_GRAPH_H__
6 changes: 3 additions & 3 deletions include/Graph/Graph_TS.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __GRAPH_TS_H__
#define __GRAPH_TS_H__
#ifndef __CXXGRAPH_GRAPH_TS_H__
#define __CXXGRAPH_GRAPH_TS_H__

#pragma once

Expand Down Expand Up @@ -429,4 +429,4 @@ namespace CXXGRAPH
return partitions;
}
}
#endif // __GRAPH_TS_H__
#endif // __CXXGRAPH_GRAPH_TS_H__
6 changes: 3 additions & 3 deletions include/Node/Node.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
/***********************************************************/


#ifndef __NODE_H__
#define __NODE_H__
#ifndef __CXXGRAPH_NODE_H__
#define __CXXGRAPH_NODE_H__

#pragma once
#include <iostream>
Expand Down Expand Up @@ -90,4 +90,4 @@ namespace CXXGRAPH
}
}

#endif // __NODE_H__
#endif // __CXXGRAPH_NODE_H__
6 changes: 3 additions & 3 deletions include/Partitioning/Partition.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __PARTITION_H__
#define __PARTITION_H__
#ifndef __CXXGRAPH_PARTITION_H__
#define __CXXGRAPH_PARTITION_H__

#pragma once

Expand Down Expand Up @@ -366,4 +366,4 @@ namespace CXXGRAPH

}

#endif // __PARTITION_H__
#endif // __CXXGRAPH_PARTITION_H__
6 changes: 3 additions & 3 deletions include/Partitioning/PartitioningStats.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __PARTITIONINGSTATS_H__
#define __PARTITIONINGSTATS_H__
#ifndef __CXXGRAPH_PARTITIONINGSTATS_H__
#define __CXXGRAPH_PARTITIONINGSTATS_H__

#include <iostream>
#include "Utility/Typedef.hpp"
Expand Down Expand Up @@ -66,4 +66,4 @@ namespace CXXGRAPH

}

#endif // __PARTITIONINGSTATS_H__
#endif // __CXXGRAPH_PARTITIONINGSTATS_H__
6 changes: 3 additions & 3 deletions include/Utility/ConstString.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __CONSTSTRING_H__
#define __CONSTSTRING_H__
#ifndef __CXXGRAPH_CONSTSTRING_H__
#define __CXXGRAPH_CONSTSTRING_H__

#pragma once

Expand All @@ -33,4 +33,4 @@ namespace CXXGRAPH
constexpr char ERR_SOURCE_NODE_NOT_IN_GRAPH[] = "Source Node not inside Graph";
///////////////////////////////
}
#endif // __CONSTSTRING_H__
#endif // __CXXGRAPH_CONSTSTRING_H__
6 changes: 3 additions & 3 deletions include/Utility/ConstValue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __CONSTVALUE_H__
#define __CONSTVALUE_H__
#ifndef __CXXGRAPH_CONSTVALUE_H__
#define __CXXGRAPH_CONSTVALUE_H__

#pragma once

Expand All @@ -29,4 +29,4 @@ namespace CXXGRAPH
constexpr double INF_DOUBLE = std::numeric_limits<double>::max();
}

#endif // __CONSTVALUE_H__
#endif // __CXXGRAPH_CONSTVALUE_H__
6 changes: 3 additions & 3 deletions include/Utility/Reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __READER_H__
#define __READER_H__
#ifndef __CXXGRAPH_READER_H__
#define __CXXGRAPH_READER_H__

#pragma once // This is to make sure that this header is only included once

Expand All @@ -43,4 +43,4 @@ namespace CXXGRAPH
};
}

#endif // __READER_H__
#endif // __CXXGRAPH_READER_H__
6 changes: 3 additions & 3 deletions include/Utility/ThreadSafe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __THREADSAFE_H__
#define __THREADSAFE_H__
#ifndef __CXXGRAPH_THREADSAFE_H__
#define __CXXGRAPH_THREADSAFE_H__

#pragma once

Expand Down Expand Up @@ -47,4 +47,4 @@ namespace CXXGRAPH
}
}

#endif // __THREADSAFE_H__
#endif // __CXXGRAPH_THREADSAFE_H__
6 changes: 3 additions & 3 deletions include/Utility/Writer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
/*** License: AGPL v3.0 ***/
/***********************************************************/

#ifndef __WRITER_H__
#define __WRITER_H__
#ifndef __CXXGRAPH_WRITER_H__
#define __CXXGRAPH_WRITER_H__

#pragma once // This is to make sure that this header is only included once

Expand Down Expand Up @@ -49,4 +49,4 @@ namespace CXXGRAPH
};
}

#endif // __WRITER_H__
#endif // __CXXGRAPH_WRITER_H__