style="TEXT-INDENT: 2em">
Class BaseClass
{
public:
inline char GetPointerFast()
{
return mpPointer;
}
protected:
inline void SetPointer(char *pData)
{
mpData = pData;
}
private:
char *mpData;
};
void Function(BaseClass *pObj)
{
char *ptr= pObj->GetPointerFast();
} 页码:[1] [2] [3] [4] [5] [6] [7] 第5页、共7页 |