Skip to content
Snippets Groups Projects
Select Git revision
  • 163a2c42a596c6a408c2a601021e9fb36c86bfb5
  • master default protected
  • vertical_relations
  • lu_without_semantic_frames
  • hierarchy
  • additional-unification-filters
  • v0.1.1
  • v0.1.0
  • v0.0.9
  • v0.0.8
  • v0.0.7
  • v0.0.6
  • v0.0.5
  • v0.0.4
  • v0.0.3
  • v0.0.2
  • v0.0.1
17 results

docker-entrypoint-frontend

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