aboutsummaryrefslogtreecommitdiff
path: root/src/fstring.h
blob: a6ec0100127209803daf55b2a69ac6030b451871 (plain)
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
#ifndef F_STRING_H
#define F_STRING_H

#include <stdint.h>

/**
 *
 */
template< typename chr, typename chralloc = std::allocator<chr> >
class FString
{
public:
	FString() :
		pData( NULL ),
		pnRefs( NULL )
	{
	}

	virtual ~FString()
	{
	}

private:
	long nLength;
	chr *pData;
	uint32_t *pnRefs;
	chralloc aChars;
};

#endif