NiHu  2.0
NiHu::fmm::interaction_lists Class Reference

class storing the different interaction lists of a tree More...

#include <lists.hpp>

Public Types

enum  {
  P2P = 0, P2M = 1, L2P = 2, P2L = 3,
  M2P = 4, M2M = 5, L2L = 6, M2L = 7,
  Near = 8
}
 
typedef std::vector< std::vector< size_t > > list_t
 

Public Member Functions

template<class ClusterDerived >
 interaction_lists (cluster_tree< ClusterDerived > const &tree)
 constructor from cluster tree More...
 
const list_t & get_list (size_t idx) const
 return a selected list More...
 
void print_debug (std::ostream &os=std::cout)
 print debug information of the lists to a stream More...
 

Detailed Description

class storing the different interaction lists of a tree

Definition at line 22 of file lists.hpp.

Constructor & Destructor Documentation

◆ interaction_lists()

template<class ClusterDerived >
NiHu::fmm::interaction_lists::interaction_lists ( cluster_tree< ClusterDerived > const &  tree)
inline

constructor from cluster tree

Template Parameters
ClusterDerivedthe cluster type
Parameters
[in]treethe cluster tree

Definition at line 50 of file lists.hpp.

Member Function Documentation

◆ get_list()

const list_t& NiHu::fmm::interaction_lists::get_list ( size_t  idx) const
inline

return a selected list

Parameters
[in]idxthe list index, interaction_lists::P2P for example
Returns
the selected list

Definition at line 61 of file lists.hpp.

◆ print_debug()

void NiHu::fmm::interaction_lists::print_debug ( std::ostream &  os = std::cout)
inline

print debug information of the lists to a stream

Parameters
[in]osthe output stream

Definition at line 157 of file lists.hpp.


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