#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) |
Definition in file mpararr.h.
|
Value: for (ArrayIter<keytype,valuetype> varname (arrayname); \
!varname.exhausted(); varname.next()) |
|
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 *
|
|
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(). |
|
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(). |