The Conley-Morse Graphs Software
Public Member Functions | Private Attributes | List of all members
set2arrayWrapper< elemType, setType > Class Template Reference

An imitation of an array whose entries are 1 iff the index belongs to the given set. More...

#include <utils.h>

Public Member Functions

 set2arrayWrapper (const setType &_theSet)
 The constructor of a set wrapper. More...
 
int operator[] (const elemType &n) const
 The operator [] which returns 1 iff the element belongs to the set. More...
 

Private Attributes

const setType & theSet
 A reference to the wrapped set. More...
 

Detailed Description

template<class elemType, class setType>
class set2arrayWrapper< elemType, setType >

An imitation of an array whose entries are 1 iff the index belongs to the given set.

This class may be useful if one needs to compute the subgraph of a directed graph restricted to a given set, using the subgraph method of the class diGraph.

Definition at line 900 of file utils.h.

Constructor & Destructor Documentation

◆ set2arrayWrapper()

template<class elemType , class setType >
set2arrayWrapper< elemType, setType >::set2arrayWrapper ( const setType &  _theSet)
inline

The constructor of a set wrapper.

Definition at line 904 of file utils.h.

Member Function Documentation

◆ operator[]()

template<class elemType , class setType >
int set2arrayWrapper< elemType, setType >::operator[] ( const elemType &  n) const
inline

The operator [] which returns 1 iff the element belongs to the set.

Definition at line 912 of file utils.h.

References set2arrayWrapper< elemType, setType >::theSet.

Member Data Documentation

◆ theSet

template<class elemType , class setType >
const setType& set2arrayWrapper< elemType, setType >::theSet
private

A reference to the wrapped set.

Definition at line 919 of file utils.h.

Referenced by set2arrayWrapper< elemType, setType >::operator[]().


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