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