MRPT  2.0.1
Enumerations | Functions
enumtype_unittest.cpp File Reference
#include <gtest/gtest.h>
#include <mrpt/typemeta/TEnumType.h>
Include dependency graph for enumtype_unittest.cpp:

Go to the source code of this file.

Enumerations

enum  TestColors {
  TestColors::Black = 0, TestColors::Gray = 7, TestColors::White = 15, TestColors::Black = 0,
  TestColors::Gray = 7, TestColors::White = 15
}
 
enum  Directions {
  North, East, South, West,
  North, East, South, West
}
 

Functions

 MRPT_FILL_ENUM_MEMBER (TestColors, Black)
 
 MRPT_FILL_ENUM_MEMBER (TestColors, Gray)
 
 MRPT_FILL_ENUM_MEMBER (TestColors, White)
 
 MRPT_FILL_ENUM (North)
 
 MRPT_FILL_ENUM (East)
 
 MRPT_FILL_ENUM (South)
 
 MRPT_FILL_ENUM (West)
 
 TEST (TEnumType, str2value)
 
 TEST (TEnumType, value2str)
 

Enumeration Type Documentation

◆ Directions

enum Directions
Enumerator
North 
East 
South 
West 
North 
East 
South 
West 

Definition at line 28 of file enumtype_unittest.cpp.

◆ TestColors

enum TestColors
strong
Enumerator
Black 
Gray 
White 
Black 
Gray 
White 
Examples:
typemeta_TEnumType/test.cpp.

Definition at line 14 of file enumtype_unittest.cpp.

Function Documentation

◆ MRPT_FILL_ENUM() [1/4]

MRPT_FILL_ENUM ( North  )

◆ MRPT_FILL_ENUM() [2/4]

MRPT_FILL_ENUM ( East  )

◆ MRPT_FILL_ENUM() [3/4]

MRPT_FILL_ENUM ( South  )

◆ MRPT_FILL_ENUM() [4/4]

MRPT_FILL_ENUM ( West  )

◆ MRPT_FILL_ENUM_MEMBER() [1/3]

MRPT_FILL_ENUM_MEMBER ( TestColors  ,
Black   
)

◆ MRPT_FILL_ENUM_MEMBER() [2/3]

MRPT_FILL_ENUM_MEMBER ( TestColors  ,
Gray   
)

◆ MRPT_FILL_ENUM_MEMBER() [3/3]

MRPT_FILL_ENUM_MEMBER ( TestColors  ,
White   
)

◆ TEST() [1/2]

TEST ( TEnumType  ,
str2value   
)

Definition at line 43 of file enumtype_unittest.cpp.

References Black, East, EXPECT_EQ(), Gray, and White.

Here is the call graph for this function:

◆ TEST() [2/2]

TEST ( TEnumType  ,
value2str   
)

Definition at line 56 of file enumtype_unittest.cpp.

References Black, East, EXPECT_EQ(), Gray, and White.

Here is the call graph for this function:



Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020