~ubuntu-branches/ubuntu/trusty/drizzle/trusty

« back to all changes in this revision

Viewing changes to drizzled/generator/functions.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

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 */