include/topology/filtrationcontainer.h
author Dmitriy Morozov <morozov@cs.duke.edu>
Fri, 17 Aug 2007 15:08:27 -0400
changeset 57 07a8ed7c97a3
parent 20 7bf6aa6b0ab6
child 52 08074dfb2a6a
child 61 f905b57dd7ab
permissions -rw-r--r--
Merged CGAL 3.3 changes with the work on ARVineyard

/*
 * Author: Dmitriy Morozov
 * Department of Computer Science, Duke University, 2006
 */

#ifndef __FILTRATIONCONTAINER_H__
#define __FILTRATIONCONTAINER_H__

#include "utilities/consistencylist.h"
#include "cycle.h"

/**
 * FiltrationContainer class. Serves as a parent of Filtration that 
 * describes the container functionality. Used by FiltrationSimplex 
 * to get Cycle representation.
 */
template<class FltrSmplx>
class FiltrationContainer: public ConsistencyList<FltrSmplx>
{
	public:
		typedef		FltrSmplx														FiltrationSimplex;
		typedef		ConsistencyList<FiltrationSimplex>								ConsistencyList;
		
		/// \name Cycles and Trails 
		/// @{
		/// Index is and therfore acts like an iterator. The name is preserved for historical reasons.
		typedef		typename ConsistencyList::iterator								Index;
		/// const_Index is a const_iterator
		typedef		typename ConsistencyList::const_iterator						const_Index;
		/// @}

		/// \name Cycles and Trails 
		/// @{
		typedef		typename ConsistencyList::GreaterThanComparison					CyclesComparator;
		typedef		typename ConsistencyList::LessThanComparison					TrailsComparator;
		typedef		typename ConsistencyList::ConsistencyComparison 				ConsistencyComparator;
		typedef		::Cycle<Index, CyclesComparator, ConsistencyComparator>			Cycle;
		typedef		::Cycle<Index, TrailsComparator, ConsistencyComparator>			Trail;
		/// @}

		template<class U>
		struct rebind { typedef FiltrationContainer<U> other; };
};

#endif // __FILTRATIONCONTAINER_H__