The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
//
// (C) Copyright 2011-2012 Sergey A. Babkin.
// This file is a part of Triceps.
// See the file COPYRIGHT for the copyright notice and license information
//
//
// Type for constructing the group handles.

#ifndef __Triceps_GroupHandleType_h__
#define __Triceps_GroupHandleType_h__

#include <type/RowHandleType.h>
#include <table/GroupHandle.h>

namespace TRICEPS_NS {

class GroupHandleType : public RowHandleType
{
public:
	GroupHandleType()
	{ }

	GroupHandleType(const RowHandleType &orig) :
		RowHandleType(orig)
	{ }
	
	// Factory for the new handles.
	// @param r - the row to refer, the caller must have it already incref-ed.
	GroupHandle *makeHandle(const Row *r) const
	{
		return new(size_) GroupHandle(r);
	}

};

}; // TRICEPS_NS

#endif // __Triceps_GroupHandleType_h__