Esempio n. 1
0
  TreeNode::TreeNode(Handle< CNode > node, TreeNode * parent, int rowNumber)
  : m_node(node),
    m_parent(parent),
    m_row_number(rowNumber)
{
  cf3_always_assert(node.get() != nullptr);
  cf3_always_assert(rowNumber >= 0);

  m_node->connect_notifier(this, SIGNAL(child_count_changed()), SLOT(update_child_list()));

  this->update_child_list();
}
Esempio n. 2
0
 inline Uint static_count()
 {
   static Uint offset = 0;
   ++offset;
   cf3_always_assert(offset); // Bail out if there is a UUCount overlap
   return offset;
 }
Esempio n. 3
0
 static void build_coefficients( ReconstructPoint& reconstruction,
                                 const vector_type& local_coord,
                                 const Handle<mesh::ShapeFunction const>& sf )
 {
   reconstruction.m_N.resize(sf->nb_nodes());
   sf->compute_value(local_coord,reconstruction.m_N);
   reconstruction.construct_used_points();
   cf3_always_assert(reconstruction.used_points().size());
 }
Esempio n. 4
0
void NLink::set_target_node(const Handle< CNode > & node)
{
  cf3_always_assert( is_not_null(node.get()) );

  m_target = node;
}