Main MRPT website > C++ reference for MRPT 1.9.9
Enumerations | Functions
enumtype_unittest.cpp File Reference
#include <mrpt/typemeta/TEnumType.h>
#include <gtest/gtest.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: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at lun oct 28 00:14:14 CET 2019