~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/generator/functions.cc

  • Committer: Mark Atwood
  • Date: 2011-06-25 15:38:53 UTC
  • mfrom: (2318.6.78 refactor16)
  • Revision ID: me@mark.atwood.name-20110625153853-za5fjiwd3z0aykdd
mergeĀ lp:~olafvdspek/drizzle/refactor16

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
 
28
28
using namespace std;
29
29
 
30
 
namespace drizzled
31
 
{
32
 
namespace generator
33
 
{
34
 
 
35
 
Functions::Functions(Session &arg) :
36
 
  session(arg)
37
 
{
38
 
  function_list.reserve(plugin::Function::getMap().size() + FunctionContainer::getMap().size());
39
 
 
40
 
  std::transform(FunctionContainer::getMap().begin(),
41
 
                 FunctionContainer::getMap().end(),
42
 
                 std::back_inserter(function_list),
43
 
                 boost::bind(&FunctionContainer::Map::value_type::first, _1) );
44
 
 
45
 
  std::transform(plugin::Function::getMap().begin(),
46
 
                 plugin::Function::getMap().end(),
47
 
                 std::back_inserter(function_list),
48
 
                 boost::bind(&plugin::Function::Map::value_type::first, _1) );
49
 
 
50
 
  iter= function_list.begin();
 
30
namespace drizzled {
 
31
namespace generator {
 
32
 
 
33
Functions::Functions(Session&)
 
34
{
 
35
  functions.reserve(plugin::Function::getMap().size() + FunctionContainer::getMap().size());
 
36
 
 
37
  BOOST_FOREACH(FunctionContainer::Map::const_reference it, FunctionContainer::getMap()) 
 
38
    functions.push_back(it.first);
 
39
 
 
40
  BOOST_FOREACH(plugin::Function::Map::const_reference it, plugin::Function::getMap())
 
41
    functions.push_back(it.first);
 
42
 
 
43
  iter= functions.begin();
51
44
}
52
45
 
53
46
} /* namespace generator */