Select Git revision
-
Andreas Neu authored
Validation methods have been added VertexBuffer::validate() and FrameBuffer::validate(). These are called by State::validate()
Andreas Neu authoredValidation methods have been added VertexBuffer::validate() and FrameBuffer::validate(). These are called by State::validate()
Macros.hh 842 B
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011, Computer Graphics Group RWTH Aachen University //
// All rights reserved. //
////////////////////////////////////////////////////////////////////////////////
#ifndef ACGL_BASE_MACROS_HH
#define ACGL_BASE_MACROS_HH
//Macro to make a class not copyable
#define ACGL_NOT_COPYABLE(Class) \
private:\
Class(const Class& other){ }\
void operator=(Class& other){ }
#define ACGL_SHARED_TYPEDEF(Class) \
typedef std::tr1::shared_ptr<Class> Shared ## Class; \
typedef std::tr1::shared_ptr<const Class> ConstShared ## Class; \
typedef std::tr1::weak_ptr<Class> Weak ## Class; \
typedef std::tr1::weak_ptr<const Class> ConstWeak ## Class;
#endif // MACROS_HH