GiNaC  1.6.2
Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes
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

List of all members.

Protected Types

typedef C< exSTLT

Protected Member Functions

 container_storage ()
 container_storage (size_t n, const ex &e)
template<class In >
 container_storage (In b, In e)
void reserve (size_t)
 ~container_storage ()
template<>
void reserve (size_t n)
template<>
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 42 of file container.h.


Member Typedef Documentation

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

Reimplemented in GiNaC::container< C >.

Definition at line 44 of file container.h.


Constructor & Destructor Documentation

template<template< class T, class=std::allocator< T > > class C>
GiNaC::container_storage< C >::container_storage ( ) [inline, protected]

Definition at line 46 of file container.h.

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

Definition at line 47 of file container.h.

template<template< class T, class=std::allocator< T > > class C>
template<class In >
GiNaC::container_storage< C >::container_storage ( In  b,
In  e 
) [inline, protected]

Definition at line 50 of file container.h.

template<template< class T, class=std::allocator< T > > class C>
GiNaC::container_storage< C >::~container_storage ( ) [inline, protected]

Definition at line 59 of file container.h.


Member Function Documentation

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

Definition at line 53 of file container.h.

template<>
void GiNaC::container_storage< std::vector >::reserve ( size_t  n) [inline, protected]

Definition at line 63 of file container.h.

template<>
void GiNaC::container_storage< std::vector >::reserve ( std::vector< ex > &  v,
size_t  n 
) [inline, protected]

Definition at line 66 of file container.h.


Member Data Documentation

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

Definition at line 55 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::ncmul::derivative(), GiNaC::function::derivative(), GiNaC::clifford::do_print_dflt(), GiNaC::clifford::do_print_latex(), GiNaC::fderivative::do_print_tree(), GiNaC::indexed::do_print_tree(), GiNaC::container< C >::end(), GiNaC::fderivative::eval(), GiNaC::ncmul::eval(), GiNaC::indexed::eval(), GiNaC::function::eval(), GiNaC::function::eval_ncmul(), GiNaC::function::evalf(), GiNaC::ncmul::evalm(), GiNaC::ncmul::expand(), GiNaC::indexed::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::indexed::info(), GiNaC::container< C >::is_equal_same_type(), GiNaC::ncmul::ldegree(), GiNaC::container< C >::nops(), GiNaC::container< C >::operator=(), GiNaC::function::print(), GiNaC::indexed::print_indexed(), GiNaC::indexed::printindices(), GiNaC::container< C >::rbegin(), GiNaC::indexed::read_archive(), GiNaC::container< C >::read_archive(), GiNaC::function::real_part(), GiNaC::container< C >::rend(), GiNaC::ncmul::return_type(), GiNaC::function::return_type(), GiNaC::ncmul::return_type_tinfo(), GiNaC::function::return_type_tinfo(), GiNaC::function::series(), GiNaC::simplify_indexed(), 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.