NEURON
nrn::tool::bimap< T, O > Struct Template Reference

#include <bimap.hpp>

Public Types

typedef std::multimap< T, O > pd2ob_map
 
typedef std::multimap< O, T > ob2pd_map
 

Public Member Functions

void insert (T const &, O const &)
 
bool find (T const &p, size_t n, T &, O &)
 
bool find (T const &p, T &, O &)
 
void obremove (O const &)
 
void remove (T const &, O const &)
 

Public Attributes

pd2ob_map pd2ob
 
ob2pd_map ob2pd
 

Detailed Description

template<class T, class O>
struct nrn::tool::bimap< T, O >

Definition at line 17 of file bimap.hpp.

Member Typedef Documentation

◆ ob2pd_map

template<class T , class O >
typedef std::multimap<O, T> nrn::tool::bimap< T, O >::ob2pd_map

Definition at line 19 of file bimap.hpp.

◆ pd2ob_map

template<class T , class O >
typedef std::multimap<T, O> nrn::tool::bimap< T, O >::pd2ob_map

Definition at line 18 of file bimap.hpp.

Member Function Documentation

◆ find() [1/2]

template<class T , class O >
bool nrn::tool::bimap< T, O >::find ( T const &  p,
size_t  n,
T &  pret,
O &  obret 
)

Definition at line 68 of file bimap.hpp.

◆ find() [2/2]

template<class T , class O >
bool nrn::tool::bimap< T, O >::find ( T const &  p,
T &  pret,
O &  obret 
)

Definition at line 83 of file bimap.hpp.

◆ insert()

template<class T , class O >
void nrn::tool::bimap< T, O >::insert ( T const &  pd,
O const &  ob 
)

Definition at line 45 of file bimap.hpp.

◆ obremove()

template<class T , class O >
void nrn::tool::bimap< T, O >::obremove ( O const &  ob)

Definition at line 51 of file bimap.hpp.

◆ remove()

template<class T , class O >
void nrn::tool::bimap< T, O >::remove ( T const &  pd,
O const &  ob 
)

Definition at line 62 of file bimap.hpp.

Member Data Documentation

◆ ob2pd

template<class T , class O >
ob2pd_map nrn::tool::bimap< T, O >::ob2pd

Definition at line 28 of file bimap.hpp.

◆ pd2ob

template<class T , class O >
pd2ob_map nrn::tool::bimap< T, O >::pd2ob

Definition at line 27 of file bimap.hpp.


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