Added more NoCopy.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5922 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
hikerstk 2010-09-08 11:39:19 +00:00
parent e3be1c3bc8
commit c13933a792
11 changed files with 30 additions and 17 deletions

View File

@ -22,11 +22,12 @@
#include <string>
#include "utils/no_copy.hpp"
/**
* \brief Abstract interface for classes that can handle music playback
* \ingroup audio
*/
class Music
class Music : public NoCopy
{
public:
virtual bool load (const std::string& filename) = 0;

View File

@ -24,6 +24,8 @@
#include <stdexcept>
#include <vector>
#include "utils/no_copy.hpp"
class Music;
/**
@ -32,7 +34,7 @@ class Music;
* Delegates many calls to the underlying Music instance.
* \ingroup audio
*/
class MusicInformation
class MusicInformation : public NoCopy
{
private:
std::string m_composer;

View File

@ -27,6 +27,7 @@
#include "audio/music.hpp"
#include "audio/music_information.hpp"
#include "utils/no_copy.hpp"
class Vec3;
@ -34,7 +35,7 @@ class Vec3;
* \brief Central place to request for musics to be loaded, played, stopped, etc...
* \ingroup audio
*/
class MusicManager
class MusicManager : public NoCopy
{
private:
MusicInformation *m_current_music;

View File

@ -22,6 +22,7 @@
#define HEADER_SFX_HPP
#include "audio/sfx_manager.hpp"
#include "utils/no_copy.hpp"
/**
* \defgroup audio
@ -38,7 +39,7 @@ class Vec3;
* looping sfx like engine sounds) when necessary.
* \ingroup audio
*/
class SFXBase
class SFXBase : public NoCopy
{
public:
virtual ~SFXBase() {}

View File

@ -29,6 +29,7 @@
# include <AL/al.h>
#endif
#include "utils/no_copy.hpp"
#include "utils/vec3.hpp"
class SFXBase;
@ -41,7 +42,7 @@ class XMLNode;
* on of the (shared) buffers from the sound manager.
* \ingroup audio
*/
class SFXManager
class SFXManager : public NoCopy
{
public:

View File

@ -24,12 +24,13 @@
* \defgroup challenges
*/
#include <string>
#include <vector>
#include <fstream>
#include <irrlicht.h>
#include "utils/no_copy.hpp"
class XMLNode;
enum REWARD_TYPE
@ -52,7 +53,7 @@ struct UnlockableFeature
* \brief A class for all challenges
* \ingroup challenges
*/
class Challenge
class Challenge : public NoCopy
{
private:
enum {CH_INACTIVE, // challenge not yet possible

View File

@ -23,6 +23,8 @@
#include <map>
#include "challenges/challenge.hpp"
#include "utils/no_copy.hpp"
#include <fstream>
class XMLNode;
@ -32,7 +34,7 @@ class SFXBase;
* \brief main class to handle locking/challenges
* \ingroup challenges
*/
class UnlockManager
class UnlockManager : public NoCopy
{
private:
SFXBase *m_locked_sound;

View File

@ -1,12 +1,14 @@
#ifndef DEVICE_CONFIG_HPP
#define DEVICE_CONFIG_HPP
#include <string>
#include "input/input.hpp"
#include <iostream>
#include <fstream>
#include "io/xml_node.hpp"
#include "utils/no_copy.hpp"
#include <fstream>
#include <iostream>
#include <irrString.h>
#include <string>
/**
* \ingroup config
@ -33,7 +35,7 @@ enum DeviceConfigType
* \brief contains the key bindings information related to one input device
* \ingroup config
*/
class DeviceConfig
class DeviceConfig : public NoCopy
{
private:

View File

@ -22,6 +22,7 @@
#include <string>
#include "config/user_config.hpp"
#include "utils/no_copy.hpp"
/**
* \brief Class for managing player profiles (name, control configuration, etc.)
@ -29,7 +30,7 @@
* A list of currently playing players will be stored somewhere else (FIXME : complete comment)
* \ingroup config
*/
class PlayerProfile
class PlayerProfile : public NoCopy
{
protected:

View File

@ -25,8 +25,8 @@
*/
#include "karts/kart_properties.hpp"
#include "utils/no_copy.hpp"
//class Lisp;
class XMLNode;
class MusicInformation;
@ -37,7 +37,7 @@ class MusicInformation;
* each kart (but which can be overwritten for each kart, too).
* \ingroup config
*/
class STKConfig
class STKConfig : public NoCopy
{
protected:
KartProperties m_kart_properties; /**< Default kart properties. */

View File

@ -47,6 +47,7 @@ const int CURRENT_CONFIG_VERSION = 8;
#include "input/input.hpp"
#include "utils/constants.hpp"
#include "utils/no_copy.hpp"
#include "utils/ptr_vector.hpp"
class XMLNode;
@ -55,7 +56,7 @@ class PlayerProfile;
/**
* The base of a set of small utilities to enable quickly adding/removing stuff to/from config painlessly.
*/
class UserConfigParam
class UserConfigParam : public NoCopy
{
friend class GroupUserConfigParam;
protected:
@ -335,7 +336,7 @@ namespace UserConfigParams
* \brief Class for managing general STK user configuration data.
* \ingroup config
*/
class UserConfig
class UserConfig : public NoCopy
{
private: