summaryrefslogtreecommitdiff
path: root/hw6/include/intersector_factory_base.h
blob: c6e9e986b840ca72ea1b3fa7c98c3561353aba82 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/******************************************************************/
/* This file is part of the homework assignments for CSCI-427/527 */
/* at The College of William & Mary and authored by Pieter Peers. */
/* No part of this file, whether altered or in original form, can */
/* be distributed or used outside the context of CSCI-427/527     */
/* without consent of either the College of William & Mary or     */
/* Pieter Peers.                                                  */
/******************************************************************/
#ifndef _INTERSECTOR_FACTORY_BASE_H_
#define _INTERSECTOR_FACTORY_BASE_H_

#include <memory>
#include "boundedCompound.h"
#include "intersector_base.h"

class intersector_factory_base {
public:
  /////////////////
  // Constructor //
  /////////////////
  intersector_factory_base(void) {}

  //////////////
  // Operator //
  //////////////
  virtual std::unique_ptr<const intersector_base> operator()(const boundedCompound& bc) const = 0;
};

#endif /* _INTERSECTOR_FACTORY_BASE_H_ */