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 164 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 169 of file memberlist.h.

170 {
171 // find the list with the given type
172 auto it = std::find_if(begin(),end(),[&lt](const auto &ml) { return ml->listType()==lt; });
173 if (it!=end()) return *it;
174 // or create a new list if it is not found
175 emplace_back(std::make_unique<MemberList>(lt,con));
176 return back();
177 }
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: