Interface Documentation
Version: invalid
Public Types | Public Member Functions | Public Attributes | List of all members
flecsi::topo::connectivity_t Class Reference

connectivity_t provides basic connectivity information in a compressed storage format. More...

Collaboration diagram for flecsi::topo::connectivity_t:
Collaboration graph
[legend]

Public Types

using id_t = util::id_t
 
using offset_t = util::offset_t
 

Public Member Functions

 connectivity_t (const connectivity_t &)=delete
 
connectivity_toperator= (const connectivity_t &)=delete
 
 connectivity_t (connectivity_t &&)=default
 
connectivity_toperator= (connectivity_t &&)=default
 
 connectivity_t ()
 Constructor.
 
auto entity_storage ()
 
template<class STORAGE_TYPE >
void set_entity_storage (STORAGE_TYPE s)
 
void clear ()
 Clear the storage arrays for this instance.
 
void init (const connection_vector_t &cv)
 
void resize (index_vector_t &num_conns)
 
void push (id_t id)
 Push a single id into the current from group.
 
std::ostream & dump (std::ostream &stream)
 Debugging method. Dump the raw vectors of the connection.
 
void dump ()
 
const auto & get_entities () const
 Get the to id's vector.
 
id_tget_entities (size_t index)
 Get the entities of the specified from index.
 
id_tget_entities (size_t index, size_t &count)
 Get the entities of the specified from index and return the count.
 
auto get_entity_vec (size_t index) const
 Get the entities of the specified from index and return the count.
 
void reverse_entities (size_t index)
 Get the entities of the specified from index and return the count.
 
template<class U >
void reorder_entities (size_t index, U &&order)
 Get the entities of the specified from index and return the count.
 
bool empty () const
 True if the connectivity is empty (hasn't been populated).
 
void set (size_t from_local_id, id_t to_id, size_t pos)
 Set a single connection.
 
size_t from_size () const
 Return the number of from entities.
 
size_t to_size () const
 Return the number of to entities.
 
template<size_t DOM, size_t NUM_DOMAINS>
void set (entity_vector_t< NUM_DOMAINS > &ev, connection_vector_t &conns)
 Set/init the connectivity use by compute topology methods like transpose.
 
const auto & to_id_storage () const
 
auto & to_id_storage ()
 
auto & get_index_space ()
 
auto & get_index_space () const
 
auto range (size_t i) const
 
auto & offsets ()
 
const auto & offsets () const
 
void add_count (uint32_t count)
 
void end_from ()
 

Public Attributes

index_space< entity_base_ *, false, true, false, void, array_bufferindex_space_
 
offset_storage_t offsets_
 

Detailed Description

connectivity_t provides basic connectivity information in a compressed storage format.

Member Function Documentation

◆ end_from()

void flecsi::topo::connectivity_t::end_from ( )
inline

End a from entity group by setting the end offset in the from connection vector.

◆ init()

void flecsi::topo::connectivity_t::init ( const connection_vector_t &  cv)
inline

Initialize the connectivity information from a given connectivity vector.

Parameters
cvThe connectivity information.

◆ resize()

void flecsi::topo::connectivity_t::resize ( index_vector_t &  num_conns)
inline

Resize a connection.

Parameters
num_connsNumber of connections for each group

The documentation for this class was generated from the following file: