forked from Mooophy/Cpp-Primer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex14_32.h
More file actions
29 lines (23 loc) · 728 Bytes
/
Copy pathex14_32.h
File metadata and controls
29 lines (23 loc) · 728 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
/***************************************************************************
* @file StrBlobPtr_pointer.h
* @author Alan.W
* @date 19 JAN 2014
* @remark a class that holds a pointer to a StrBlobPtr.
***************************************************************************/
#ifndef STRBLOBPTR_POINTER_H
#define STRBLOBPTR_POINTER_H
class StrBlobPtr;
/**
* @brief a class that holds a pointer to a StrBlobPtr.
*/
class StrBlobPtr_pointer
{
public:
StrBlobPtr_pointer() = default;
StrBlobPtr_pointer(StrBlobPtr* p) : pointer(p) { }
StrBlobPtr& operator *() const;
StrBlobPtr* operator->() const;
private:
StrBlobPtr* pointer = nullptr;
};
#endif // STRBLOBPTR_POINTER_H