mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 00:32:57 -04:00
general: use proper deleted funcs instead of stubs with asserts
This gives better compile-time diagnostics and saves on code, while also better communicating intent.
This commit is contained in:
parent
9fad3dba60
commit
3077316782
@ -567,22 +567,6 @@ DisplayRegionPipelineReader(DisplayRegion *object, Thread *current_thread) :
|
|||||||
#endif // _DEBUG
|
#endif // _DEBUG
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Don't attempt to copy these objects.
|
|
||||||
*/
|
|
||||||
INLINE DisplayRegionPipelineReader::
|
|
||||||
DisplayRegionPipelineReader(const DisplayRegionPipelineReader &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Don't attempt to copy these objects.
|
|
||||||
*/
|
|
||||||
INLINE void DisplayRegionPipelineReader::
|
|
||||||
operator = (const DisplayRegionPipelineReader &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -46,25 +46,6 @@ DisplayRegion(GraphicsOutput *window, const LVecBase4 &dimensions) :
|
|||||||
_window->add_display_region(this);
|
_window->add_display_region(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
DisplayRegion::
|
|
||||||
DisplayRegion(const DisplayRegion ©) :
|
|
||||||
_window(NULL),
|
|
||||||
_cull_region_pcollector("Cull:Invalid"),
|
|
||||||
_draw_region_pcollector("Draw:Invalid")
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
void DisplayRegion::
|
|
||||||
operator = (const DisplayRegion&) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -57,10 +57,8 @@ class CullTraverser;
|
|||||||
class EXPCL_PANDA_DISPLAY DisplayRegion : public TypedReferenceCount, public DrawableRegion {
|
class EXPCL_PANDA_DISPLAY DisplayRegion : public TypedReferenceCount, public DrawableRegion {
|
||||||
protected:
|
protected:
|
||||||
DisplayRegion(GraphicsOutput *window, const LVecBase4 &dimensions);
|
DisplayRegion(GraphicsOutput *window, const LVecBase4 &dimensions);
|
||||||
|
DisplayRegion(const DisplayRegion ©) = delete;
|
||||||
private:
|
void operator = (const DisplayRegion ©) = delete;
|
||||||
DisplayRegion(const DisplayRegion ©);
|
|
||||||
void operator = (const DisplayRegion ©);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual ~DisplayRegion();
|
virtual ~DisplayRegion();
|
||||||
@ -310,9 +308,8 @@ private:
|
|||||||
class EXPCL_PANDA_DISPLAY DisplayRegionPipelineReader {
|
class EXPCL_PANDA_DISPLAY DisplayRegionPipelineReader {
|
||||||
public:
|
public:
|
||||||
INLINE DisplayRegionPipelineReader(DisplayRegion *object, Thread *current_thread);
|
INLINE DisplayRegionPipelineReader(DisplayRegion *object, Thread *current_thread);
|
||||||
private:
|
DisplayRegionPipelineReader(const DisplayRegionPipelineReader ©) = delete;
|
||||||
INLINE DisplayRegionPipelineReader(const DisplayRegionPipelineReader ©);
|
void operator = (const DisplayRegionPipelineReader ©) = delete;
|
||||||
INLINE void operator = (const DisplayRegionPipelineReader ©);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
INLINE ~DisplayRegionPipelineReader();
|
INLINE ~DisplayRegionPipelineReader();
|
||||||
|
@ -34,22 +34,6 @@ GraphicsDevice(GraphicsPipe *pipe) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
GraphicsDevice::
|
|
||||||
GraphicsDevice(const GraphicsDevice &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
void GraphicsDevice::
|
|
||||||
operator = (const GraphicsDevice &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -30,10 +30,8 @@ class GraphicsPipe;
|
|||||||
class EXPCL_PANDA_DISPLAY GraphicsDevice : public TypedReferenceCount {
|
class EXPCL_PANDA_DISPLAY GraphicsDevice : public TypedReferenceCount {
|
||||||
public:
|
public:
|
||||||
GraphicsDevice(GraphicsPipe *pipe);
|
GraphicsDevice(GraphicsPipe *pipe);
|
||||||
|
GraphicsDevice(const GraphicsDevice ©) = delete;
|
||||||
private:
|
GraphicsDevice &operator = (const GraphicsDevice ©) = delete;
|
||||||
GraphicsDevice(const GraphicsDevice ©);
|
|
||||||
void operator = (const GraphicsDevice ©);
|
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
virtual ~GraphicsDevice();
|
virtual ~GraphicsDevice();
|
||||||
|
@ -159,25 +159,6 @@ GraphicsOutput(GraphicsEngine *engine, GraphicsPipe *pipe,
|
|||||||
set_clear_color(background_color.get_value());
|
set_clear_color(background_color.get_value());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
GraphicsOutput::
|
|
||||||
GraphicsOutput(const GraphicsOutput &) :
|
|
||||||
_cull_window_pcollector(_cull_pcollector, "Invalid"),
|
|
||||||
_draw_window_pcollector(_draw_pcollector, "Invalid")
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
void GraphicsOutput::
|
|
||||||
operator = (const GraphicsOutput &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -70,10 +70,8 @@ protected:
|
|||||||
GraphicsStateGuardian *gsg,
|
GraphicsStateGuardian *gsg,
|
||||||
GraphicsOutput *host,
|
GraphicsOutput *host,
|
||||||
bool default_stereo_flags);
|
bool default_stereo_flags);
|
||||||
|
GraphicsOutput(const GraphicsOutput ©) = delete;
|
||||||
private:
|
GraphicsOutput &operator = (const GraphicsOutput ©) = delete;
|
||||||
GraphicsOutput(const GraphicsOutput ©);
|
|
||||||
void operator = (const GraphicsOutput ©);
|
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
enum RenderTextureMode {
|
enum RenderTextureMode {
|
||||||
|
@ -136,25 +136,6 @@ Multifile::
|
|||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Don't try to copy Multifiles.
|
|
||||||
*/
|
|
||||||
Multifile::
|
|
||||||
Multifile(const Multifile ©) :
|
|
||||||
_read_filew(_read_file),
|
|
||||||
_read_write_filew(_read_write_file)
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Don't try to copy Multifiles.
|
|
||||||
*/
|
|
||||||
void Multifile::
|
|
||||||
operator = (const Multifile ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens the named Multifile on disk for reading. The Multifile index is read
|
* Opens the named Multifile on disk for reading. The Multifile index is read
|
||||||
* in, and the list of subfiles becomes available; individual subfiles may
|
* in, and the list of subfiles becomes available; individual subfiles may
|
||||||
|
@ -37,11 +37,10 @@ typedef struct evp_pkey_st EVP_PKEY;
|
|||||||
class EXPCL_PANDAEXPRESS Multifile : public ReferenceCount {
|
class EXPCL_PANDAEXPRESS Multifile : public ReferenceCount {
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
Multifile();
|
Multifile();
|
||||||
|
Multifile(const Multifile ©) = delete;
|
||||||
~Multifile();
|
~Multifile();
|
||||||
|
|
||||||
private:
|
Multifile &operator = (const Multifile ©) = delete;
|
||||||
Multifile(const Multifile ©);
|
|
||||||
void operator = (const Multifile ©);
|
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
BLOCKING bool open_read(const Filename &multifile_name, const streampos &offset = 0);
|
BLOCKING bool open_read(const Filename &multifile_name, const streampos &offset = 0);
|
||||||
|
@ -47,22 +47,6 @@ FfmpegVirtualFile::
|
|||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* These objects are not meant to be copied.
|
|
||||||
*/
|
|
||||||
FfmpegVirtualFile::
|
|
||||||
FfmpegVirtualFile(const FfmpegVirtualFile ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* These objects are not meant to be copied.
|
|
||||||
*/
|
|
||||||
void FfmpegVirtualFile::
|
|
||||||
operator = (const FfmpegVirtualFile ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens the movie file via Panda's VFS. Returns true on success, false on
|
* Opens the movie file via Panda's VFS. Returns true on success, false on
|
||||||
* failure. If successful, use get_format_context() to get the open file
|
* failure. If successful, use get_format_context() to get the open file
|
||||||
|
@ -34,12 +34,11 @@ struct AVFormatContext;
|
|||||||
class EXPCL_FFMPEG FfmpegVirtualFile {
|
class EXPCL_FFMPEG FfmpegVirtualFile {
|
||||||
public:
|
public:
|
||||||
FfmpegVirtualFile();
|
FfmpegVirtualFile();
|
||||||
|
FfmpegVirtualFile(const FfmpegVirtualFile ©) = delete;
|
||||||
~FfmpegVirtualFile();
|
~FfmpegVirtualFile();
|
||||||
private:
|
|
||||||
FfmpegVirtualFile(const FfmpegVirtualFile ©);
|
|
||||||
void operator = (const FfmpegVirtualFile ©);
|
|
||||||
|
|
||||||
public:
|
FfmpegVirtualFile &operator = (const FfmpegVirtualFile ©) = delete;
|
||||||
|
|
||||||
bool open_vfs(const Filename &filename);
|
bool open_vfs(const Filename &filename);
|
||||||
bool open_subfile(const SubfileInfo &info);
|
bool open_subfile(const SubfileInfo &info);
|
||||||
void close();
|
void close();
|
||||||
|
@ -371,23 +371,6 @@ GeomVertexArrayDataHandle(GeomVertexArrayData *object,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Don't attempt to copy these objects.
|
|
||||||
*/
|
|
||||||
INLINE GeomVertexArrayDataHandle::
|
|
||||||
GeomVertexArrayDataHandle(const GeomVertexArrayDataHandle ©)
|
|
||||||
: _current_thread(copy._current_thread) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Don't attempt to copy these objects.
|
|
||||||
*/
|
|
||||||
INLINE void GeomVertexArrayDataHandle::
|
|
||||||
operator = (const GeomVertexArrayDataHandle &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -257,15 +257,17 @@ private:
|
|||||||
Thread *current_thread);
|
Thread *current_thread);
|
||||||
INLINE GeomVertexArrayDataHandle(GeomVertexArrayData *object,
|
INLINE GeomVertexArrayDataHandle(GeomVertexArrayData *object,
|
||||||
Thread *current_thread);
|
Thread *current_thread);
|
||||||
INLINE GeomVertexArrayDataHandle(const GeomVertexArrayDataHandle &);
|
|
||||||
INLINE void operator = (const GeomVertexArrayDataHandle &);
|
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE ~GeomVertexArrayDataHandle();
|
INLINE ~GeomVertexArrayDataHandle();
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
GeomVertexArrayDataHandle(const GeomVertexArrayDataHandle &) = delete;
|
||||||
|
|
||||||
ALLOC_DELETED_CHAIN_DECL(GeomVertexArrayDataHandle);
|
ALLOC_DELETED_CHAIN_DECL(GeomVertexArrayDataHandle);
|
||||||
|
|
||||||
|
GeomVertexArrayDataHandle &operator = (const GeomVertexArrayDataHandle &) = delete;
|
||||||
|
|
||||||
INLINE Thread *get_current_thread() const;
|
INLINE Thread *get_current_thread() const;
|
||||||
|
|
||||||
INLINE const unsigned char *get_read_pointer(bool force) const RETURNS_ALIGNED(MEMORY_HOOK_ALIGNMENT);
|
INLINE const unsigned char *get_read_pointer(bool force) const RETURNS_ALIGNED(MEMORY_HOOK_ALIGNMENT);
|
||||||
|
@ -92,17 +92,6 @@ make_copy() const {
|
|||||||
return new CData(*this);
|
return new CData(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Use MovieTexture::make_copy() to make a duplicate copy of an existing
|
|
||||||
* MovieTexture.
|
|
||||||
*/
|
|
||||||
MovieTexture::
|
|
||||||
MovieTexture(const MovieTexture ©) :
|
|
||||||
Texture(copy)
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* xxx
|
* xxx
|
||||||
*/
|
*/
|
||||||
|
@ -34,9 +34,7 @@ class EXPCL_PANDA_GRUTIL MovieTexture : public Texture {
|
|||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
explicit MovieTexture(const string &name);
|
explicit MovieTexture(const string &name);
|
||||||
explicit MovieTexture(MovieVideo *video);
|
explicit MovieTexture(MovieVideo *video);
|
||||||
private:
|
MovieTexture(const MovieTexture ©) = delete;
|
||||||
MovieTexture(const MovieTexture ©);
|
|
||||||
PUBLISHED:
|
|
||||||
virtual ~MovieTexture();
|
virtual ~MovieTexture();
|
||||||
|
|
||||||
INLINE double get_video_length() const;
|
INLINE double get_video_length() const;
|
||||||
|
@ -119,16 +119,6 @@ PipeOcclusionCullTraverser(GraphicsOutput *host) {
|
|||||||
_live = true;
|
_live = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
PipeOcclusionCullTraverser::
|
|
||||||
PipeOcclusionCullTraverser(const PipeOcclusionCullTraverser ©) :
|
|
||||||
CullTraverser(copy)
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -42,7 +42,7 @@ class EXPCL_PANDA_GRUTIL PipeOcclusionCullTraverser : public CullTraverser,
|
|||||||
public CullHandler {
|
public CullHandler {
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
explicit PipeOcclusionCullTraverser(GraphicsOutput *host);
|
explicit PipeOcclusionCullTraverser(GraphicsOutput *host);
|
||||||
PipeOcclusionCullTraverser(const PipeOcclusionCullTraverser ©);
|
PipeOcclusionCullTraverser(const PipeOcclusionCullTraverser ©) = delete;
|
||||||
|
|
||||||
virtual void set_scene(SceneSetup *scene_setup,
|
virtual void set_scene(SceneSetup *scene_setup,
|
||||||
GraphicsStateGuardianBase *gsg,
|
GraphicsStateGuardianBase *gsg,
|
||||||
|
@ -29,23 +29,6 @@ CData(const NodePathComponent::CData ©) :
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* NodePathComponents should not be copied.
|
|
||||||
*/
|
|
||||||
INLINE NodePathComponent::
|
|
||||||
NodePathComponent(const NodePathComponent ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* NodePathComponents should not be copied.
|
|
||||||
*/
|
|
||||||
INLINE void NodePathComponent::
|
|
||||||
operator = (const NodePathComponent ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -43,13 +43,15 @@ class EXPCL_PANDA_PGRAPH NodePathComponent final : public ReferenceCount {
|
|||||||
private:
|
private:
|
||||||
NodePathComponent(PandaNode *node, NodePathComponent *next,
|
NodePathComponent(PandaNode *node, NodePathComponent *next,
|
||||||
int pipeline_stage, Thread *current_thread);
|
int pipeline_stage, Thread *current_thread);
|
||||||
INLINE NodePathComponent(const NodePathComponent ©);
|
|
||||||
INLINE void operator = (const NodePathComponent ©);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
NodePathComponent(const NodePathComponent ©) = delete;
|
||||||
INLINE ~NodePathComponent();
|
INLINE ~NodePathComponent();
|
||||||
|
|
||||||
ALLOC_DELETED_CHAIN(NodePathComponent);
|
ALLOC_DELETED_CHAIN(NodePathComponent);
|
||||||
|
|
||||||
|
NodePathComponent &operator = (const NodePathComponent ©) = delete;
|
||||||
|
|
||||||
INLINE PandaNode *get_node() const;
|
INLINE PandaNode *get_node() const;
|
||||||
INLINE bool has_key() const;
|
INLINE bool has_key() const;
|
||||||
int get_key() const;
|
int get_key() const;
|
||||||
|
@ -175,15 +175,6 @@ PandaNode(const PandaNode ©) :
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not call the copy assignment operator at all. Use make_copy() or
|
|
||||||
* copy_subgraph() to make a copy of a node.
|
|
||||||
*/
|
|
||||||
void PandaNode::
|
|
||||||
operator = (const PandaNode ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This is similar to make_copy(), but it makes a copy for the specific
|
* This is similar to make_copy(), but it makes a copy for the specific
|
||||||
* purpose of flatten. Typically, this will be a new PandaNode with a new
|
* purpose of flatten. Typically, this will be a new PandaNode with a new
|
||||||
|
@ -71,8 +71,8 @@ PUBLISHED:
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
PandaNode(const PandaNode ©);
|
PandaNode(const PandaNode ©);
|
||||||
private:
|
|
||||||
void operator = (const PandaNode ©);
|
PandaNode &operator = (const PandaNode ©) = delete;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual PandaNode *dupe_for_flatten() const;
|
virtual PandaNode *dupe_for_flatten() const;
|
||||||
|
@ -37,22 +37,6 @@ RenderAttrib() {
|
|||||||
_saved_entry = -1;
|
_saved_entry = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* RenderAttribs are not meant to be copied.
|
|
||||||
*/
|
|
||||||
RenderAttrib::
|
|
||||||
RenderAttrib(const RenderAttrib &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* RenderAttribs are not meant to be copied.
|
|
||||||
*/
|
|
||||||
void RenderAttrib::
|
|
||||||
operator = (const RenderAttrib &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The destructor is responsible for removing the RenderAttrib from the global
|
* The destructor is responsible for removing the RenderAttrib from the global
|
||||||
* set if it is there.
|
* set if it is there.
|
||||||
|
@ -51,13 +51,13 @@ class RenderState;
|
|||||||
class EXPCL_PANDA_PGRAPH RenderAttrib : public TypedWritableReferenceCount {
|
class EXPCL_PANDA_PGRAPH RenderAttrib : public TypedWritableReferenceCount {
|
||||||
protected:
|
protected:
|
||||||
RenderAttrib();
|
RenderAttrib();
|
||||||
private:
|
|
||||||
RenderAttrib(const RenderAttrib ©);
|
|
||||||
void operator = (const RenderAttrib ©);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
RenderAttrib(const RenderAttrib ©) = delete;
|
||||||
virtual ~RenderAttrib();
|
virtual ~RenderAttrib();
|
||||||
|
|
||||||
|
RenderAttrib &operator = (const RenderAttrib ©) = delete;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE CPT(RenderAttrib) compose(const RenderAttrib *other) const;
|
INLINE CPT(RenderAttrib) compose(const RenderAttrib *other) const;
|
||||||
INLINE CPT(RenderAttrib) invert_compose(const RenderAttrib *other) const;
|
INLINE CPT(RenderAttrib) invert_compose(const RenderAttrib *other) const;
|
||||||
|
@ -35,22 +35,6 @@ RenderEffect() {
|
|||||||
_saved_entry = _effects->end();
|
_saved_entry = _effects->end();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* RenderEffects are not meant to be copied.
|
|
||||||
*/
|
|
||||||
RenderEffect::
|
|
||||||
RenderEffect(const RenderEffect &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* RenderEffects are not meant to be copied.
|
|
||||||
*/
|
|
||||||
void RenderEffect::
|
|
||||||
operator = (const RenderEffect &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The destructor is responsible for removing the RenderEffect from the global
|
* The destructor is responsible for removing the RenderEffect from the global
|
||||||
* set if it is there.
|
* set if it is there.
|
||||||
|
@ -48,13 +48,13 @@ class PandaNode;
|
|||||||
class EXPCL_PANDA_PGRAPH RenderEffect : public TypedWritableReferenceCount {
|
class EXPCL_PANDA_PGRAPH RenderEffect : public TypedWritableReferenceCount {
|
||||||
protected:
|
protected:
|
||||||
RenderEffect();
|
RenderEffect();
|
||||||
private:
|
|
||||||
RenderEffect(const RenderEffect ©);
|
|
||||||
void operator = (const RenderEffect ©);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
RenderEffect(const RenderEffect ©) = delete;
|
||||||
virtual ~RenderEffect();
|
virtual ~RenderEffect();
|
||||||
|
|
||||||
|
RenderEffect &operator = (const RenderEffect ©) = delete;
|
||||||
|
|
||||||
virtual bool safe_to_transform() const;
|
virtual bool safe_to_transform() const;
|
||||||
virtual CPT(TransformState) prepare_flatten_transform(const TransformState *net_transform) const;
|
virtual CPT(TransformState) prepare_flatten_transform(const TransformState *net_transform) const;
|
||||||
virtual bool safe_to_combine() const;
|
virtual bool safe_to_combine() const;
|
||||||
|
@ -48,22 +48,6 @@ RenderEffects() : _lock("RenderEffects") {
|
|||||||
_flags = 0;
|
_flags = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* RenderEffects are not meant to be copied.
|
|
||||||
*/
|
|
||||||
RenderEffects::
|
|
||||||
RenderEffects(const RenderEffects &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* RenderEffects are not meant to be copied.
|
|
||||||
*/
|
|
||||||
void RenderEffects::
|
|
||||||
operator = (const RenderEffects &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The destructor is responsible for removing the RenderEffects from the
|
* The destructor is responsible for removing the RenderEffects from the
|
||||||
* global set if it is there.
|
* global set if it is there.
|
||||||
|
@ -42,13 +42,12 @@ class EXPCL_PANDA_PGRAPH RenderEffects : public TypedWritableReferenceCount {
|
|||||||
protected:
|
protected:
|
||||||
RenderEffects();
|
RenderEffects();
|
||||||
|
|
||||||
private:
|
|
||||||
RenderEffects(const RenderEffects ©);
|
|
||||||
void operator = (const RenderEffects ©);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
RenderEffects(const RenderEffects ©) = delete;
|
||||||
virtual ~RenderEffects();
|
virtual ~RenderEffects();
|
||||||
|
|
||||||
|
RenderEffects &operator = (const RenderEffects ©) = delete;
|
||||||
|
|
||||||
bool safe_to_transform() const;
|
bool safe_to_transform() const;
|
||||||
virtual CPT(TransformState) prepare_flatten_transform(const TransformState *net_transform) const;
|
virtual CPT(TransformState) prepare_flatten_transform(const TransformState *net_transform) const;
|
||||||
bool safe_to_combine() const;
|
bool safe_to_combine() const;
|
||||||
|
@ -105,14 +105,6 @@ RenderState(const RenderState ©) :
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* RenderStates are not meant to be copied.
|
|
||||||
*/
|
|
||||||
void RenderState::
|
|
||||||
operator = (const RenderState &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The destructor is responsible for removing the RenderState from the global
|
* The destructor is responsible for removing the RenderState from the global
|
||||||
* set if it is there.
|
* set if it is there.
|
||||||
|
@ -50,12 +50,13 @@ protected:
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
RenderState(const RenderState ©);
|
RenderState(const RenderState ©);
|
||||||
void operator = (const RenderState ©);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
virtual ~RenderState();
|
virtual ~RenderState();
|
||||||
ALLOC_DELETED_CHAIN(RenderState);
|
ALLOC_DELETED_CHAIN(RenderState);
|
||||||
|
|
||||||
|
RenderState &operator = (const RenderState ©) = delete;
|
||||||
|
|
||||||
typedef RenderAttribRegistry::SlotMask SlotMask;
|
typedef RenderAttribRegistry::SlotMask SlotMask;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
|
@ -68,22 +68,6 @@ TransformState() : _lock("TransformState") {
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* TransformStates are not meant to be copied.
|
|
||||||
*/
|
|
||||||
TransformState::
|
|
||||||
TransformState(const TransformState &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* TransformStates are not meant to be copied.
|
|
||||||
*/
|
|
||||||
void TransformState::
|
|
||||||
operator = (const TransformState &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The destructor is responsible for removing the TransformState from the
|
* The destructor is responsible for removing the TransformState from the
|
||||||
* global set if it is there.
|
* global set if it is there.
|
||||||
|
@ -55,14 +55,13 @@ class EXPCL_PANDA_PGRAPH TransformState final : public NodeCachedReferenceCount
|
|||||||
protected:
|
protected:
|
||||||
TransformState();
|
TransformState();
|
||||||
|
|
||||||
private:
|
|
||||||
TransformState(const TransformState ©);
|
|
||||||
void operator = (const TransformState ©);
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
TransformState(const TransformState ©) = delete;
|
||||||
virtual ~TransformState();
|
virtual ~TransformState();
|
||||||
ALLOC_DELETED_CHAIN(TransformState);
|
ALLOC_DELETED_CHAIN(TransformState);
|
||||||
|
|
||||||
|
TransformState &operator = (const TransformState ©) = delete;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE bool operator != (const TransformState &other) const;
|
INLINE bool operator != (const TransformState &other) const;
|
||||||
INLINE int compare_to(const TransformState &other) const;
|
INLINE int compare_to(const TransformState &other) const;
|
||||||
|
@ -27,44 +27,6 @@ ConditionVar(Mutex &mutex) :
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
INLINE ConditionVar::
|
|
||||||
~ConditionVar() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE ConditionVar::
|
|
||||||
ConditionVar(const ConditionVar ©) :
|
|
||||||
#ifdef DEBUG_THREADS
|
|
||||||
ConditionVarDebug(copy.get_mutex())
|
|
||||||
#else
|
|
||||||
ConditionVarDirect(copy.get_mutex())
|
|
||||||
#endif // DEBUG_THREADS
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE void ConditionVar::
|
|
||||||
operator = (const ConditionVar ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The notify_all() method is specifically *not* provided by ConditionVar.
|
|
||||||
* Use ConditionVarFull if you need to call this method.
|
|
||||||
*/
|
|
||||||
INLINE void ConditionVar::
|
|
||||||
notify_all() {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the mutex associated with this condition variable.
|
* Returns the mutex associated with this condition variable.
|
||||||
*/
|
*/
|
||||||
|
@ -43,20 +43,19 @@ class EXPCL_PANDA_PIPELINE ConditionVar : public ConditionVarDirect
|
|||||||
{
|
{
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE explicit ConditionVar(Mutex &mutex);
|
INLINE explicit ConditionVar(Mutex &mutex);
|
||||||
INLINE ~ConditionVar();
|
ConditionVar(const ConditionVar ©) = delete;
|
||||||
private:
|
~ConditionVar() = default;
|
||||||
INLINE ConditionVar(const ConditionVar ©);
|
|
||||||
INLINE void operator = (const ConditionVar ©);
|
|
||||||
|
|
||||||
// These methods are inherited from the base class. INLINE void wait();
|
ConditionVar &operator = (const ConditionVar ©) = delete;
|
||||||
// INLINE void notify();
|
|
||||||
|
// These methods are inherited from the base class.
|
||||||
|
//INLINE void wait();
|
||||||
|
//INLINE void notify();
|
||||||
|
|
||||||
private:
|
|
||||||
// The notify_all() method is specifically *not* provided by ConditionVar.
|
// The notify_all() method is specifically *not* provided by ConditionVar.
|
||||||
// Use ConditionVarFull if you need to call this method.
|
// Use ConditionVarFull if you need to call this method.
|
||||||
INLINE void notify_all();
|
void notify_all() = delete;
|
||||||
|
|
||||||
PUBLISHED:
|
|
||||||
INLINE Mutex &get_mutex() const;
|
INLINE Mutex &get_mutex() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -11,25 +11,6 @@
|
|||||||
* @date 2006-02-13
|
* @date 2006-02-13
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE ConditionVarDebug::
|
|
||||||
ConditionVarDebug(const ConditionVarDebug ©) :
|
|
||||||
_mutex(copy._mutex),
|
|
||||||
_impl(*_mutex._global_lock)
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE void ConditionVarDebug::
|
|
||||||
operator = (const ConditionVarDebug ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the mutex associated with this condition variable.
|
* Returns the mutex associated with this condition variable.
|
||||||
*/
|
*/
|
||||||
|
@ -32,10 +32,10 @@
|
|||||||
class EXPCL_PANDA_PIPELINE ConditionVarDebug {
|
class EXPCL_PANDA_PIPELINE ConditionVarDebug {
|
||||||
public:
|
public:
|
||||||
explicit ConditionVarDebug(MutexDebug &mutex);
|
explicit ConditionVarDebug(MutexDebug &mutex);
|
||||||
|
ConditionVarDebug(const ConditionVarDebug ©) = delete;
|
||||||
virtual ~ConditionVarDebug();
|
virtual ~ConditionVarDebug();
|
||||||
private:
|
|
||||||
INLINE ConditionVarDebug(const ConditionVarDebug ©);
|
ConditionVarDebug &operator = (const ConditionVarDebug ©) = delete;
|
||||||
INLINE void operator = (const ConditionVarDebug ©);
|
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE MutexDebug &get_mutex() const;
|
INLINE MutexDebug &get_mutex() const;
|
||||||
|
@ -24,32 +24,6 @@ ConditionVarDirect(MutexDirect &mutex) :
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
INLINE ConditionVarDirect::
|
|
||||||
~ConditionVarDirect() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE ConditionVarDirect::
|
|
||||||
ConditionVarDirect(const ConditionVarDirect ©) :
|
|
||||||
_mutex(copy._mutex),
|
|
||||||
_impl(_mutex._impl)
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE void ConditionVarDirect::
|
|
||||||
operator = (const ConditionVarDirect ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the mutex associated with this condition variable.
|
* Returns the mutex associated with this condition variable.
|
||||||
*/
|
*/
|
||||||
|
@ -32,10 +32,10 @@
|
|||||||
class EXPCL_PANDA_PIPELINE ConditionVarDirect {
|
class EXPCL_PANDA_PIPELINE ConditionVarDirect {
|
||||||
public:
|
public:
|
||||||
INLINE explicit ConditionVarDirect(MutexDirect &mutex);
|
INLINE explicit ConditionVarDirect(MutexDirect &mutex);
|
||||||
INLINE ~ConditionVarDirect();
|
ConditionVarDirect(const ConditionVarDirect ©) = delete;
|
||||||
private:
|
~ConditionVarDirect() = default;
|
||||||
INLINE ConditionVarDirect(const ConditionVarDirect ©);
|
|
||||||
INLINE void operator = (const ConditionVarDirect ©);
|
ConditionVarDirect &operator = (const ConditionVarDirect ©) = delete;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE MutexDirect &get_mutex() const;
|
INLINE MutexDirect &get_mutex() const;
|
||||||
|
@ -27,35 +27,6 @@ ConditionVarFull(Mutex &mutex) :
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
INLINE ConditionVarFull::
|
|
||||||
~ConditionVarFull() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE ConditionVarFull::
|
|
||||||
ConditionVarFull(const ConditionVarFull ©) :
|
|
||||||
#ifdef DEBUG_THREADS
|
|
||||||
ConditionVarFullDebug(copy.get_mutex())
|
|
||||||
#else
|
|
||||||
ConditionVarFullDirect(copy.get_mutex())
|
|
||||||
#endif // DEBUG_THREADS
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE void ConditionVarFull::
|
|
||||||
operator = (const ConditionVarFull ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the mutex associated with this condition variable.
|
* Returns the mutex associated with this condition variable.
|
||||||
*/
|
*/
|
||||||
|
@ -46,12 +46,11 @@ class EXPCL_PANDA_PIPELINE ConditionVarFull : public ConditionVarFullDirect
|
|||||||
{
|
{
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE explicit ConditionVarFull(Mutex &mutex);
|
INLINE explicit ConditionVarFull(Mutex &mutex);
|
||||||
INLINE ~ConditionVarFull();
|
ConditionVarFull(const ConditionVarFull ©) = delete;
|
||||||
private:
|
~ConditionVarFull() = default;
|
||||||
INLINE ConditionVarFull(const ConditionVarFull ©);
|
|
||||||
INLINE void operator = (const ConditionVarFull ©);
|
ConditionVarFull &operator = (const ConditionVarFull ©) = delete;
|
||||||
|
|
||||||
PUBLISHED:
|
|
||||||
INLINE Mutex &get_mutex() const;
|
INLINE Mutex &get_mutex() const;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -11,25 +11,6 @@
|
|||||||
* @date 2006-08-28
|
* @date 2006-08-28
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE ConditionVarFullDebug::
|
|
||||||
ConditionVarFullDebug(const ConditionVarFullDebug ©) :
|
|
||||||
_mutex(copy._mutex),
|
|
||||||
_impl(*_mutex._global_lock)
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE void ConditionVarFullDebug::
|
|
||||||
operator = (const ConditionVarFullDebug ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the mutex associated with this condition variable.
|
* Returns the mutex associated with this condition variable.
|
||||||
*/
|
*/
|
||||||
|
@ -32,10 +32,10 @@
|
|||||||
class EXPCL_PANDA_PIPELINE ConditionVarFullDebug {
|
class EXPCL_PANDA_PIPELINE ConditionVarFullDebug {
|
||||||
public:
|
public:
|
||||||
explicit ConditionVarFullDebug(MutexDebug &mutex);
|
explicit ConditionVarFullDebug(MutexDebug &mutex);
|
||||||
|
ConditionVarFullDebug(const ConditionVarFullDebug ©) = delete;
|
||||||
virtual ~ConditionVarFullDebug();
|
virtual ~ConditionVarFullDebug();
|
||||||
private:
|
|
||||||
INLINE ConditionVarFullDebug(const ConditionVarFullDebug ©);
|
ConditionVarFullDebug &operator = (const ConditionVarFullDebug ©) = delete;
|
||||||
INLINE void operator = (const ConditionVarFullDebug ©);
|
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE MutexDebug &get_mutex() const;
|
INLINE MutexDebug &get_mutex() const;
|
||||||
|
@ -24,32 +24,6 @@ ConditionVarFullDirect(MutexDirect &mutex) :
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
INLINE ConditionVarFullDirect::
|
|
||||||
~ConditionVarFullDirect() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE ConditionVarFullDirect::
|
|
||||||
ConditionVarFullDirect(const ConditionVarFullDirect ©) :
|
|
||||||
_mutex(copy._mutex),
|
|
||||||
_impl(_mutex._impl)
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy condition variables.
|
|
||||||
*/
|
|
||||||
INLINE void ConditionVarFullDirect::
|
|
||||||
operator = (const ConditionVarFullDirect ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the mutex associated with this condition variable.
|
* Returns the mutex associated with this condition variable.
|
||||||
*/
|
*/
|
||||||
|
@ -32,10 +32,10 @@
|
|||||||
class EXPCL_PANDA_PIPELINE ConditionVarFullDirect {
|
class EXPCL_PANDA_PIPELINE ConditionVarFullDirect {
|
||||||
public:
|
public:
|
||||||
INLINE explicit ConditionVarFullDirect(MutexDirect &mutex);
|
INLINE explicit ConditionVarFullDirect(MutexDirect &mutex);
|
||||||
INLINE ~ConditionVarFullDirect();
|
ConditionVarFullDirect(const ConditionVarFullDirect ©) = delete;
|
||||||
private:
|
~ConditionVarFullDirect() = default;
|
||||||
INLINE ConditionVarFullDirect(const ConditionVarFullDirect ©);
|
|
||||||
INLINE void operator = (const ConditionVarFullDirect ©);
|
ConditionVarFullDirect &operator = (const ConditionVarFullDirect ©) = delete;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE MutexDirect &get_mutex() const;
|
INLINE MutexDirect &get_mutex() const;
|
||||||
|
@ -31,19 +31,3 @@ INLINE CyclerHolder::
|
|||||||
_cycler->release();
|
_cycler->release();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy CyclerHolders.
|
|
||||||
*/
|
|
||||||
INLINE CyclerHolder::
|
|
||||||
CyclerHolder(const CyclerHolder ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy CyclerHolders.
|
|
||||||
*/
|
|
||||||
INLINE void CyclerHolder::
|
|
||||||
operator = (const CyclerHolder ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
@ -25,10 +25,10 @@
|
|||||||
class EXPCL_PANDA_PIPELINE CyclerHolder {
|
class EXPCL_PANDA_PIPELINE CyclerHolder {
|
||||||
public:
|
public:
|
||||||
INLINE CyclerHolder(PipelineCyclerBase &cycler);
|
INLINE CyclerHolder(PipelineCyclerBase &cycler);
|
||||||
|
CyclerHolder(const CyclerHolder ©) = delete;
|
||||||
INLINE ~CyclerHolder();
|
INLINE ~CyclerHolder();
|
||||||
private:
|
|
||||||
INLINE CyclerHolder(const CyclerHolder ©);
|
CyclerHolder &operator = (const CyclerHolder ©) = delete;
|
||||||
INLINE void operator = (const CyclerHolder ©);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#ifdef DO_PIPELINING
|
#ifdef DO_PIPELINING
|
||||||
|
@ -48,7 +48,7 @@ PUBLISHED:
|
|||||||
LightMutex(const LightMutex ©) = delete;
|
LightMutex(const LightMutex ©) = delete;
|
||||||
~LightMutex() = default;
|
~LightMutex() = default;
|
||||||
|
|
||||||
void operator = (const LightMutex ©) = delete;
|
LightMutex &operator = (const LightMutex ©) = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "lightMutex.I"
|
#include "lightMutex.I"
|
||||||
|
@ -50,19 +50,3 @@ INLINE LightMutexHolder::
|
|||||||
_mutex->release();
|
_mutex->release();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy LightMutexHolders.
|
|
||||||
*/
|
|
||||||
INLINE LightMutexHolder::
|
|
||||||
LightMutexHolder(const LightMutexHolder ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy LightMutexHolders.
|
|
||||||
*/
|
|
||||||
INLINE void LightMutexHolder::
|
|
||||||
operator = (const LightMutexHolder ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
@ -26,10 +26,10 @@ class EXPCL_PANDA_PIPELINE LightMutexHolder {
|
|||||||
public:
|
public:
|
||||||
INLINE LightMutexHolder(const LightMutex &mutex);
|
INLINE LightMutexHolder(const LightMutex &mutex);
|
||||||
INLINE LightMutexHolder(LightMutex *&mutex);
|
INLINE LightMutexHolder(LightMutex *&mutex);
|
||||||
|
LightMutexHolder(const LightMutexHolder ©) = delete;
|
||||||
INLINE ~LightMutexHolder();
|
INLINE ~LightMutexHolder();
|
||||||
private:
|
|
||||||
INLINE LightMutexHolder(const LightMutexHolder ©);
|
LightMutexHolder &operator = (const LightMutexHolder ©) = delete;
|
||||||
INLINE void operator = (const LightMutexHolder ©);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
|
#if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
|
||||||
|
@ -46,18 +46,3 @@ LightReMutex(const string &)
|
|||||||
#endif // DEBUG_THREADS
|
#endif // DEBUG_THREADS
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
INLINE LightReMutex::
|
|
||||||
~LightReMutex() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy mutexes.
|
|
||||||
*/
|
|
||||||
INLINE void LightReMutex::
|
|
||||||
operator = (const LightReMutex ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
@ -36,10 +36,10 @@ public:
|
|||||||
INLINE explicit LightReMutex(const char *name);
|
INLINE explicit LightReMutex(const char *name);
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE explicit LightReMutex(const string &name);
|
INLINE explicit LightReMutex(const string &name);
|
||||||
INLINE ~LightReMutex();
|
LightReMutex(const LightReMutex ©) = delete;
|
||||||
private:
|
~LightReMutex() = default;
|
||||||
INLINE LightReMutex(const LightReMutex ©);
|
|
||||||
INLINE void operator = (const LightReMutex ©);
|
LightReMutex &operator = (const LightReMutex ©) = delete;
|
||||||
};
|
};
|
||||||
|
|
||||||
#include "lightReMutex.I"
|
#include "lightReMutex.I"
|
||||||
|
@ -62,19 +62,3 @@ INLINE LightReMutexHolder::
|
|||||||
_mutex->release();
|
_mutex->release();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy LightReMutexHolders.
|
|
||||||
*/
|
|
||||||
INLINE LightReMutexHolder::
|
|
||||||
LightReMutexHolder(const LightReMutexHolder ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy LightReMutexHolders.
|
|
||||||
*/
|
|
||||||
INLINE void LightReMutexHolder::
|
|
||||||
operator = (const LightReMutexHolder ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
@ -27,10 +27,10 @@ public:
|
|||||||
INLINE LightReMutexHolder(const LightReMutex &mutex);
|
INLINE LightReMutexHolder(const LightReMutex &mutex);
|
||||||
INLINE LightReMutexHolder(const LightReMutex &mutex, Thread *current_thread);
|
INLINE LightReMutexHolder(const LightReMutex &mutex, Thread *current_thread);
|
||||||
INLINE LightReMutexHolder(LightReMutex *&mutex);
|
INLINE LightReMutexHolder(LightReMutex *&mutex);
|
||||||
|
LightReMutexHolder(const LightReMutexHolder ©) = delete;
|
||||||
INLINE ~LightReMutexHolder();
|
INLINE ~LightReMutexHolder();
|
||||||
private:
|
|
||||||
INLINE LightReMutexHolder(const LightReMutexHolder ©);
|
LightReMutexHolder &operator = (const LightReMutexHolder ©) = delete;
|
||||||
INLINE void operator = (const LightReMutexHolder ©);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
|
#if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
|
||||||
|
@ -64,19 +64,3 @@ INLINE MutexHolder::
|
|||||||
_mutex->release();
|
_mutex->release();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy MutexHolders.
|
|
||||||
*/
|
|
||||||
INLINE MutexHolder::
|
|
||||||
MutexHolder(const MutexHolder ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy MutexHolders.
|
|
||||||
*/
|
|
||||||
INLINE void MutexHolder::
|
|
||||||
operator = (const MutexHolder ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
@ -27,10 +27,10 @@ public:
|
|||||||
INLINE MutexHolder(const Mutex &mutex);
|
INLINE MutexHolder(const Mutex &mutex);
|
||||||
INLINE MutexHolder(const Mutex &mutex, Thread *current_thread);
|
INLINE MutexHolder(const Mutex &mutex, Thread *current_thread);
|
||||||
INLINE MutexHolder(Mutex *&mutex);
|
INLINE MutexHolder(Mutex *&mutex);
|
||||||
|
MutexHolder(const MutexHolder ©) = delete;
|
||||||
INLINE ~MutexHolder();
|
INLINE ~MutexHolder();
|
||||||
private:
|
|
||||||
INLINE MutexHolder(const MutexHolder ©);
|
MutexHolder &operator = (const MutexHolder ©) = delete;
|
||||||
INLINE void operator = (const MutexHolder ©);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
// If HAVE_THREADS is defined, the Mutex class implements an actual mutex
|
// If HAVE_THREADS is defined, the Mutex class implements an actual mutex
|
||||||
|
@ -30,35 +30,6 @@ PipelineCyclerTrivialImpl(CycleData *initial_data, Pipeline *) {
|
|||||||
#endif // SIMPLE_STRUCT_POINTERS
|
#endif // SIMPLE_STRUCT_POINTERS
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
INLINE PipelineCyclerTrivialImpl::
|
|
||||||
PipelineCyclerTrivialImpl(const PipelineCyclerTrivialImpl &) {
|
|
||||||
// The copy constructor for the PipelineCyclerTrivialImpl case doesn't work.
|
|
||||||
// Don't try to use it. The PipelineCycler template class is ifdeffed
|
|
||||||
// appropriately to call the normal constructor instead.
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
INLINE void PipelineCyclerTrivialImpl::
|
|
||||||
operator = (const PipelineCyclerTrivialImpl &) {
|
|
||||||
// The copy assignment operator for the PipelineCyclerTrivialImpl case
|
|
||||||
// doesn't work. Don't try to use it. The PipelineCycler template class is
|
|
||||||
// ifdeffed appropriately not to call this method.
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
INLINE PipelineCyclerTrivialImpl::
|
|
||||||
~PipelineCyclerTrivialImpl() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Grabs an overall lock on the cycler. Release it with a call to release().
|
* Grabs an overall lock on the cycler. Release it with a call to release().
|
||||||
* This lock should be held while walking the list of stages.
|
* This lock should be held while walking the list of stages.
|
||||||
|
@ -41,11 +41,10 @@ class Pipeline;
|
|||||||
struct EXPCL_PANDA_PIPELINE PipelineCyclerTrivialImpl {
|
struct EXPCL_PANDA_PIPELINE PipelineCyclerTrivialImpl {
|
||||||
public:
|
public:
|
||||||
INLINE PipelineCyclerTrivialImpl(CycleData *initial_data, Pipeline *pipeline = NULL);
|
INLINE PipelineCyclerTrivialImpl(CycleData *initial_data, Pipeline *pipeline = NULL);
|
||||||
private:
|
PipelineCyclerTrivialImpl(const PipelineCyclerTrivialImpl ©) = delete;
|
||||||
INLINE PipelineCyclerTrivialImpl(const PipelineCyclerTrivialImpl ©);
|
~PipelineCyclerTrivialImpl() = default;
|
||||||
INLINE void operator = (const PipelineCyclerTrivialImpl ©);
|
|
||||||
public:
|
PipelineCyclerTrivialImpl &operator = (const PipelineCyclerTrivialImpl ©) = delete;
|
||||||
INLINE ~PipelineCyclerTrivialImpl();
|
|
||||||
|
|
||||||
INLINE void acquire(Thread *current_thread = NULL);
|
INLINE void acquire(Thread *current_thread = NULL);
|
||||||
INLINE void release();
|
INLINE void release();
|
||||||
|
@ -23,31 +23,6 @@ Semaphore(int initial_count) :
|
|||||||
nassertv(_count >= 0);
|
nassertv(_count >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
INLINE Semaphore::
|
|
||||||
~Semaphore() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy semaphores.
|
|
||||||
*/
|
|
||||||
INLINE Semaphore::
|
|
||||||
Semaphore(const Semaphore ©) :
|
|
||||||
_cvar(_lock)
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy semaphores.
|
|
||||||
*/
|
|
||||||
INLINE void Semaphore::
|
|
||||||
operator = (const Semaphore ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Decrements the internal count. If the count was already at zero, blocks
|
* Decrements the internal count. If the count was already at zero, blocks
|
||||||
* until the count is nonzero, then decrements it.
|
* until the count is nonzero, then decrements it.
|
||||||
|
@ -30,10 +30,10 @@
|
|||||||
class EXPCL_PANDA_PIPELINE Semaphore {
|
class EXPCL_PANDA_PIPELINE Semaphore {
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE explicit Semaphore(int initial_count = 1);
|
INLINE explicit Semaphore(int initial_count = 1);
|
||||||
INLINE ~Semaphore();
|
Semaphore(const Semaphore ©) = delete;
|
||||||
private:
|
~Semaphore() = default;
|
||||||
INLINE Semaphore(const Semaphore ©);
|
|
||||||
INLINE void operator = (const Semaphore ©);
|
Semaphore &operator = (const Semaphore ©) = delete;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
BLOCKING INLINE void acquire();
|
BLOCKING INLINE void acquire();
|
||||||
|
@ -61,19 +61,3 @@ INLINE ReMutexHolder::
|
|||||||
_mutex->release();
|
_mutex->release();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy ReMutexHolders.
|
|
||||||
*/
|
|
||||||
INLINE ReMutexHolder::
|
|
||||||
ReMutexHolder(const ReMutexHolder ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy ReMutexHolders.
|
|
||||||
*/
|
|
||||||
INLINE void ReMutexHolder::
|
|
||||||
operator = (const ReMutexHolder ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
@ -27,10 +27,10 @@ public:
|
|||||||
INLINE ReMutexHolder(const ReMutex &mutex);
|
INLINE ReMutexHolder(const ReMutex &mutex);
|
||||||
INLINE ReMutexHolder(const ReMutex &mutex, Thread *current_thread);
|
INLINE ReMutexHolder(const ReMutex &mutex, Thread *current_thread);
|
||||||
INLINE ReMutexHolder(ReMutex *&mutex);
|
INLINE ReMutexHolder(ReMutex *&mutex);
|
||||||
|
ReMutexHolder(const ReMutexHolder ©) = delete;
|
||||||
INLINE ~ReMutexHolder();
|
INLINE ~ReMutexHolder();
|
||||||
private:
|
|
||||||
INLINE ReMutexHolder(const ReMutexHolder ©);
|
ReMutexHolder &operator = (const ReMutexHolder ©) = delete;
|
||||||
INLINE void operator = (const ReMutexHolder ©);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
#if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
|
#if defined(HAVE_THREADS) || defined(DEBUG_THREADS)
|
||||||
|
@ -11,22 +11,6 @@
|
|||||||
* @date 2002-08-08
|
* @date 2002-08-08
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy threads.
|
|
||||||
*/
|
|
||||||
INLINE Thread::
|
|
||||||
Thread(const Thread ©) : _impl(this) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Do not attempt to copy threads.
|
|
||||||
*/
|
|
||||||
INLINE void Thread::
|
|
||||||
operator = (const Thread ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the sync name of the thread. This name collects threads into "sync
|
* Returns the sync name of the thread. This name collects threads into "sync
|
||||||
* groups", which are expected to run synchronously. This is mainly used for
|
* groups", which are expected to run synchronously. This is mainly used for
|
||||||
|
@ -46,15 +46,14 @@ class AsyncTask;
|
|||||||
class EXPCL_PANDA_PIPELINE Thread : public TypedReferenceCount, public Namable {
|
class EXPCL_PANDA_PIPELINE Thread : public TypedReferenceCount, public Namable {
|
||||||
protected:
|
protected:
|
||||||
Thread(const string &name, const string &sync_name);
|
Thread(const string &name, const string &sync_name);
|
||||||
|
Thread(const Thread ©) = delete;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
virtual ~Thread();
|
virtual ~Thread();
|
||||||
|
|
||||||
private:
|
|
||||||
INLINE Thread(const Thread ©);
|
|
||||||
INLINE void operator = (const Thread ©);
|
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
Thread &operator = (const Thread ©) = delete;
|
||||||
|
|
||||||
virtual void thread_main()=0;
|
virtual void thread_main()=0;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
|
@ -61,15 +61,6 @@ STTree(const Filename &fullpath) :
|
|||||||
_is_valid = true;
|
_is_valid = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* An STTree copy constructor is not supported.
|
|
||||||
*/
|
|
||||||
STTree::
|
|
||||||
STTree(const STTree ©) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -28,8 +28,7 @@ class SpeedTreeNode;
|
|||||||
class EXPCL_PANDASPEEDTREE STTree : public TypedReferenceCount, public Namable {
|
class EXPCL_PANDASPEEDTREE STTree : public TypedReferenceCount, public Namable {
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
STTree(const Filename &fullpath);
|
STTree(const Filename &fullpath);
|
||||||
private:
|
STTree(const STTree ©) = delete;
|
||||||
STTree(const STTree ©);
|
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
INLINE const Filename &get_fullpath() const;
|
INLINE const Filename &get_fullpath() const;
|
||||||
|
@ -39,25 +39,6 @@ DynamicTextGlyph(int character, PN_stdfloat advance) :
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Copying DynamicTextGlyph objects is not allowed.
|
|
||||||
*/
|
|
||||||
INLINE DynamicTextGlyph::
|
|
||||||
DynamicTextGlyph(const DynamicTextGlyph &) :
|
|
||||||
TextGlyph(0)
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Copying DynamicTextGlyph objects is not allowed.
|
|
||||||
*/
|
|
||||||
INLINE void DynamicTextGlyph::
|
|
||||||
operator = (const DynamicTextGlyph &) {
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the DynamicTextPage that this glyph is on.
|
* Returns the DynamicTextPage that this glyph is on.
|
||||||
*/
|
*/
|
||||||
|
@ -34,9 +34,9 @@ public:
|
|||||||
int x, int y, int x_size, int y_size,
|
int x, int y, int x_size, int y_size,
|
||||||
int margin, PN_stdfloat advance);
|
int margin, PN_stdfloat advance);
|
||||||
INLINE DynamicTextGlyph(int character, PN_stdfloat advance);
|
INLINE DynamicTextGlyph(int character, PN_stdfloat advance);
|
||||||
private:
|
DynamicTextGlyph(const DynamicTextGlyph ©) = delete;
|
||||||
INLINE DynamicTextGlyph(const DynamicTextGlyph ©);
|
|
||||||
INLINE void operator = (const DynamicTextGlyph ©);
|
DynamicTextGlyph &operator = (const DynamicTextGlyph ©) = delete;
|
||||||
|
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
virtual ~DynamicTextGlyph();
|
virtual ~DynamicTextGlyph();
|
||||||
|
@ -48,18 +48,6 @@ OpenCVTexture(const string &name) :
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Use OpenCVTexture::make_copy() to make a duplicate copy of an existing
|
|
||||||
* OpenCVTexture.
|
|
||||||
*/
|
|
||||||
OpenCVTexture::
|
|
||||||
OpenCVTexture(const OpenCVTexture ©) :
|
|
||||||
VideoTexture(copy),
|
|
||||||
_pages(copy._pages)
|
|
||||||
{
|
|
||||||
nassertv(false);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
@ -29,9 +29,7 @@ struct CvCapture;
|
|||||||
class EXPCL_VISION OpenCVTexture : public VideoTexture {
|
class EXPCL_VISION OpenCVTexture : public VideoTexture {
|
||||||
PUBLISHED:
|
PUBLISHED:
|
||||||
OpenCVTexture(const string &name = string());
|
OpenCVTexture(const string &name = string());
|
||||||
protected:
|
OpenCVTexture(const OpenCVTexture ©) = delete;
|
||||||
OpenCVTexture(const OpenCVTexture ©);
|
|
||||||
PUBLISHED:
|
|
||||||
virtual ~OpenCVTexture();
|
virtual ~OpenCVTexture();
|
||||||
|
|
||||||
bool from_camera(int camera_index = -1, int z = 0,
|
bool from_camera(int camera_index = -1, int z = 0,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user