-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathListNode.h
More file actions
36 lines (32 loc) · 828 Bytes
/
ListNode.h
File metadata and controls
36 lines (32 loc) · 828 Bytes
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
//
// ListNode.h
// ListMiner
//
// Created by Chenhao Liu on 11/29/12.
// Copyright (c) 2012 Chenhao Liu. All rights reserved.
//
#ifndef __ListMiner__ListNode__
#define __ListMiner__ListNode__
#include <iostream>
#include "Graph.h"
#endif /* defined(__ListMiner__ListNode__) */
class ListNode{
private:
int start,end,support;
Graph* G;
public:
ListNode();
ListNode(const int s,const int e,const int spt,const Graph* g);
ListNode(const ListNode& node);
int getStart() const;
void setStart(int s);
int getEnd() const;
void setEnd(int e);
int getSupport() const;
void setSupport(int s);
void incrementSupport();
Graph* getGraph() const;
void setGraph(const Graph& g);
void operator=(const ListNode& node);
bool operator==(const ListNode& node) const;
};