|
// ListNodeOfCGLObject.cpp: implementation of the CListNodeOfCGLObject class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "ListNodeOfCGLObject.h"
#include <MMath.h>
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CListNodeOfCGLObject::CListNodeOfCGLObject( CGLObject* P) : data(P), nextPtr(0)
{
}
CListNodeOfCGLObject::~CListNodeOfCGLObject()
{
if(data)
delete data;
}
CGLObject* CListNodeOfCGLObject::GetData() const
{
return data;
}
bool CListNodeOfCGLObject::operator==(CListNodeOfCGLObject& rhs)
{
return (this == &rhs);
}
bool CListNodeOfCGLObject::operator!=(CListNodeOfCGLObject& rhs)
{
return (this != &rhs);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Sharjith is a Mechanical Engineer with strong passion for Automobiles, Aircrafts and Software development.