Public Member Functions | Public Attributes | List of all members
dune::tde::crp_connectors Struct Reference

#include <tde_cmap_utils.h>

Public Member Functions

 crp_connectors (int crp, int views)
 
size_t views () const
 
size_t nch_view (int iview) const
 
void add_connector (int id, int view, bool reverse, int first_view_ch)
 

Public Attributes

int _crp
 
connectors _kels
 
std::vector< int > _view_kels
 

Detailed Description

Definition at line 50 of file tde_cmap_utils.h.

Constructor & Destructor Documentation

dune::tde::crp_connectors::crp_connectors ( int  crp,
int  views 
)
inline

Definition at line 53 of file tde_cmap_utils.h.

53  {
54  _crp = crp;
55  _view_kels.resize( views );
56  }
std::vector< int > _view_kels

Member Function Documentation

void dune::tde::crp_connectors::add_connector ( int  id,
int  view,
bool  reverse,
int  first_view_ch 
)
inline

Definition at line 71 of file tde_cmap_utils.h.

71  {
72  _kels.insert( kel_connector( id, view, reverse, first_view_ch ) );
73  }
struct dune::tde::kel_connector kel_connector
static unsigned int reverse(QString &chars, unsigned char *level, unsigned int a, unsigned int b)
Definition: qstring.cpp:11649
size_t dune::tde::crp_connectors::nch_view ( int  iview) const
inline

Definition at line 62 of file tde_cmap_utils.h.

62  {
63  size_t nch = 0;
64  if( iview >= (int)_view_kels.size())
65  return nch;
66  auto nkel = _view_kels[iview];
67  nch = nkel * ch_per_kel;
68  return nch;
69  }
std::vector< int > _view_kels
const short ch_per_kel
size_t dune::tde::crp_connectors::views ( ) const
inline

Definition at line 59 of file tde_cmap_utils.h.

59 { return _view_kels.size(); }
std::vector< int > _view_kels

Member Data Documentation

int dune::tde::crp_connectors::_crp

Definition at line 75 of file tde_cmap_utils.h.

connectors dune::tde::crp_connectors::_kels

Definition at line 76 of file tde_cmap_utils.h.

std::vector< int > dune::tde::crp_connectors::_view_kels

Definition at line 77 of file tde_cmap_utils.h.


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