component/CCComponentContainer(接口容器)
来源:互联网 发布:明星开的淘宝店 编辑:程序博客网 时间:2024/05/01 18:41
#ifndef __CC_FRAMEWORK_COMCONTAINER_H__
#define __CC_FRAMEWORK_COMCONTAINER_H__
#include "cocoa/CCDictionary.h"
NS_CC_BEGIN
class CCComponent;
class CCNode;
class CC_DLL CCComponentContainer
{
protected:
CCComponentContainer(CCNode *pNode);
public:
virtual ~CCComponentContainer(void);
//根据名字 得到 增加 移除 component
virtual CCComponent* get(const char *pName) const;
virtual bool add(CCComponent *pCom);
virtual bool remove(const char *pName);
//移除所有
virtual void removeAll();
virtual void visit(float fDelta);
public:
bool isEmpty() const;
private:
void alloc(void);//分配
void CCComponentContainer::alloc(void)
{
m_pComponents = CCDictionary::create();
m_pComponents->retain();
}
private:
CCDictionary *m_pComponents; ///< Dictionary of components
CCNode *m_pOwner;
friend class CCNode;
//当希望一个类可以存取另一个类的私有成员时,可以将该类声明为另一类的友元类。 (1) 友元关系不能被继承。
//所以 ccnode 可以访问以上两个私有成员
};
NS_CC_END
#endif // __FUNDATION__CCCOMPONENT_H__
- component/CCComponentContainer(接口容器)
- CCComponentContainer,CCComponent解析
- ApplicationContext 接口容器和BeanFactory 接口容器
- Spring核心容器接口
- 容器之Collection接口
- 接口& 组件、容器
- 容器 Collection接口
- 容器 Set接口
- 容器 Comparable接口
- Java容器--接口概述
- go 容器与接口
- Java容器------Collection接口
- Java_容器_Collection_Iterator接口
- SpringIOC容器接口
- Java_容器_Collection_Comparable接口
- 容器当中的接口
- CNI:容器网络接口
- @Component
- oracle教程
- libcurl 各种版本下载网址
- editplus编译执行java的配置方法
- data_support/ccCArray(c 数组)
- 数组移位
- component/CCComponentContainer(接口容器)
- Java中使用时间的类集合,Calendar:日历类
- 京东上市 员工却不知道自己持多少股
- 十二 oracle 数据库(表)的逻辑备份与恢复
- Android短信系统相关
- 被SimpleDateFormat坑了一次
- RMI原理及实现
- component/CCComponent (node接口函数 提供了serialize setEnabled setOwner接口 成员数据m_pOwner m_strName m_bEnabled
- Android 中this、 getApplicationContext()、getApplication()之间的区别