Lines Matching defs:Mapping
35 /// EntryOrPair - A key may mapping to a signal entry or a pair of entries,
36 /// user is responsible for the type of Mapping.entry
42 struct Mapping {
47 typedef std::vector<Mapping> KeyEntryPool;
55 /// lookUp - look up the entry mapping to pKey
59 /// lookUpFirstEntry - look up the first entry mapping to pKey
63 /// lookUpSecondEntry - look up the second entry mapping to pKey
90 const_iterator mapping, mEnd = m_Pool.end();
91 for (mapping = m_Pool.begin(); mapping != mEnd; ++mapping) {
92 if (mapping->key == &pKey) {
93 return mapping->entry.entry_ptr;
102 iterator mapping, mEnd = m_Pool.end();
103 for (mapping = m_Pool.begin(); mapping != mEnd; ++mapping) {
104 if (mapping->key == &pKey) {
105 return mapping->entry.entry_ptr;
115 const_iterator mapping, mEnd = m_Pool.end();
116 for (mapping = m_Pool.begin(); mapping != mEnd; ++mapping) {
117 if (mapping->key == &pKey) {
118 return mapping->entry.pair_ptr->entry1;
128 const_iterator mapping, mEnd = m_Pool.end();
129 for (mapping = m_Pool.begin(); mapping != mEnd; ++mapping) {
130 if (mapping->key == &pKey) {
131 return mapping->entry.pair_ptr->entry1;
141 const_iterator mapping, mEnd = m_Pool.end();
142 for (mapping = m_Pool.begin(); mapping != mEnd; ++mapping) {
143 if (mapping->key == &pKey) {
144 return mapping->entry.pair_ptr->entry2;
154 const_iterator mapping, mEnd = m_Pool.end();
155 for (mapping = m_Pool.begin(); mapping != mEnd; ++mapping) {
156 if (mapping->key == &pKey) {
157 return mapping->entry.pair_ptr->entry2;
167 Mapping mapping;
168 mapping.key = &pKey;
169 mapping.entry.entry_ptr = &pEntry;
170 m_Pool.push_back(mapping);
177 Mapping mapping;
178 mapping.key = &pKey;
180 mapping.entry.pair_ptr = &m_Pairs.back();
181 m_Pool.push_back(mapping);