MRPT  1.9.9
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, Gray, and White.

◆ TEST() [2/2]

TEST ( TEnumType  ,
value2str   
)

Definition at line 56 of file enumtype_unittest.cpp.

References Black, East, Gray, and White.




Page generated by Doxygen 1.8.14 for MRPT 1.9.9 Git: 8fe78517f Sun Jul 14 19:43:28 2019 +0200 at lun oct 28 02:10:00 CET 2019