make CEnvelope::m_PointsAccess private

This commit is contained in:
marmare314 2023-10-06 11:34:40 +02:00
parent 855ae8885c
commit c2adfc5628
2 changed files with 14 additions and 14 deletions

View file

@ -31,7 +31,7 @@ const CEnvPointBezier *CEnvelope::CEnvelopePointAccess::GetBezier(int Index) con
}
CEnvelope::CEnvelope(EType Type) :
m_PointsAccess(&m_vPoints), m_Type(Type) {}
m_Type(Type), m_PointsAccess(&m_vPoints) {}
CEnvelope::CEnvelope(int NumChannels) :
m_PointsAccess(&m_vPoints)

View file

@ -6,21 +6,8 @@
class CEnvelope
{
class CEnvelopePointAccess : public IEnvelopePointAccess
{
std::vector<CEnvPoint_runtime> *m_pvPoints;
public:
CEnvelopePointAccess(std::vector<CEnvPoint_runtime> *pvPoints);
int NumPoints() const override;
const CEnvPoint *GetPoint(int Index) const override;
const CEnvPointBezier *GetBezier(int Index) const override;
};
public:
std::vector<CEnvPoint_runtime> m_vPoints;
CEnvelopePointAccess m_PointsAccess;
char m_aName[32] = "";
bool m_Synchronized = false;
@ -43,6 +30,19 @@ private:
void Resort();
EType m_Type;
class CEnvelopePointAccess : public IEnvelopePointAccess
{
std::vector<CEnvPoint_runtime> *m_pvPoints;
public:
CEnvelopePointAccess(std::vector<CEnvPoint_runtime> *pvPoints);
int NumPoints() const override;
const CEnvPoint *GetPoint(int Index) const override;
const CEnvPointBezier *GetBezier(int Index) const override;
};
CEnvelopePointAccess m_PointsAccess;
};
#endif