-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctionattributes.hpp
More file actions
61 lines (45 loc) · 1.11 KB
/
functionattributes.hpp
File metadata and controls
61 lines (45 loc) · 1.11 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#ifndef FUNCATTR_H
#define FUNCATTR_H
#include <string>
#include <queue>
/**
* @brief The FunctAttr class
* It is a container to store all the
* attributes and details of a function
* @author Utkarsh Simha
*/
class FunctAttr
{
public:
FunctAttr();
~FunctAttr();
FunctAttr( const FunctAttr& );
FunctAttr& operator=( const FunctAttr& );
//Queue to maintain the formal params in order
std::queue<std::string> *formal_params;
/**
* @brief Check if function is overloaded
*/
bool isOverloaded() const;
/**
* @brief Check if function is virtual
*/
bool isVirtual() const;
/**
* @brief Get number of params in the function's
* formal parameter list
*/
int numberOfParams() const;
private:
bool m_overloaded;
bool m_virtual;
/**
* @brief Sets the overloaded flag
*/
void setOverloaded();
/**
* @brief Sets the virtual flag
*/
void setVirtual();
};
#endif