IT++ Logo Newcom Logo

factory.h File Reference

Base class for class factories. More...

Go to the source code of this file.

Namespaces

namespace  itpp

Classes

class  itpp::Factory
 Base class for class factories. More...

Functions

template<class T>
void create_elements (T *&ptr, const int n, const Factory &)
 Create an n-length array of T to be used as Array, Vec or Mat elements.
template<class T>
void create_elements (Array< T > *&ptr, const int n, const Factory &f)
 Create an n-length array of Array<T> to be used as Array elements.
template<class T>
void create_elements (Mat< T > *&ptr, const int n, const Factory &f)
 Create an n-length array of Mat<T> to be used as Array elements.
template<class T>
void create_elements (Vec< T > *&ptr, const int n, const Factory &f)
 Create an n-length array of Vec<T> to be used as Array elements.

Variables

const Factory DEFAULT_FACTORY
 Default (dummy) factory.


Detailed Description

Base class for class factories.

Author:
Johan Bergman
Date
2007-04-18 08:58:29 +0200 (Wed, 18 Apr 2007)
Revision
1013

-------------------------------------------------------------------------

IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions

Copyright (C) 1995-2007 (see AUTHORS file for a list of contributors)

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 2 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 GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

-------------------------------------------------------------------------

Definition in file factory.h.


Function Documentation

template<class T>
void create_elements T *&  ptr,
const int  n,
const Factory & 
 

Create an n-length array of T to be used as Array, Vec or Mat elements.

Definition at line 140 of file factory.h.

template<class T>
void create_elements Array< T > *&  ptr,
const int  n,
const Factory &  f
 

Create an n-length array of Array<T> to be used as Array elements.

Definition at line 147 of file factory.h.

template<class T>
void create_elements Mat< T > *&  ptr,
const int  n,
const Factory &  f
 

Create an n-length array of Mat<T> to be used as Array elements.

Definition at line 161 of file factory.h.

template<class T>
void create_elements Vec< T > *&  ptr,
const int  n,
const Factory &  f
 

Create an n-length array of Vec<T> to be used as Array elements.

Definition at line 175 of file factory.h.


Variable Documentation

const Factory itpp::DEFAULT_FACTORY
 

Default (dummy) factory.

Definition at line 136 of file factory.h.

SourceForge Logo

Generated on Fri Jan 11 08:51:39 2008 for IT++ by Doxygen 1.3.9.1