Made Block copy constructor private.

This commit is contained in:
David Williams
2011-02-09 22:21:44 +00:00
parent b1eab6c6a3
commit 7f831fb97a
4 changed files with 32 additions and 37 deletions

View File

@ -37,11 +37,8 @@ namespace PolyVox
friend class VolumeSampler<VoxelType>;
public:
Block(uint16_t uSideLength = 0);
Block(const Block& rhs);
~Block();
Block& operator=(const Block& rhs);
uint16_t getSideLength(void) const;
VoxelType getVoxelAt(uint16_t uXPos, uint16_t uYPos, uint16_t uZPos) const;
VoxelType getVoxelAt(const Vector3DUint16& v3dPos) const;
@ -66,6 +63,11 @@ namespace PolyVox
std::vector<uint16_t> runlengths;
std::vector<VoxelType> values;
private:
Block(const Block& rhs);
Block& operator=(const Block& rhs);
};
}