48 for (
size_t i = 0 ; i <
sons_.size() ; i++) {
49 sons_[i]->removeFather();
67 if (pos < 0 || pos > static_cast<int>(
sons_.size())) {
73 return sons_[
static_cast<size_t>(pos - 1)];
77 if (pos < 0 || pos > static_cast<int>(
sons_.size())) {
83 return sons_[
static_cast<size_t>(pos - 1)];
90 return sons_[
static_cast<size_t>(i)];
98 return sons_[
static_cast<size_t>(i)];
136 throw Exception(
"BasicTNode::addFather() This node already has a father.");
139 if (!node->
isSon(
this))
156 if (pos < 0 || pos > static_cast<int>(
sons_.size()) - 1) {
159 return sons_[
static_cast<size_t>(pos)];
163 if (pos < 0 || pos > static_cast<int>(
sons_.size()) - 1) {
166 return sons_[
static_cast<size_t>(pos)];
170 for (
size_t i = 0 ; i <
sons_.size() ; i++) {
171 if (
sons_[i] == node)
181 sons_.push_back(node);
189 for (
size_t i = 0 ; i <
sons_.size() ; i++) {
190 if (
sons_[i] == node) {
198 if (pos < 0 || pos > static_cast<int>(
sons_.size() - 1))
202 node->removeFather();