OTest2
A C++ testing framework
Public Member Functions | List of all members
OTest2::Tags Class Reference

List of tags assigned to a testing object. More...

#include <tags.h>

Public Member Functions

 Tags ()
 Ctor - empty list of tags. More...
 
 Tags (std::initializer_list< std::string > initializer_)
 Ctor - initialized list of tags. More...
 
 Tags (const Tags &other_)
 Copy ctor. More...
 
 Tags (Tags &&other_) noexcept
 Move ctor. More...
 
 ~Tags ()
 Dtor. More...
 
void swap (Tags &other_) noexcept
 Swap contents. More...
 
Tagsoperator= (const Tags &other_)
 Assignment. More...
 
Tagsoperator= (Tags &&other_) noexcept
 Move assignment. More...
 
void appendTag (const std::string &tag_)
 Append new tag. More...
 
bool findTag (const std::string &tag_) const noexcept
 Find a tag in the list. More...
 
bool isEmpty () const noexcept
 Check if the list is empty. More...
 

Detailed Description

List of tags assigned to a testing object.

Definition at line 32 of file tags.h.

Constructor & Destructor Documentation

◆ Tags() [1/4]

OTest2::Tags::Tags ( )

Ctor - empty list of tags.

Definition at line 27 of file tags.cpp.

◆ Tags() [2/4]

OTest2::Tags::Tags ( std::initializer_list< std::string >  initializer_)

Ctor - initialized list of tags.

Definition at line 32 of file tags.cpp.

◆ Tags() [3/4]

OTest2::Tags::Tags ( const Tags other_)

Copy ctor.

Definition at line 38 of file tags.cpp.

◆ Tags() [4/4]

OTest2::Tags::Tags ( Tags &&  other_)
noexcept

Move ctor.

Definition at line 44 of file tags.cpp.

◆ ~Tags()

OTest2::Tags::~Tags ( )

Dtor.

Definition at line 50 of file tags.cpp.

Member Function Documentation

◆ appendTag()

void OTest2::Tags::appendTag ( const std::string &  tag_)

Append new tag.

Definition at line 72 of file tags.cpp.

◆ findTag()

bool OTest2::Tags::findTag ( const std::string &  tag_) const
noexcept

Find a tag in the list.

Parameters
tag_The tag
Returns
True if the tag is present

Definition at line 77 of file tags.cpp.

◆ isEmpty()

bool OTest2::Tags::isEmpty ( ) const
noexcept

Check if the list is empty.

Definition at line 85 of file tags.cpp.

◆ operator=() [1/2]

Tags & OTest2::Tags::operator= ( const Tags other_)

Assignment.

Definition at line 59 of file tags.cpp.

◆ operator=() [2/2]

Tags & OTest2::Tags::operator= ( Tags &&  other_)
noexcept

Move assignment.

Definition at line 66 of file tags.cpp.

◆ swap()

void OTest2::Tags::swap ( Tags other_)
noexcept

Swap contents.

Definition at line 54 of file tags.cpp.


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