Open3DGC: Remove redundant const qualifiers from return types
parent
cd64eae590
commit
f90d874978
|
@ -140,8 +140,8 @@ namespace o3dgc
|
||||||
{
|
{
|
||||||
return End(element) - Begin(element);
|
return End(element) - Begin(element);
|
||||||
}
|
}
|
||||||
long * const GetNumNeighborsBuffer() { return m_numNeighbors;}
|
long * GetNumNeighborsBuffer() { return m_numNeighbors;}
|
||||||
long * const GetNeighborsBuffer() { return m_neighbors;}
|
long * GetNeighborsBuffer() { return m_neighbors;}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
long m_neighborsSize; // actual allocated size for m_neighbors
|
long m_neighborsSize; // actual allocated size for m_neighbors
|
||||||
|
|
|
@ -395,15 +395,15 @@ namespace o3dgc
|
||||||
{
|
{
|
||||||
return m_stream.GetSize();
|
return m_stream.GetSize();
|
||||||
}
|
}
|
||||||
const unsigned char * const GetBuffer(unsigned long position) const
|
const unsigned char * GetBuffer(unsigned long position) const
|
||||||
{
|
{
|
||||||
return m_stream.GetBuffer() + position;
|
return m_stream.GetBuffer() + position;
|
||||||
}
|
}
|
||||||
unsigned char * const GetBuffer(unsigned long position)
|
unsigned char * GetBuffer(unsigned long position)
|
||||||
{
|
{
|
||||||
return (m_stream.GetBuffer() + position);
|
return (m_stream.GetBuffer() + position);
|
||||||
}
|
}
|
||||||
unsigned char * const GetBuffer()
|
unsigned char * GetBuffer()
|
||||||
{
|
{
|
||||||
return m_stream.GetBuffer();
|
return m_stream.GetBuffer();
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,10 +48,10 @@ namespace o3dgc
|
||||||
unsigned long GetNVector() const { return m_num;}
|
unsigned long GetNVector() const { return m_num;}
|
||||||
unsigned long GetDimVector() const { return m_dim;}
|
unsigned long GetDimVector() const { return m_dim;}
|
||||||
unsigned long GetStride() const { return m_stride;}
|
unsigned long GetStride() const { return m_stride;}
|
||||||
const Real * const GetMin() const { return m_min;}
|
const Real * GetMin() const { return m_min;}
|
||||||
const Real * const GetMax() const { return m_max;}
|
const Real * GetMax() const { return m_max;}
|
||||||
const Real * const GetVectors() const { return m_vectors;}
|
const Real * GetVectors() const { return m_vectors;}
|
||||||
Real * const GetVectors() { return m_vectors;}
|
Real * GetVectors() { return m_vectors;}
|
||||||
Real GetMin(unsigned long j) const { return m_min[j];}
|
Real GetMin(unsigned long j) const { return m_min[j];}
|
||||||
Real GetMax(unsigned long j) const { return m_max[j];}
|
Real GetMax(unsigned long j) const { return m_max[j];}
|
||||||
|
|
||||||
|
|
|
@ -81,8 +81,8 @@ namespace o3dgc
|
||||||
m_end = 0;
|
m_end = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const unsigned long GetSize() const { return m_size;};
|
unsigned long GetSize() const { return m_size;};
|
||||||
const unsigned long GetAllocatedSize() const { return m_allocated;};
|
unsigned long GetAllocatedSize() const { return m_allocated;};
|
||||||
void Clear() { m_start = m_end = m_size = 0;};
|
void Clear() { m_start = m_end = m_size = 0;};
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -62,26 +62,26 @@ namespace o3dgc
|
||||||
}
|
}
|
||||||
unsigned long GetNumFloatAttributes() const { return m_numFloatAttributes;}
|
unsigned long GetNumFloatAttributes() const { return m_numFloatAttributes;}
|
||||||
unsigned long GetNumIntAttributes() const { return m_numIntAttributes ;}
|
unsigned long GetNumIntAttributes() const { return m_numIntAttributes ;}
|
||||||
const Real * const GetCoordMin () const { return m_coordMin;}
|
const Real * GetCoordMin () const { return m_coordMin;}
|
||||||
const Real * const GetCoordMax () const { return m_coordMax;}
|
const Real * GetCoordMax () const { return m_coordMax;}
|
||||||
const Real * const GetNormalMin () const { return m_normalMin;}
|
const Real * GetNormalMin () const { return m_normalMin;}
|
||||||
const Real * const GetNormalMax () const { return m_normalMax;}
|
const Real * GetNormalMax () const { return m_normalMax;}
|
||||||
Real GetCoordMin (int j) const { return m_coordMin[j] ;}
|
Real GetCoordMin (int j) const { return m_coordMin[j] ;}
|
||||||
Real GetCoordMax (int j) const { return m_coordMax[j] ;}
|
Real GetCoordMax (int j) const { return m_coordMax[j] ;}
|
||||||
Real GetNormalMin (int j) const { return m_normalMin[j] ;}
|
Real GetNormalMin (int j) const { return m_normalMin[j] ;}
|
||||||
Real GetNormalMax (int j) const { return m_normalMax[j] ;}
|
Real GetNormalMax (int j) const { return m_normalMax[j] ;}
|
||||||
|
|
||||||
const O3DGCIFSFloatAttributeType GetFloatAttributeType(unsigned long a) const
|
O3DGCIFSFloatAttributeType GetFloatAttributeType(unsigned long a) const
|
||||||
{
|
{
|
||||||
assert(a < O3DGC_SC3DMC_MAX_NUM_FLOAT_ATTRIBUTES);
|
assert(a < O3DGC_SC3DMC_MAX_NUM_FLOAT_ATTRIBUTES);
|
||||||
return m_typeFloatAttribute[a];
|
return m_typeFloatAttribute[a];
|
||||||
}
|
}
|
||||||
const O3DGCIFSIntAttributeType GetIntAttributeType(unsigned long a) const
|
O3DGCIFSIntAttributeType GetIntAttributeType(unsigned long a) const
|
||||||
{
|
{
|
||||||
assert(a < O3DGC_SC3DMC_MAX_NUM_INT_ATTRIBUTES);
|
assert(a < O3DGC_SC3DMC_MAX_NUM_INT_ATTRIBUTES);
|
||||||
return m_typeIntAttribute[a];
|
return m_typeIntAttribute[a];
|
||||||
}
|
}
|
||||||
const unsigned long GetFloatAttributeDim(unsigned long a) const
|
unsigned long GetFloatAttributeDim(unsigned long a) const
|
||||||
{
|
{
|
||||||
assert(a < O3DGC_SC3DMC_MAX_NUM_FLOAT_ATTRIBUTES);
|
assert(a < O3DGC_SC3DMC_MAX_NUM_FLOAT_ATTRIBUTES);
|
||||||
return m_dimFloatAttribute[a];
|
return m_dimFloatAttribute[a];
|
||||||
|
@ -91,12 +91,12 @@ namespace o3dgc
|
||||||
assert(a < O3DGC_SC3DMC_MAX_NUM_INT_ATTRIBUTES);
|
assert(a < O3DGC_SC3DMC_MAX_NUM_INT_ATTRIBUTES);
|
||||||
return m_dimIntAttribute[a];
|
return m_dimIntAttribute[a];
|
||||||
}
|
}
|
||||||
const Real * const GetFloatAttributeMin(unsigned long a) const
|
const Real * GetFloatAttributeMin(unsigned long a) const
|
||||||
{
|
{
|
||||||
assert(a < O3DGC_SC3DMC_MAX_NUM_FLOAT_ATTRIBUTES);
|
assert(a < O3DGC_SC3DMC_MAX_NUM_FLOAT_ATTRIBUTES);
|
||||||
return &(m_minFloatAttribute[a * O3DGC_SC3DMC_MAX_DIM_ATTRIBUTES]);
|
return &(m_minFloatAttribute[a * O3DGC_SC3DMC_MAX_DIM_ATTRIBUTES]);
|
||||||
}
|
}
|
||||||
const Real * const GetFloatAttributeMax(unsigned long a) const
|
const Real * GetFloatAttributeMax(unsigned long a) const
|
||||||
{
|
{
|
||||||
assert(a < O3DGC_SC3DMC_MAX_NUM_FLOAT_ATTRIBUTES);
|
assert(a < O3DGC_SC3DMC_MAX_NUM_FLOAT_ATTRIBUTES);
|
||||||
return &(m_maxFloatAttribute[a * O3DGC_SC3DMC_MAX_DIM_ATTRIBUTES]);
|
return &(m_maxFloatAttribute[a * O3DGC_SC3DMC_MAX_DIM_ATTRIBUTES]);
|
||||||
|
@ -118,17 +118,17 @@ namespace o3dgc
|
||||||
bool GetSolid() const { return m_solid ;}
|
bool GetSolid() const { return m_solid ;}
|
||||||
bool GetConvex() const { return m_convex ;}
|
bool GetConvex() const { return m_convex ;}
|
||||||
bool GetIsTriangularMesh() const { return m_isTriangularMesh;}
|
bool GetIsTriangularMesh() const { return m_isTriangularMesh;}
|
||||||
const unsigned long * const GetIndexBufferID() const { return m_indexBufferID ;}
|
const unsigned long * GetIndexBufferID() const { return m_indexBufferID ;}
|
||||||
const T * const GetCoordIndex() const { return m_coordIndex;}
|
const T * GetCoordIndex() const { return m_coordIndex;}
|
||||||
T * const GetCoordIndex() { return m_coordIndex;}
|
T * GetCoordIndex() { return m_coordIndex;}
|
||||||
Real * const GetCoord() const { return m_coord ;}
|
Real * GetCoord() const { return m_coord ;}
|
||||||
Real * const GetNormal() const { return m_normal ;}
|
Real * GetNormal() const { return m_normal ;}
|
||||||
Real * const GetFloatAttribute(unsigned long a) const
|
Real * GetFloatAttribute(unsigned long a) const
|
||||||
{
|
{
|
||||||
assert(a < O3DGC_SC3DMC_MAX_NUM_FLOAT_ATTRIBUTES);
|
assert(a < O3DGC_SC3DMC_MAX_NUM_FLOAT_ATTRIBUTES);
|
||||||
return m_floatAttribute[a];
|
return m_floatAttribute[a];
|
||||||
}
|
}
|
||||||
long * const GetIntAttribute(unsigned long a) const
|
long * GetIntAttribute(unsigned long a) const
|
||||||
{
|
{
|
||||||
assert(a < O3DGC_SC3DMC_MAX_NUM_INT_ATTRIBUTES);
|
assert(a < O3DGC_SC3DMC_MAX_NUM_INT_ATTRIBUTES);
|
||||||
return m_intAttribute[a] ;
|
return m_intAttribute[a] ;
|
||||||
|
|
|
@ -50,10 +50,10 @@ namespace o3dgc
|
||||||
BinaryStream & bstream);
|
BinaryStream & bstream);
|
||||||
O3DGCStreamType GetStreamType() const { return m_streamType; }
|
O3DGCStreamType GetStreamType() const { return m_streamType; }
|
||||||
void SetStreamType(O3DGCStreamType streamType) { m_streamType = streamType; }
|
void SetStreamType(O3DGCStreamType streamType) { m_streamType = streamType; }
|
||||||
const long * const GetInvVMap() const { return m_invVMap;}
|
const long * GetInvVMap() const { return m_invVMap;}
|
||||||
const long * const GetInvTMap() const { return m_invTMap;}
|
const long * GetInvTMap() const { return m_invTMap;}
|
||||||
const long * const GetVMap() const { return m_vmap;}
|
const long * GetVMap() const { return m_vmap;}
|
||||||
const long * const GetTMap() const { return m_tmap;}
|
const long * GetTMap() const { return m_tmap;}
|
||||||
const AdjacencyInfo & GetVertexToTriangle() const { return m_vertexToTriangle;}
|
const AdjacencyInfo & GetVertexToTriangle() const { return m_vertexToTriangle;}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -88,8 +88,8 @@ namespace o3dgc
|
||||||
assert(m_size < m_allocated);
|
assert(m_size < m_allocated);
|
||||||
m_buffer[m_size++] = value;
|
m_buffer[m_size++] = value;
|
||||||
}
|
}
|
||||||
const T * const GetBuffer() const { return m_buffer;};
|
const T * GetBuffer() const { return m_buffer;};
|
||||||
T * const GetBuffer() { return m_buffer;};
|
T * GetBuffer() { return m_buffer;};
|
||||||
unsigned long GetSize() const { return m_size;};
|
unsigned long GetSize() const { return m_size;};
|
||||||
void SetSize(unsigned long size)
|
void SetSize(unsigned long size)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue