Example #1
0
const_element_iterator node::get_parent() const
{
    assert(tixmlNode);
	const TiXmlNode* parent = tixmlNode->Parent();
	if (parent) {
		return const_element_iterator( const_cast<TiXmlElement*>( parent->ToElement() ) );
	}
	return const_element_iterator();
}
// subdomain elements begin() accessor
ParallelMesh::const_element_iterator
ParallelMesh::active_subdomain_elements_begin (subdomain_id_type subdomain_id) const
{
  Predicates::ActiveSubdomain<const_elem_iterator_imp> p(subdomain_id);
  return const_element_iterator(_elements.begin(), _elements.end(), p);
}
// active PID end() accessor
SerialMesh::const_element_iterator
SerialMesh::active_pid_elements_end (const unsigned int proc_id) const
{
  Predicates::ActivePID<const_elem_iterator_imp> p(proc_id);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// local not level const end() accessor
SerialMesh::const_element_iterator
SerialMesh::local_not_level_elements_end (const unsigned int level) const
{
  Predicates::LocalNotLevel<const_elem_iterator_imp> p(level);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// local const end() accessor
SerialMesh::const_element_iterator
SerialMesh::local_elements_end () const
{
  Predicates::Local<const_elem_iterator_imp> p;
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// not ancestor const end() accessor
SerialMesh::const_element_iterator
SerialMesh::not_ancestor_elements_end () const
{
  Predicates::Ancestor<const_elem_iterator_imp> p;
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// const pid begin() accessor
SerialMesh::const_element_iterator
SerialMesh::pid_elements_begin (const unsigned int proc_id) const
{
  Predicates::PID<const_elem_iterator_imp> p(proc_id);
  return const_element_iterator(_elements.begin(), _elements.end(), p);
}
// const not_local begin() accessor
SerialMesh::const_element_iterator
SerialMesh::not_local_elements_begin () const
{
  Predicates::NotLocal<const_elem_iterator_imp> p;
  return const_element_iterator(_elements.begin(), _elements.end(), p);
}
// type const end() accessor
ParallelMesh::const_element_iterator
ParallelMesh::type_elements_end (ElemType type) const
{
  Predicates::Type<const_elem_iterator_imp> p(type);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// local not level const end() accessor
ParallelMesh::const_element_iterator
ParallelMesh::local_not_level_elements_end (unsigned int level) const
{
  Predicates::LocalNotLevel<const_elem_iterator_imp> p(this->processor_id(),level);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// not level const end() accessor
ParallelMesh::const_element_iterator
ParallelMesh::not_level_elements_end (unsigned int level) const
{
  Predicates::NotLevel<const_elem_iterator_imp> p(level);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// not_local const end() accessor
ParallelMesh::const_element_iterator
ParallelMesh::not_local_elements_end () const
{
  Predicates::NotLocal<const_elem_iterator_imp> p(this->processor_id());
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// subactive const end() accessor
ParallelMesh::const_element_iterator
ParallelMesh::subactive_elements_end () const
{
  Predicates::SubActive<const_elem_iterator_imp> p;
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// ancestor const end() accessor
ParallelMesh::const_element_iterator
ParallelMesh::ancestor_elements_end () const
{
  Predicates::Ancestor<const_elem_iterator_imp> p;
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// default const end() accessor
ParallelMesh::const_element_iterator
ParallelMesh::elements_end () const
{
  Predicates::NotNull<const_elem_iterator_imp> p;
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
Example #16
0
// subdomain elements end() accessor
SerialMesh::const_element_iterator
SerialMesh::active_subdomain_elements_end (const subdomain_id_type subdomain_id) const
{
  Predicates::ActiveSubdomain<const_elem_iterator_imp> p(subdomain_id);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// const subactive begin() accessor
SerialMesh::const_element_iterator
SerialMesh::subactive_elements_begin () const
{
  Predicates::SubActive<const_elem_iterator_imp> p;
  return const_element_iterator(_elements.begin(), _elements.end(), p);
}
// active PID end() accessor
ParallelMesh::const_element_iterator
ParallelMesh::active_pid_elements_end (processor_id_type proc_id) const
{
  Predicates::ActivePID<const_elem_iterator_imp> p(proc_id);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// const not level begin() accessor
SerialMesh::const_element_iterator
SerialMesh::not_level_elements_begin (const unsigned int level) const
{
  Predicates::NotLevel<const_elem_iterator_imp> p(level);
  return const_element_iterator(_elements.begin(), _elements.end(), p);
}
Example #20
0
// const local begin() accessor
SerialMesh::const_element_iterator
SerialMesh::local_elements_begin () const
{
  Predicates::Local<const_elem_iterator_imp> p(this->processor_id());
  return const_element_iterator(_elements.begin(), _elements.end(), p);
}
// const type begin() accessor
SerialMesh::const_element_iterator
SerialMesh::type_elements_begin (const ElemType type) const
{
  Predicates::Type<const_elem_iterator_imp> p(type);
  return const_element_iterator(_elements.begin(), _elements.end(), p);
}
Example #22
0
// const active pid elements begin() accessor
SerialMesh::const_element_iterator
SerialMesh::active_pid_elements_begin (const processor_id_type proc_id) const
{
  Predicates::ActivePID<const_elem_iterator_imp> p(proc_id);
  return const_element_iterator(_elements.begin(), _elements.end(), p);
}
// not subactive const end() accessor
SerialMesh::const_element_iterator
SerialMesh::not_subactive_elements_end () const
{
  Predicates::NotSubActive<const_elem_iterator_imp> p;
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
Example #24
0
// local active const end() accessor
SerialMesh::const_element_iterator
SerialMesh::active_local_elements_end () const
{
  Predicates::ActiveLocal<const_elem_iterator_imp> p(this->processor_id());
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// const local active const end() accessor
SerialMesh::const_element_iterator
SerialMesh::active_not_local_elements_end () const
{
  Predicates::ActiveNotLocal<const_elem_iterator_imp> p;
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
Example #26
0
// local level const end() accessor
SerialMesh::const_element_iterator
SerialMesh::local_level_elements_end (const unsigned int level) const
{
  Predicates::LocalLevel<const_elem_iterator_imp> p(this->processor_id(),level);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// active type const end() accessor
SerialMesh::const_element_iterator
SerialMesh::active_type_elements_end (const ElemType type) const
{
  Predicates::ActiveType<const_elem_iterator_imp> p(type);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
Example #28
0
// pid const end() accessor
SerialMesh::const_element_iterator
SerialMesh::pid_elements_end (const processor_id_type proc_id) const
{
  Predicates::PID<const_elem_iterator_imp> p(proc_id);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
// subdomain elements end() accessor
SerialMesh::const_element_iterator
SerialMesh::active_local_subdomain_elements_end (const unsigned int subdomain_id) const
{
  Predicates::ActiveLocalSubdomain<const_elem_iterator_imp> p(subdomain_id);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}
Example #30
0
// subdomain elements end() accessor
SerialMesh::const_element_iterator
SerialMesh::active_local_subdomain_elements_end (const subdomain_id_type subdomain_id) const
{
  Predicates::ActiveLocalSubdomain<const_elem_iterator_imp> p(this->processor_id(),subdomain_id);
  return const_element_iterator(_elements.end(), _elements.end(), p);
}