Open
Graph Drawing
Framework

 v. 2023.09 (Elderberry)
 

Array.h File Reference

Declaration and implementation of Array class and Array algorithms. More...

#include <ogdf/basic/basic.h>
#include <ogdf/basic/comparer.h>
#include <ogdf/basic/exceptions.h>
#include <ogdf/basic/memory.h>
#include <algorithm>
#include <cstdlib>
#include <initializer_list>
#include <new>
#include <ostream>
#include <random>
#include <type_traits>

Go to the source code of this file.

Classes

class  ogdf::Array< E, INDEX >
 The parameterized class Array implements dynamic arrays of type E. More...
 
class  ogdf::ArrayBuffer< E, INDEX >
 An array that keeps track of the number of inserted elements; also usable as an efficient stack. More...
 
class  ogdf::ArrayReverseIteratorBase< E, isConst >
 Random-access reverse iterator based on a pointer to an array element. More...
 
class  ogdf::ArrayReverseIteratorBase< E, isConst >
 Random-access reverse iterator based on a pointer to an array element. More...
 

Namespaces

 ogdf
 The namespace for all OGDF objects.
 

Typedefs

template<class E >
using ogdf::ArrayConstIterator = const E *
 
template<class E >
using ogdf::ArrayConstReverseIterator = ArrayReverseIteratorBase< E, true >
 
template<class E >
using ogdf::ArrayIterator = E *
 
template<class E >
using ogdf::ArrayReverseIterator = ArrayReverseIteratorBase< E, false >
 

Functions

template<class E , class INDEX >
std::ostream & ogdf::operator<< (std::ostream &os, const ogdf::Array< E, INDEX > &a)
 Prints array a to output stream os. More...
 
template<class E , class INDEX >
void ogdf::print (std::ostream &os, const Array< E, INDEX > &a, char delim=' ')
 Prints array a to output stream os using delimiter delim. More...
 

Detailed Description

Declaration and implementation of Array class and Array algorithms.

Author
Carsten Gutwenger
License:
This file is part of the Open Graph Drawing Framework (OGDF).
Copyright (C)
See README.md in the OGDF root directory for details.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License Version 2 or 3 as published by the Free Software Foundation; see the file LICENSE.txt included in the packaging of this file for details.
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, see http://www.gnu.org/copyleft/gpl.html

Definition in file Array.h.