Skip to content
Snippets Groups Projects
Select Git revision
  • 4603f70ddcf14b534ed7feb51006019477e4b68c
  • master default protected
  • develop protected
  • feat_remove_attr
  • python2.7
  • python3.8
6 results

token.cpp

Blame
  • relation.cpp 1.17 KiB
    /*
    	Copyright (C) 2010 Tomasz Śniatowski, Adam Radziszewski, Paweł Kędzia
    	Part of the libcorpus2 project
    
    	This program is free software; you can redistribute it and/or modify it
    under the terms of the GNU General Public License as published by the Free
    Software Foundation; either version 3 of the License, or (at your option)
    any later version.
    
    	This program is distributed in the hope that it will be useful, but
    WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
    or FITNESS FOR A PARTICULAR PURPOSE.
    
    	See the LICENSE and COPYING files for more details.
    */
    
    #include <boost/make_shared.hpp>
    #include <libcorpus2_whole/relation.h>
    
    namespace Corpus2 {
    namespace whole {
    
    Relation::Relation(const std::string& name,
    				   const boost::shared_ptr<const DirectionPoint> from,
    				   const boost::shared_ptr<const DirectionPoint> to)
    	: name_(name), from_(from), to_(to)
    {
    }
    
    Relation::Relation(const std::string& name,
    				   const DirectionPoint& from,
    				   const DirectionPoint& to)
    	: name_(name),
    	from_(boost::make_shared<const DirectionPoint>(from)),
    	to_(boost::make_shared<const DirectionPoint>(to))
    {
    }
    
    Relation::~Relation()
    {
    }
    
    } // whole ns
    } // Corpus2 ns