Doxygen
Loading...
Searching...
No Matches
MemberLists Class Reference

#include <src/memberlist.h>

+ Inheritance diagram for MemberLists:
+ Collaboration diagram for MemberLists:

Public Member Functions

 MemberLists ()=default
 
 ~MemberLists ()=default
 
const std::unique_ptr< MemberList > & get (MemberListType lt, MemberListContainer con)
 

Detailed Description

Definition at line 169 of file memberlist.h.

Constructor & Destructor Documentation

◆ MemberLists()

MemberLists::MemberLists ( )
default

◆ ~MemberLists()

MemberLists::~MemberLists ( )
default

Member Function Documentation

◆ get()

const std::unique_ptr< MemberList > & MemberLists::get ( MemberListType lt,
MemberListContainer con )
inline

Definition at line 174 of file memberlist.h.

175 {
176 // find the list with the given type
177 auto it = std::find_if(begin(),end(),[&lt](const auto &ml) { return ml->listType()==lt; });
178 if (it!=end()) return *it;
179 // or create a new list if it is not found
180 emplace_back(std::make_unique<MemberList>(lt,con));
181 return back();
182 }
DirIterator begin(DirIterator it) noexcept
Definition dir.cpp:170
DirIterator end(const DirIterator &) noexcept
Definition dir.cpp:175

References begin(), and end().


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