RMF
types.h
Go to the documentation of this file.
1/**
2 * \file RMF/types.h
3 * \brief Default implementation for types.h
4
5 * Use RMF_TYPES_HEADER to replace it with another header.
6 *
7 * Copyright 2007-2022 IMP Inventors. All rights reserved.
8 *
9 */
10
11#ifndef RMF_TYPES_H
12#define RMF_TYPES_H
13
14#include "RMF/config.h"
15#include "Vector.h"
16
17namespace RMF {
18
19//! Work around clang issue
20typedef unsigned int VectorDimension;
21
22//! For classes that are templated on the dimension
23#define RMF_VECTOR RMF::Vector
24
25//! For template classes that want to deal with lists of values
26#define RMF_TYPES std::vector
27
28/** The type used to store integral values.*/
29typedef int Int;
30/** The type used to store lists of integral values.*/
32/** The type used to store lists of floating point values.*/
33typedef float Float;
34/** The type used to store lists of floating point values.*/
36/** The type used to store lists of floating point values.*/
38/** The type used to store lists of string values.*/
39typedef std::string String;
40/** The type used to store lists of string values.*/
42/** The type used to store lists of strings values.*/
44/** The type used to store lists of lists of integers values.*/
46
47/** A Vector3 */
49/** A Vector3 */
51/** Many Vector3s */
53/** Many Vector4s */
55
56typedef std::array<int, 2> IntRange;
57
58} /* namespace RMF */
59
60#endif /* RMF_TYPES_H */
Represent coordinates.
Represent a point in some dimension.
Definition Vector.h:33
The namespace for all functionality in the library.
std::vector< Ints > IntsList
Definition types.h:45
std::string String
Definition types.h:39
std::vector< Vector3 > Vector3s
Definition types.h:52
Vector< 4U > Vector4
Definition types.h:50
std::vector< Strings > StringsList
Definition types.h:43
int Int
Definition types.h:29
Vector< 3U > Vector3
Definition types.h:48
std::vector< Floats > FloatsList
Definition types.h:37
std::vector< Vector4 > Vector4s
Definition types.h:54
std::vector< Int > Ints
Definition types.h:31
float Float
Definition types.h:33
unsigned int VectorDimension
Work around clang issue.
Definition types.h:20
std::vector< String > Strings
Definition types.h:41
std::vector< Float > Floats
Definition types.h:35
#define RMF_TYPES
For template classes that want to deal with lists of values.
Definition types.h:26