rippled
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Attributes | List of all members
beast::unit_test::suite_list Class Reference

A container of test suites. More...

#include <suite_list.h>

Inheritance diagram for beast::unit_test::suite_list:
Inheritance graph
[legend]
Collaboration diagram for beast::unit_test::suite_list:
Collaboration graph
[legend]

Public Types

using value_type = typename cont_type::value_type
 
using size_type = typename cont_type::size_type
 
using difference_type = typename cont_type::difference_type
 
using iterator = typename cont_type::const_iterator
 
using const_iterator = typename cont_type::const_iterator
 

Public Member Functions

template<class Suite >
void insert (char const *name, char const *module, char const *library, bool manual, int priority)
 Insert a suite into the set.
 
bool empty () const
 Returns true if the container is empty.
 
size_type size () const
 Returns the number of items in the container.
 
const_iterator begin () const
 Returns forward iterators for traversal.
 
const_iterator cbegin () const
 
const_iterator end () const
 
const_iterator cend () const
 

Protected Member Functions

cont_typecont ()
 
cont_type const & cont () const
 

Private Types

using cont_type = std::set< suite_info >
 

Private Attributes

std::unordered_set< std::stringnames_
 
std::unordered_set< std::type_indexclasses_
 
cont_type m_cont
 

Detailed Description

A container of test suites.

Definition at line 21 of file suite_list.h.

Member Typedef Documentation

◆ cont_type

Definition at line 20 of file const_container.h.

◆ value_type

using beast::unit_test::detail::const_container< std::set< suite_info > >::value_type = typename cont_type::value_type
inherited

Definition at line 38 of file const_container.h.

◆ size_type

using beast::unit_test::detail::const_container< std::set< suite_info > >::size_type = typename cont_type::size_type
inherited

Definition at line 39 of file const_container.h.

◆ difference_type

using beast::unit_test::detail::const_container< std::set< suite_info > >::difference_type = typename cont_type::difference_type
inherited

Definition at line 40 of file const_container.h.

◆ iterator

using beast::unit_test::detail::const_container< std::set< suite_info > >::iterator = typename cont_type::const_iterator
inherited

Definition at line 41 of file const_container.h.

◆ const_iterator

using beast::unit_test::detail::const_container< std::set< suite_info > >::const_iterator = typename cont_type::const_iterator
inherited

Definition at line 42 of file const_container.h.

Member Function Documentation

◆ insert()

template<class Suite >
void beast::unit_test::suite_list::insert ( char const *  name,
char const *  module,
char const *  library,
bool  manual,
int  priority 
)

Insert a suite into the set.

The suite must not already exist.

Definition at line 48 of file suite_list.h.

◆ cont() [1/2]

Definition at line 26 of file const_container.h.

◆ cont() [2/2]

cont_type const & beast::unit_test::detail::const_container< std::set< suite_info > >::cont ( ) const
protectedinherited

Definition at line 32 of file const_container.h.

◆ empty()

bool beast::unit_test::detail::const_container< std::set< suite_info > >::empty ( ) const
inherited

Returns true if the container is empty.

Definition at line 46 of file const_container.h.

◆ size()

Returns the number of items in the container.

Definition at line 53 of file const_container.h.

◆ begin()

Returns forward iterators for traversal.

Definition at line 61 of file const_container.h.

◆ cbegin()

Definition at line 67 of file const_container.h.

◆ end()

Definition at line 73 of file const_container.h.

◆ cend()

Definition at line 79 of file const_container.h.

Member Data Documentation

◆ names_

std::unordered_set<std::string> beast::unit_test::suite_list::names_
private

Definition at line 25 of file suite_list.h.

◆ classes_

std::unordered_set<std::type_index> beast::unit_test::suite_list::classes_
private

Definition at line 26 of file suite_list.h.

◆ m_cont

Definition at line 22 of file const_container.h.