Chemical Data Processing Library C++ API - Version 1.2.0
Classes | Namespaces | Macros | Typedefs | Functions
Array.hpp File Reference

Definition of the class CDPL::Util::Array. More...

#include <vector>
#include <string>
#include <cstddef>
#include <utility>
#include <memory>
#include "CDPL/Base/Exceptions.hpp"
#include "CDPL/Util/BitSet.hpp"

Go to the source code of this file.

Classes

class  CDPL::Util::Array< ValueType >
 A dynamic array class providing amortized constant time access to arbitrary elements. More...
 

Namespaces

 CDPL
 The namespace of the Chemical Data Processing Library.
 
 CDPL::Util
 Contains general purpose algorithms, containers, functors and other classes.
 

Macros

#define CDPL_UTIL_ARRAY_CHECK_INDEX(idx, allow_end)   checkIndex(idx, allow_end)
 
#define CDPL_UTIL_ARRAY_CHECK_ITER(it, allow_end)   checkIterator(it, allow_end)
 

Typedefs

typedef Array< unsigned int > CDPL::Util::UIArray
 An array of unsigned integers. More...
 
typedef Array< std::size_t > CDPL::Util::STArray
 An array of unsigned integers of type std::size_t. More...
 
typedef Array< long > CDPL::Util::LArray
 An array of unsigned integers of type long. More...
 
typedef std::pair< std::size_t, std::size_t > CDPL::Util::STPair
 A pair of unsigned integers of type std::size_t. More...
 
typedef Array< STPair > CDPL::Util::STPairArray
 An array of pairs of unsigned integers of type std::size_t. More...
 
typedef Array< double > CDPL::Util::DArray
 An array of double precision floating-point numbers. More...
 
typedef Array< std::string > CDPL::Util::SArray
 An array of std::string objects. More...
 
typedef Array< BitSet > CDPL::Util::BitSetArray
 An array of Util::BitSet objects. More...
 

Functions

template<typename ValueType >
bool CDPL::Util::operator== (const Array< ValueType > &array1, const Array< ValueType > &array2)
 Equality comparison operator. More...
 
template<typename ValueType >
bool CDPL::Util::operator!= (const Array< ValueType > &array1, const Array< ValueType > &array2)
 Inequality comparison operator. More...
 
template<typename ValueType >
bool CDPL::Util::operator<= (const Array< ValueType > &array1, const Array< ValueType > &array2)
 Less or equal comparison operator. More...
 
template<typename ValueType >
bool CDPL::Util::operator>= (const Array< ValueType > &array1, const Array< ValueType > &array2)
 Greater or equal comparison operator. More...
 
template<typename ValueType >
bool CDPL::Util::operator< (const Array< ValueType > &array1, const Array< ValueType > &array2)
 Less than comparison operator. More...
 
template<typename ValueType >
bool CDPL::Util::operator> (const Array< ValueType > &array1, const Array< ValueType > &array2)
 Greater than comparison operator. More...
 

Detailed Description

Definition of the class CDPL::Util::Array.

Macro Definition Documentation

◆ CDPL_UTIL_ARRAY_CHECK_INDEX

#define CDPL_UTIL_ARRAY_CHECK_INDEX (   idx,
  allow_end 
)    checkIndex(idx, allow_end)

◆ CDPL_UTIL_ARRAY_CHECK_ITER

#define CDPL_UTIL_ARRAY_CHECK_ITER (   it,
  allow_end 
)    checkIterator(it, allow_end)