GiNaC 1.8.7
Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
GiNaC::container_storage< C > Class Template Reference

Helper template for encapsulating the reserve() mechanics of STL containers. More...

#include <container.h>

Inheritance diagram for GiNaC::container_storage< C >:
GiNaC::container< C > GiNaC::function GiNaC::indexed GiNaC::ncmul GiNaC::fderivative GiNaC::clifford GiNaC::color

Protected Types

typedef C< exSTLT
 

Protected Member Functions

 container_storage ()
 
 container_storage (size_t n, const ex &e)
 
 container_storage (std::initializer_list< ex > il)
 
template<class In >
 container_storage (In b, In e)
 
void reserve (size_t)
 
 ~container_storage ()
 
void reserve (size_t n)
 
void reserve (std::vector< ex > &v, size_t n)
 

Static Protected Member Functions

static void reserve (STLT &, size_t)
 

Protected Attributes

STLT seq
 

Detailed Description

template<template< class T, class=std::allocator< T > > class C>
class GiNaC::container_storage< C >

Helper template for encapsulating the reserve() mechanics of STL containers.

Definition at line 43 of file container.h.

Member Typedef Documentation

◆ STLT

template<template< class T, class=std::allocator< T > > class C>
typedef C<ex> GiNaC::container_storage< C >::STLT
protected

Definition at line 45 of file container.h.

Constructor & Destructor Documentation

◆ container_storage() [1/4]

template<template< class T, class=std::allocator< T > > class C>
GiNaC::container_storage< C >::container_storage ( )
inlineprotected

Definition at line 47 of file container.h.

◆ container_storage() [2/4]

template<template< class T, class=std::allocator< T > > class C>
GiNaC::container_storage< C >::container_storage ( size_t  n,
const ex e 
)
inlineprotected

Definition at line 48 of file container.h.

◆ container_storage() [3/4]

template<template< class T, class=std::allocator< T > > class C>
GiNaC::container_storage< C >::container_storage ( std::initializer_list< ex il)
inlineprotected

Definition at line 49 of file container.h.

◆ container_storage() [4/4]

template<template< class T, class=std::allocator< T > > class C>
template<class In >
GiNaC::container_storage< C >::container_storage ( In  b,
In  e 
)
inlineprotected

Definition at line 52 of file container.h.

◆ ~container_storage()

template<template< class T, class=std::allocator< T > > class C>
GiNaC::container_storage< C >::~container_storage ( )
inlineprotected

Definition at line 61 of file container.h.

Member Function Documentation

◆ reserve() [1/4]

template<template< class T, class=std::allocator< T > > class C>
void GiNaC::container_storage< C >::reserve ( size_t  )
inlineprotected

◆ reserve() [2/4]

template<template< class T, class=std::allocator< T > > class C>
static void GiNaC::container_storage< C >::reserve ( STLT ,
size_t   
)
inlinestaticprotected

Definition at line 55 of file container.h.

◆ reserve() [3/4]

void GiNaC::container_storage< std::vector >::reserve ( size_t  n)
inlineprotected

Definition at line 65 of file container.h.

References n.

◆ reserve() [4/4]

void GiNaC::container_storage< std::vector >::reserve ( std::vector< ex > &  v,
size_t  n 
)
inlineprotected

Definition at line 68 of file container.h.

References n.

Member Data Documentation

◆ seq

template<template< class T, class=std::allocator< T > > class C>
STLT GiNaC::container_storage< C >::seq
protected

Definition at line 57 of file container.h.

Referenced by GiNaC::indexed::all_index_values_are(), GiNaC::container< C >::archive(), GiNaC::container< C >::begin(), GiNaC::ncmul::coeff(), GiNaC::container< C >::conjugate(), GiNaC::function::conjugate(), GiNaC::container< C >::container(), GiNaC::ncmul::degree(), GiNaC::fderivative::derivative(), GiNaC::function::derivative(), GiNaC::ncmul::derivative(), GiNaC::clifford::do_print_dflt(), GiNaC::clifford::do_print_latex(), GiNaC::clifford::do_print_tree(), GiNaC::fderivative::do_print_tree(), GiNaC::indexed::do_print_tree(), GiNaC::container< C >::end(), GiNaC::fderivative::eval(), GiNaC::function::eval(), GiNaC::indexed::eval(), GiNaC::ncmul::eval(), GiNaC::function::eval_ncmul(), GiNaC::function::evalf(), GiNaC::ncmul::evalm(), GiNaC::function::expand(), GiNaC::indexed::expand(), GiNaC::ncmul::expand(), GiNaC::ncmul::expandchildren(), GiNaC::indexed::get_dummy_indices(), GiNaC::ncmul::get_factors(), GiNaC::indexed::get_free_indices(), GiNaC::indexed::get_indices(), GiNaC::indexed::has_dummy_index_for(), GiNaC::function::imag_part(), GiNaC::indexed::indexed(), GiNaC::function::info(), GiNaC::indexed::info(), GiNaC::remember_table_entry::is_equal(), GiNaC::container< C >::is_equal_same_type(), GiNaC::ncmul::ldegree(), GiNaC::container< C >::nops(), GiNaC::function::print(), GiNaC::indexed::print_indexed(), GiNaC::indexed::printindices(), GiNaC::container< C >::rbegin(), GiNaC::container< C >::read_archive(), GiNaC::function::read_archive(), GiNaC::indexed::read_archive(), GiNaC::function::real_part(), GiNaC::container< C >::rend(), GiNaC::function::return_type(), GiNaC::ncmul::return_type(), GiNaC::function::return_type_tinfo(), GiNaC::ncmul::return_type_tinfo(), GiNaC::function::series(), GiNaC::container< C >::sort_(), GiNaC::container< C >::unique_(), and GiNaC::indexed::validate().


The documentation for this class was generated from the following file:

This page is part of the GiNaC developer's reference. It was generated automatically by doxygen. For an introduction, see the tutorial.