MoSync 3.3
Vector.h File Reference

Generic, dynamic vector container behaving like a subset of std::vector. More...

Classes

class  MAUtil::Vector< Type >
 A generic, dynamic, random-access container. More...

Namespaces

namespace  MAUtil
 

MoSync utility libraries.


Defines

#define MAUTIL_VECTOR_LOG(...)
#define Vector_each(type, itr, v)   for(MAUtil::Vector<type>::iterator itr = (v).begin(); itr != (v).end(); itr++)
#define templateVector_each(type, itr, v)   for(typename MAUtil::Vector<type>::iterator itr = (v).begin(); itr != (v).end(); itr++)
#define Vector_each_const(type, itr, v)   for(MAUtil::Vector<type>::const_iterator itr = (v).begin(); itr != (v).end(); itr++)
#define templateVector_each_const(type, itr, v)   for(typename MAUtil::Vector<type>::const_iterator itr = (v).begin(); itr != (v).end(); itr++)

Detailed Description

Generic, dynamic vector container behaving like a subset of std::vector.

Author:
Patrick Broman and Niklas Nummelin

Define Documentation

#define Vector_each (   type,
  itr,
 
)    for(MAUtil::Vector<type>::iterator itr = (v).begin(); itr != (v).end(); itr++)

A macro for iterating over a vector.

Example: Vector_each(class MyType, itr, mySet) { myFunc(*itr); }

#define templateVector_each (   type,
  itr,
 
)    for(typename MAUtil::Vector<type>::iterator itr = (v).begin(); itr != (v).end(); itr++)
#define Vector_each_const (   type,
  itr,
 
)    for(MAUtil::Vector<type>::const_iterator itr = (v).begin(); itr != (v).end(); itr++)

A macro for iterating over a const vector.

#define templateVector_each_const (   type,
  itr,
 
)    for(typename MAUtil::Vector<type>::const_iterator itr = (v).begin(); itr != (v).end(); itr++)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines