~davidagraf/zorba/trace_without_debug_info

« back to all changes in this revision

Viewing changes to src/api/typeidentimpl.cpp

  • Committer: David Graf
  • Date: 2012-06-27 07:20:59 UTC
  • mfrom: (10869.1.25 zorba)
  • Revision ID: davidagraf@gmail.com-20120627072059-723duu6vsbqu60ax
merged trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
199
199
}
200
200
 
201
201
 
 
202
#ifdef ZORBA_WITH_JSON
 
203
 
 
204
TypeIdentifier_t TypeIdentifier::createStructuredItemType(IdentTypes::quantifier_t q)
 
205
{
 
206
  TypeIdentifier_t ti(new TypeIdentifier());
 
207
  ti->m_kind = IdentTypes::STRUCTURED_ITEM_TYPE;
 
208
  ti->m_quantifier = q;
 
209
 
 
210
  return ti;
 
211
}
 
212
 
 
213
 
 
214
TypeIdentifier_t TypeIdentifier::createJSONItemType(IdentTypes::quantifier_t q)
 
215
{
 
216
  TypeIdentifier_t ti(new TypeIdentifier());
 
217
  ti->m_kind = IdentTypes::JSON_ITEM_TYPE;
 
218
  ti->m_quantifier = q;
 
219
 
 
220
  return ti;
 
221
}
 
222
 
 
223
 
 
224
TypeIdentifier_t TypeIdentifier::createJSONObjectType(IdentTypes::quantifier_t q)
 
225
{
 
226
  TypeIdentifier_t ti(new TypeIdentifier());
 
227
  ti->m_kind = IdentTypes::JSON_OBJECT_TYPE;
 
228
  ti->m_quantifier = q;
 
229
 
 
230
  return ti;
 
231
}
 
232
 
 
233
 
 
234
TypeIdentifier_t TypeIdentifier::createJSONArrayType(IdentTypes::quantifier_t q)
 
235
{
 
236
  TypeIdentifier_t ti(new TypeIdentifier());
 
237
  ti->m_kind = IdentTypes::JSON_ARRAY_TYPE;
 
238
  ti->m_quantifier = q;
 
239
 
 
240
  return ti;
 
241
}
 
242
 
 
243
 
 
244
TypeIdentifier_t TypeIdentifier::createJSONPairType(IdentTypes::quantifier_t q)
 
245
{
 
246
  TypeIdentifier_t ti(new TypeIdentifier());
 
247
  ti->m_kind = IdentTypes::JSON_PAIR_TYPE;
 
248
  ti->m_quantifier = q;
 
249
 
 
250
  return ti;
 
251
}
 
252
#endif
 
253
 
 
254
 
202
255
TypeIdentifier_t TypeIdentifier::createItemType(IdentTypes::quantifier_t quantifier)
203
256
{
204
257
  TypeIdentifier_t ti(new TypeIdentifier());