LAL: Linear Arrangement Library 23.01.00
A library focused on algorithms on linear arrangements of graphs.
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
lal::detail::linarr_wrapper< type > Struct Template Reference

A wrapper to easily use identity arrangements. More...

#include <identity_arrangement.hpp>

Public Member Functions

 linarr_wrapper (const lal::linear_arrangement &arr) noexcept
 Constructor with arrangement.
 
template<typename param_t >
uint64_t operator[] (const param_t &p) const noexcept
 Access operator. More...
 

Public Attributes

const lal::linear_arrangementm_arr
 Constant reference to actual arrangement.
 

Detailed Description

template<linarr_type type>
struct lal::detail::linarr_wrapper< type >

A wrapper to easily use identity arrangements.

This reduces execution time: it prevents the explicit construction of the identity arrangement (which involves allocation of memory, ...)

Member Function Documentation

◆ operator[]()

template<linarr_type type>
template<typename param_t >
uint64_t lal::detail::linarr_wrapper< type >::operator[] ( const param_t &  p) const
inlinenoexcept

Access operator.

Only when the arrangement is not the identity arrangement, the method accessess m_arr.

Parameters
pEither a lal::node_t or a lal::position_t.

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