SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
leansdr::ldpc_engine< SOFTBIT, SOFTWORD, SWSIZE, Taddr >::node Struct Reference

#include <ldpc.h>

Public Member Functions

void append (Taddr a)
 

Public Attributes

Taddr * edges
 
int nedges
 

Static Public Attributes

static const int CHUNK = 4
 

Detailed Description

template<typename SOFTBIT, typename SOFTWORD, int SWSIZE, typename Taddr>
struct leansdr::ldpc_engine< SOFTBIT, SOFTWORD, SWSIZE, Taddr >::node

Definition at line 66 of file ldpc.h.

Member Function Documentation

◆ append()

template<typename SOFTBIT , typename SOFTWORD , int SWSIZE, typename Taddr >
void leansdr::ldpc_engine< SOFTBIT, SOFTWORD, SWSIZE, Taddr >::node::append ( Taddr  a)
inline

Definition at line 71 of file ldpc.h.

References leansdr::fatal().

Referenced by leansdr::ldpc_engine< SOFTBIT, SOFTWORD, SWSIZE, Taddr >::ldpc_engine().

72  {
73  if (nedges % CHUNK == 0)
74  { // Full ?
75  edges = (Taddr *)realloc(edges, (nedges + CHUNK) * sizeof(Taddr));
76  if (!edges)
77  fatal("realloc");
78  }
79  edges[nedges++] = a;
80  }
static const int CHUNK
Definition: ldpc.h:70
void fatal(const char *s)
Definition: framework.cpp:6
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ CHUNK

template<typename SOFTBIT , typename SOFTWORD , int SWSIZE, typename Taddr >
const int leansdr::ldpc_engine< SOFTBIT, SOFTWORD, SWSIZE, Taddr >::node::CHUNK = 4
static

Definition at line 70 of file ldpc.h.

◆ edges

template<typename SOFTBIT , typename SOFTWORD , int SWSIZE, typename Taddr >
Taddr* leansdr::ldpc_engine< SOFTBIT, SOFTWORD, SWSIZE, Taddr >::node::edges

◆ nedges

template<typename SOFTBIT , typename SOFTWORD , int SWSIZE, typename Taddr >
int leansdr::ldpc_engine< SOFTBIT, SOFTWORD, SWSIZE, Taddr >::node::nedges

Definition at line 69 of file ldpc.h.


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