1 #ifndef ANCHORDICT_H_62B23520_7C8E_11DE_8A39_0800200C9A66 2 #define ANCHORDICT_H_62B23520_7C8E_11DE_8A39_0800200C9A66 4 #if defined(_MSC_VER) || \ 5 (defined(__GNUC__) && (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) || \ 6 (__GNUC__ >= 4)) // GCC supports "pragma once" correctly since 3.4 12 #include "../anchor.h" 26 void Register(anchor_t anchor, T value) {
27 if (anchor > m_data.size()) {
28 m_data.resize(anchor);
30 m_data[anchor - 1] = value;
33 T Get(anchor_t anchor)
const {
return m_data[anchor - 1]; }
36 std::vector<T> m_data;
40 #endif // ANCHORDICT_H_62B23520_7C8E_11DE_8A39_0800200C9A66 An object that stores and retrieves values correlating to anchor_t values.
Definition: anchordict.h:23