SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Named type functions. More...
#include "smtk/TupleTraits.h"
#include "smtk/common/CompilerInformation.h"
#include <boost/type_index.hpp>
#include <array>
#include <deque>
#include <forward_list>
#include <list>
#include <map>
#include <memory>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <typeinfo>
#include <unordered_map>
#include <unordered_set>
#include <vector>
Go to the source code of this file.
Namespaces | |
smtk | |
The main namespace for the Simulation Modeling Tool Kit (SMTK). | |
smtk::common | |
Classes used throughout the toolkit. | |
Functions | |
template<typename Type > | |
std::string | smtk::common::typeName () |
Return the name of a class. | |
Named type functions.
Resources and operations have a virtual method typeName(), but to access this value we must create an instance of the class. Alternatively, these classes can (and should) declare a constant expression field "type_name" that can be queried without instantiating this class. The macro "smtkTypeMacro" is defined in SharedFromThis.h to declare this field in tandem with typeName(). To relax the requirements of a) a macro definition in a class header, or b) a mysterious constexpr in a class declaration, the free function name() will traverse one of two code paths to determine a type name for a user-defined type.
#define name_double_argument_hashed_stl_container | ( | CONTAINER | ) |
#define name_double_argument_sorted_stl_container | ( | CONTAINER | ) |
#define name_double_argument_stl_container | ( | CONTAINER | ) |
#define name_single_argument_sorted_stl_container | ( | CONTAINER | ) |
#define name_single_argument_stl_container | ( | CONTAINER | ) |
#define name_single_argument_stl_pointer | ( | POINTER | ) |