~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/module/graph.h

  • Committer: Olaf van der Spek
  • Date: 2011-08-14 17:13:26 UTC
  • mto: This revision was merged to the branch mainline in revision 2407.
  • Revision ID: olafvdspek@gmail.com-20110814171326-e6nnh3q5cp3o0tk3
Remove unnecessary constructors and destructors

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <drizzled/module/vertex.h>
23
23
 
24
24
 
25
 
namespace drizzled
26
 
{
27
 
 
28
 
namespace module
29
 
{
30
 
 
31
 
class Graph
32
 
{
33
 
 
34
 
private:
35
 
  VertexGraph graph_;
36
 
 
37
 
  Graph(const Graph&);
38
 
  Graph& operator=(const Graph&);
39
 
 
 
25
namespace drizzled {
 
26
namespace module {
 
27
 
 
28
class Graph : boost::noncopyable
 
29
{
40
30
public:
41
 
  Graph() :
42
 
    graph_()
43
 
  { }
44
 
 
45
31
  VertexGraph& getGraph()
46
32
  {
47
33
    return graph_;
49
35
 
50
36
  Vertex& properties(const VertexDesc& v)
51
37
  {
52
 
     boost::property_map<VertexGraph, vertex_properties_t>::type param=
53
 
       boost::get(vertex_properties, graph_);
54
 
     return param[v];
 
38
     return boost::get(vertex_properties, graph_)[v];
55
39
  }
 
40
private:
 
41
  VertexGraph graph_;
56
42
};
57
43
 
58
44
} /* namespace module */