1. 所有GB容器的使用方法
NiTobjectArray 使用这个容器的所有类必须继承自NiMemobject
而且必须自己实现了
!=操作
==操作。
一个传入int的构造函数。函数目的是为了弄一个NULLClass
具体参考如下
class DragonRect : public NiRect<long>
{
public:
DragonRect(){};
DragonRect(int i){};
~DragonRect(){};
bool operator != (const DragonRect& other) const
{
return m_left != other.m_left && m_top != other.m_top;
}
bool operator == (const DragonRect& other) const
{
return !(*this != other);
}
}