📄 aitree.cpp
字号:
#include "stdafx.h"
#include "AiTree.h"
#include "AiRule.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
IMPLEMENT_SERIAL(AiTree,CObject,0)
AiTree::AiTree()
{
m_id = 0;
m_sign = NeedNotVersa;
m_lch = NULL;
m_rch = NULL;
m_mention = "";
}
AiTree::~AiTree()
{
if (m_lch != NULL)
delete m_lch;
//if (m_rch != NULL)
// delete m_rch;
}
void AiTree::SetId(int id)
{
m_id = id;
}
int AiTree::GetId()
{
return m_id;
}
AiTree* AiTree::GetLch()
{
return m_lch;
}
AiTree* AiTree::GetRch()
{
return m_rch;
}
int AiTree::GetSign()
{
return m_sign;
}
void AiTree::SetLch(AiTree* l)
{
m_lch = l;
}
void AiTree::SetRch(AiTree* r)
{
m_rch = r;
}
void AiTree::SetSign(int sign)
{
m_sign = sign;
}
void AiTree::SetMention(CString str)
{
m_mention = str;
}
CString AiTree::GetMention()
{
if (!m_mention.IsEmpty())
return m_mention;
ASSERT(0);
return "asdasdf";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -