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

Unordered indexed multimap of test marks. More...

#include <testmarkmap.h>

Inheritance diagram for OTest2::TestMarkMap:
Inheritance graph
[legend]
Collaboration diagram for OTest2::TestMarkMap:
Collaboration graph
[legend]

Public Member Functions

 TestMarkMap ()
 Ctor. More...
 
 TestMarkMap (const std::string &prefix_)
 Ctor. More...
 
 TestMarkMap (const CtorMark *)
 Deserialization ctor. More...
 
virtual ~TestMarkMap ()
 Dtor. More...
 
 TestMarkMap (const TestMarkMap &)=delete
 
TestMarkMapoperator= (const TestMarkMap &)=delete
 
void append (const std::string &key_, TestMarkPtr mark_)
 Append a mark. More...
 
- Public Member Functions inherited from OTest2::TestMarkPrefix
 TestMarkPrefix (const TestMarkPrefix &)=delete
 
TestMarkPrefixoperator= (const TestMarkPrefix &)=delete
 
- Public Member Functions inherited from OTest2::TestMark
 TestMark ()
 Ctor. More...
 
virtual ~TestMark ()
 Dtor. More...
 
 TestMark (const TestMark &)=delete
 
TestMarkoperator= (const TestMark &)=delete
 
TestMarkHashCode getHashCode () const noexcept
 Get testmarks' hash code. More...
 
bool isEqual (const TestMark &other_, long double precision_=DEFAULT_FLOAT_PRECISION) const
 Compare two marks for equality. More...
 
bool isEqualValue (const TestMark &other_, long double precision_=DEFAULT_FLOAT_PRECISION) const
 Compare values of 2 test mark nodes. More...
 
bool isEqualValueHash (const TestMark &other_, long double precision_=DEFAULT_FLOAT_PRECISION) const
 Compare values of 2 testmark nodes and their hash codes. More...
 
void linearizedMark (std::vector< LinearizedRecord > &array_) const
 Create the linearized test mark. More...
 
void printOpen (std::ostream &os_, const std::string &prefix_) const
 Print opening of the node into a stream. More...
 
void printClose (std::ostream &os_, const std::string &prefix_) const
 Print closing of the node into a stream. More...
 
void serializeMark (TestMarkOut &serializer_) const
 Serialize the testmark into a serializer. More...
 
void deserializeMark (TestMarkFactory &factory_, TestMarkIn &deserializer_)
 Deserialize the testmark. More...
 
void computeDiff (const TestMark &other_, std::vector< LinearizedRecord > &left_, std::vector< LinearizedRecord > &right_, DiffLogBuilder &diff_) const
 Compute difference of two test marks. More...
 
void printMark (TestMarkFormatter &formatter_) const
 Print the testmark. More...
 
void printAddMark (TestMarkFormatter &formatter_) const
 Print the testmark as it's completely new. More...
 

Static Public Member Functions

static const char * typeMark ()
 Get serialization typemark. More...
 

Additional Inherited Members

- Protected Member Functions inherited from OTest2::TestMarkPrefix
 TestMarkPrefix (const char *serialize_type_mark_, const std::string &prefix_)
 Ctor. More...
 
 TestMarkPrefix (const CtorMark *, const char *serialize_type_mark_)
 Deserialization ctor. More...
 
virtual ~TestMarkPrefix ()
 Dtor. More...
 
- Protected Attributes inherited from OTest2::TestMarkPrefix
TestMarkHash hash
 

Detailed Description

Unordered indexed multimap of test marks.

Definition at line 35 of file testmarkmap.h.

Constructor & Destructor Documentation

◆ TestMarkMap() [1/4]

OTest2::TestMarkMap::TestMarkMap ( )

Ctor.

Definition at line 35 of file testmarkmap.cpp.

◆ TestMarkMap() [2/4]

OTest2::TestMarkMap::TestMarkMap ( const std::string &  prefix_)
explicit

Ctor.

Parameters
prefix_Prefix of the test mark

Definition at line 41 of file testmarkmap.cpp.

◆ TestMarkMap() [3/4]

OTest2::TestMarkMap::TestMarkMap ( const CtorMark *  ctor_mark_)
explicit

Deserialization ctor.

Definition at line 48 of file testmarkmap.cpp.

◆ ~TestMarkMap()

OTest2::TestMarkMap::~TestMarkMap ( )
virtual

Dtor.

Definition at line 55 of file testmarkmap.cpp.

◆ TestMarkMap() [4/4]

OTest2::TestMarkMap::TestMarkMap ( const TestMarkMap )
delete

Member Function Documentation

◆ append()

void OTest2::TestMarkMap::append ( const std::string &  key_,
TestMarkPtr  mark_ 
)

Append a mark.

Parameters
key_Key of the mark
mark_The mark

Definition at line 126 of file testmarkmap.cpp.

◆ operator=()

TestMarkMap& OTest2::TestMarkMap::operator= ( const TestMarkMap )
delete

◆ typeMark()

const char * OTest2::TestMarkMap::typeMark ( )
static

Get serialization typemark.

Definition at line 59 of file testmarkmap.cpp.


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