forked from qt-creator/qt-creator
Introduced CPlusPlus::Managed.
Managed is an helper base class that simplify the usage of memory pools.
This commit is contained in:
@@ -55,12 +55,12 @@
|
||||
|
||||
#include "CPlusPlusForwardDeclarations.h"
|
||||
#include "ASTfwd.h"
|
||||
#include <new>
|
||||
#include "MemoryPool.h"
|
||||
|
||||
CPLUSPLUS_BEGIN_HEADER
|
||||
CPLUSPLUS_BEGIN_NAMESPACE
|
||||
|
||||
class CPLUSPLUS_EXPORT AST
|
||||
class CPLUSPLUS_EXPORT AST: public Managed
|
||||
{
|
||||
AST(const AST &other);
|
||||
void operator =(const AST &other);
|
||||
@@ -74,10 +74,6 @@ public:
|
||||
static void accept(AST *ast, ASTVisitor *visitor)
|
||||
{ if (ast) ast->accept(visitor); }
|
||||
|
||||
void *operator new(size_t size, MemoryPool *pool);
|
||||
void operator delete(void *);
|
||||
void operator delete(void *, MemoryPool *);
|
||||
|
||||
virtual unsigned firstToken() const = 0;
|
||||
virtual unsigned lastToken() const = 0;
|
||||
|
||||
|
Reference in New Issue
Block a user