TurtleBrains  0.3.1
High quality, portable, C++ framework for rapid 2D game development.
TurtleBrains::Core::Noncopyable Class Reference

#include <tb_noncopyable.h>

Inheritance diagram for TurtleBrains::Core::Noncopyable:
TurtleBrains::Application::ApplicationDialog TurtleBrains::Application::RealtimeApplication TurtleBrains::Audio::AudioManager TurtleBrains::Core::UnitTest::TestCaseInterface TurtleBrains::Game::EntityBehaviorInterface TurtleBrains::Game::TileSystem TurtleBrains::Game::Unstable::EntityFactoryInterface TurtleBrains::Graphics::RenderTarget TurtleBrains::Graphics::SpriteManager TurtleBrains::Graphics::Text TurtleBrains::Graphics::TextureManager

Detailed Description

When making an object that should not be copied or assigned to another object simply deriving from Noncopyable will do the trick. This guarentees that MyObject object(otherObject); and object = otherObject will cause a compilation error, preventing copy and/or assignment.