src/Generic/SPropTrees/STreeNode.cpp
//create a new tree node based in the given proposition in the sentence;
//all the subordinate propositions under this nore will be created as well
//the parent of the current proposition is also given

create a new tree node based in the given proposition in the sentence;
all the subordinate propositions under this nore will be created as well
the parent of the current proposition is also given
create a new tree node based in the given proposition in the sentence ; all the subordinate propositions under this nore will be created as well the parent of the current proposition is also given
STreeNode::STreeNode(const Proposition* prop, const STreeNode* par, const std::wstring& rl) : _isGood(false), _debug(false) {
	_id = _FIRST_UNUSED_ID++;
	_content = SNodeContent::_nctPool->construct();
	_content->_type = SNodeContent::PROPOSITION;
	_content->_theProp = prop;
	Symbol psym=prop->getPredSymbol();
	_content->_thePhrase = ( psym.is_null() ) ? L"" : psym.to_string();
	if ( _content->_theProp ) _content->_theSynnode = _content->_theProp->getPredHead();
	_parent = par;
	if ( _parent ) _common = _parent->_common;
	_role = rl;
	size = populateChildren();
	_isGood = true;
}
STreeNode :: STreeNode ( const Proposition * prop , const STreeNode * par , const std :: wstring & rl ) : _isGood ( false ) , _debug ( false ) { _id = _FIRST_UNUSED_ID ++ ; _content = SNodeContent :: _nctPool -> construct ( ) ; _content -> _type = SNodeContent :: PROPOSITION ; _content -> _theProp = prop ; Symbol psym = prop -> getPredSymbol ( ) ; _content -> _thePhrase = ( psym . is_null ( ) ) ? L" " : psym . to_string ( ) ; if ( _content -> _theProp ) _content -> _theSynnode = _content -> _theProp -> getPredHead ( ) ; _parent = par ; if ( _parent ) _common = _parent -> _common ; _role = rl ; size = populateChildren ( ) ; _isGood = true ; }
create a new tree node based in the given proposition in the sentence;
all the subordinate propositions under this nore will be created as well
the parent of the current proposition is also given
create a new tree node based in the given proposition in the sentence ; all the subordinate propositions under this nore will be created as well the parent of the current proposition is also given
//if ( Common::DEBUG_MODE ) std::cerr << "\n%%%: ALLOCATE_NODE (3) " << _id << "\t";
 /*if ( prop ) {
		std::cerr << "create new prop node for \"";
		prop->dump(std::cerr, 0);
		std::cerr << "\"\n";
	}*/ //SNodeContent* nc_mp = (SNodeContent*) mp_alloc(SNodeContent::nodeContentPool); 
 //_content = new (nc_mp) SNodeContent();
