Skip to main content

The MemberLists Class Reference

Declaration

class MemberLists { ... }

Included Headers

#include <src/memberlist.h>

Base class

classstd::vector< std::unique_ptr< MemberList > >

Public Constructors Index

MemberLists ()=default

Public Destructor Index

~MemberLists ()=default

Public Member Functions Index

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

Definition at line 169 of file memberlist.h.

Public Constructors

MemberLists()

MemberLists::MemberLists ()
default

Definition at line 172 of file memberlist.h.

Public Destructor

~MemberLists()

MemberLists::~MemberLists ()
default

Definition at line 173 of file memberlist.h.

Public Member Functions

get()

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

Definition at line 174 of file memberlist.h.

174 const std::unique_ptr<MemberList> &get(MemberListType lt,MemberListContainer con)
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 }

References begin and end.


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


Generated via doxygen2docusaurus by Doxygen 1.14.0.