CXXGraph  0.4.0
CXXGraph is a header only, that manages the Graphs and it's algorithm in C++
Record.hpp
1 /***********************************************************/
2 /*** ______ ____ ______ _ ***/
3 /*** / ___\ \/ /\ \/ / ___|_ __ __ _ _ __ | |__ ***/
4 /*** | | \ / \ / | _| '__/ _` | '_ \| '_ \ ***/
5 /*** | |___ / \ / \ |_| | | | (_| | |_) | | | | ***/
6 /*** \____/_/\_\/_/\_\____|_| \__,_| .__/|_| |_| ***/
7 /*** |_| ***/
8 /***********************************************************/
9 /*** Header-Only C++ Library for Graph ***/
10 /*** Representation and Algorithms ***/
11 /***********************************************************/
12 /*** Author: ZigRazor ***/
13 /*** E-Mail: zigrazor@gmail.com ***/
14 /***********************************************************/
15 /*** Collaboration: ----------- ***/
16 /***********************************************************/
17 /*** License: AGPL v3.0 ***/
18 /***********************************************************/
19 
20 #ifndef __CXXGRAPH_PARTITIONING_RECORD_H__
21 #define __CXXGRAPH_PARTITIONING_RECORD_H__
22 
23 #pragma once
24 
25 #include <set>
26 
27 namespace CXXGRAPH {
28  namespace PARTITIONING {
29  template <typename T>
30  class Record
31  {
32  public:
33  virtual std::set<int> &getPartitions() = 0;
34  virtual void addPartition(int m) = 0;
35  virtual bool hasReplicaInPartition(int m) = 0;
36  virtual bool getLock() = 0;
37  virtual bool releaseLock() = 0;
38  virtual int getReplicas() const = 0;
39  virtual int getDegree() = 0;
40  virtual void incrementDegree() = 0;
41  };
42  }
43 }
44 
45 #endif // __CXXGRAPH_PARTITIONING_RECORD_H__
Definition: Record.hpp:31