INTRODUCTION
Overview
Download and Install
Documentation
Publications

REPOSITORY
Libraries

DEVELOPER
Dev Guide
Dashboard

PEOPLE
Contributors
Users

SourceForge.net Logo
Project
Download
Mailing lists

 

         

uncopyable.h

00001 /*
00002  * GearBox Project: Peer-Reviewed Open-Source Libraries for Robotics
00003  *               http://gearbox.sf.net/
00004  * Copyright (c) 2004-2010 Alex Brooks
00005  *
00006  * This distribution is licensed to you under the terms described in
00007  * the LICENSE file included in this distribution.
00008  *
00009  */
00010 
00011 #ifndef GBXSERIALACFR_UNCOPYABLE_H
00012 #define GBXSERIALACFR_UNCOPYABLE_H
00013 
00014 namespace gbxserialacfr {
00015 
00016 //
00017 // @brief Handy way to avoid unintended copies.  
00018 
00019 // Inherit from this and the compiler will barf if you try to copy the derived class.
00020 //
00021 // @author Alex Brooks
00022 //
00023 class Uncopyable
00024 {
00025 public:
00026     Uncopyable() {}
00027 private:
00028     Uncopyable(const Uncopyable&);
00029     void operator=(const Uncopyable&);
00030 };
00031 
00032 }
00033 
00034 #endif
 

Generated for GearBox by  doxygen 1.4.5