Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

mpararr.h File Reference

More...

#include <stdlib.h>
#include <magic/mobject.h>
#include <magic/mstring.h>
#include <magic/marchive.h>
#include <magic/mmagisupp.h>

Go to the source code of this file.

Compounds

class  Array
 Generic array template, for objects and non-objects. More...

class  iterator
 Array iterator, although iterating with integer index may be easier. More...


Functions

 BEGIN_NAMESPACE (MagiC)
template<class TYPE> Array< TYPE > * clone (const Array< TYPE > &orig)
template<class TYPE> void copyClone (Array< TYPE > &trg, const Array< TYPE > &orig)


Detailed Description

Definition in file mpararr.h.


Define Documentation

#define foreach_Array valuetype,
arrayname,
varname   
 

Value:

for (ArrayIter<keytype,valuetype> varname (arrayname); \
         !varname.exhausted(); varname.next())

Definition at line 445 of file mpararr.h.


Function Documentation

BEGIN_NAMESPACE MagiC   
 

This file is part of the MagiC++ library.

* * Copyright (C) 1998-2002 Marko Grönroos <magi@iki.fi> * *

* This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library 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 * Library General Public License for more details. * * You should have received a copy of the GNU Library General Public * License along with this library; see the file COPYING.LIB. If * not, write to the Free Software Foundation, Inc., 59 Temple Place *

  • Suite 330, Boston, MA 02111-1307, USA. * *

Array<TYPE>* clone const Array< TYPE > &    orig
 

Clone operator for the Array.

Really clones. This must be separate from the Array, because it uses the 'clone'-method of Object, which does not apply to non-Object classes (such as the primitive types)

Definition at line 423 of file mpararr.h.

References Array::size().

void copyClone Array< TYPE > &    trg,
const Array< TYPE > &    orig
 

Copies Array by cloning (see clone).

Really clones. This must be separate from the Array, because it uses the 'clone'-method of Object, which does not apply to non-Object classes (such as the primitive types)

Definition at line 436 of file mpararr.h.

References Array::empty(), Array::getp(), Array::make(), Array::put(), and Array::size().


Generated on Thu Feb 10 20:06:43 2005 for LibMagiC by doxygen1.2.18