[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] CVS: Games/Pingus/src plf_handle.hxx,NONE,1.1
From: |
grumbel |
Subject: |
[Pingus-CVS] CVS: Games/Pingus/src plf_handle.hxx,NONE,1.1 |
Date: |
3 Mar 2003 23:01:42 -0000 |
Update of /usr/local/cvsroot/Games/Pingus/src
In directory dark:/tmp/cvs-serv8131
Added Files:
plf_handle.hxx
Log Message:
missing file
--- NEW FILE: plf_handle.hxx ---
// $Id: plf_handle.hxx,v 1.1 2003/03/03 23:01:40 grumbel Exp $
//
// Pingus - A free Lemmings clone
// Copyright (C) 2002 Ingo Ruhnke <address@hidden>
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#ifndef HEADER_PINGUS_PLF_HANDLE_HXX
#define HEADER_PINGUS_PLF_HANDLE_HXX
#include <assert.h>
class PLF;
/** Little PLF wrapper class to avoid possible deletion of our PLF* */
class PLFHandle
{
private:
PLF* plf;
public:
PLFHandle() : plf(0) {}
PLFHandle (PLF* p) : plf (p) {}
PLFHandle (const PLFHandle& p) : plf (p.plf) {}
PLF* operator->() { assert(plf); return plf; }
PLF* operator*() { assert(plf); return plf; }
PLFHandle& operator=(const PLFHandle& p)
{
plf = p.plf;
return *this;
}
};
#endif
/* EOF */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] CVS: Games/Pingus/src plf_handle.hxx,NONE,1.1,
grumbel <=
- Prev by Date:
[Pingus-CVS] CVS: Games/Pingus/data/levels/playable desert2.xml,1.2,1.3 desert3.xml,1.2,1.3 desert4.xml,1.2,1.3 desert5-tflavel.xml,1.1,1.2 desertwaste1-grumbel.xml,1.1,1.2 floater-tutorial-grumbel.xml,1.1,1.2 snow10-grumbel.xml,1.2,1.3 snow9-grumbel.xml,1.2,1.3
- Next by Date:
[Pingus-CVS] CVS: Games/Pingus/src plf_res_mgr.cxx,NONE,1.1 plf_res_mgr.hxx,NONE,1.1 Makefile.am,1.135,1.136 pingus_main.cxx,1.49,1.50 pingus_resource.cxx,1.23,1.24 pingus_resource.hxx,1.12,1.13 theme.cxx,1.13,1.14
- Previous by thread:
[Pingus-CVS] CVS: Games/Pingus/data/levels/playable desert2.xml,1.2,1.3 desert3.xml,1.2,1.3 desert4.xml,1.2,1.3 desert5-tflavel.xml,1.1,1.2 desertwaste1-grumbel.xml,1.1,1.2 floater-tutorial-grumbel.xml,1.1,1.2 snow10-grumbel.xml,1.2,1.3 snow9-grumbel.xml,1.2,1.3
- Next by thread:
[Pingus-CVS] CVS: Games/Pingus/src plf_res_mgr.cxx,NONE,1.1 plf_res_mgr.hxx,NONE,1.1 Makefile.am,1.135,1.136 pingus_main.cxx,1.49,1.50 pingus_resource.cxx,1.23,1.24 pingus_resource.hxx,1.12,1.13 theme.cxx,1.13,1.14
- Index(es):