INMOST
Mathematical Modelling Toolkit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
INMOST::sparse_data< IndType, ValType > Class Template Reference

#include <container.hpp>

Collaboration diagram for INMOST::sparse_data< IndType, ValType >:

Classes

struct  pair_t
 

Public Types

typedef unsigned enumerate
 
typedef struct
INMOST::sparse_data::pair_t 
pair
 
typedef pairiterator
 
typedef const iterator const_iterator
 

Public Member Functions

void swap (sparse_data< IndType, ValType > &other)
 
void reserve (enumerate size)
 
iterator lower_bound (IndType ind)
 
iterator find (IndType ind)
 
iterator insert (iterator pos, const IndType &x)
 
void push_back (const pair &in)
 
iterator erase (iterator pos)
 
 sparse_data (pair *first, pair *last)
 
 sparse_data ()
 
 sparse_data (const sparse_data &other)
 
 ~sparse_data ()
 
sparse_dataoperator= (sparse_data const &other)
 
ValType & operator[] (IndType row)
 
ValType operator[] (IndType row) const
 
enumerate size () const
 
bool empty () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void clear ()
 
enumerate capacity ()
 

Static Public Attributes

static const enumerate prealloc = 4
 

Detailed Description

template<typename IndType, typename ValType>
class INMOST::sparse_data< IndType, ValType >

Definition at line 959 of file container.hpp.

Member Typedef Documentation

template<typename IndType, typename ValType>
typedef const iterator INMOST::sparse_data< IndType, ValType >::const_iterator

Definition at line 972 of file container.hpp.

template<typename IndType, typename ValType>
typedef unsigned INMOST::sparse_data< IndType, ValType >::enumerate

Definition at line 962 of file container.hpp.

template<typename IndType, typename ValType>
typedef pair* INMOST::sparse_data< IndType, ValType >::iterator

Definition at line 971 of file container.hpp.

template<typename IndType, typename ValType>
typedef struct INMOST::sparse_data::pair_t INMOST::sparse_data< IndType, ValType >::pair

Constructor & Destructor Documentation

template<typename IndType, typename ValType>
INMOST::sparse_data< IndType, ValType >::sparse_data ( pair first,
pair last 
)
inline

Definition at line 1073 of file container.hpp.

template<typename IndType, typename ValType>
INMOST::sparse_data< IndType, ValType >::sparse_data ( )
inline

Definition at line 1097 of file container.hpp.

template<typename IndType, typename ValType>
INMOST::sparse_data< IndType, ValType >::sparse_data ( const sparse_data< IndType, ValType > &  other)
inline

Definition at line 1106 of file container.hpp.

template<typename IndType, typename ValType>
INMOST::sparse_data< IndType, ValType >::~sparse_data ( )
inline

Definition at line 1114 of file container.hpp.

Here is the call graph for this function:

Member Function Documentation

template<typename IndType, typename ValType>
iterator INMOST::sparse_data< IndType, ValType >::begin ( )
inline

Definition at line 1147 of file container.hpp.

Here is the caller graph for this function:

template<typename IndType, typename ValType>
const_iterator INMOST::sparse_data< IndType, ValType >::begin ( ) const
inline

Definition at line 1148 of file container.hpp.

template<typename IndType, typename ValType>
enumerate INMOST::sparse_data< IndType, ValType >::capacity ( )
inline

Definition at line 1158 of file container.hpp.

template<typename IndType, typename ValType>
void INMOST::sparse_data< IndType, ValType >::clear ( )
inline

Definition at line 1151 of file container.hpp.

Here is the call graph for this function:

template<typename IndType, typename ValType>
bool INMOST::sparse_data< IndType, ValType >::empty ( ) const
inline

Definition at line 1146 of file container.hpp.

Here is the call graph for this function:

template<typename IndType, typename ValType>
iterator INMOST::sparse_data< IndType, ValType >::end ( )
inline

Definition at line 1149 of file container.hpp.

Here is the caller graph for this function:

template<typename IndType, typename ValType>
const_iterator INMOST::sparse_data< IndType, ValType >::end ( ) const
inline

Definition at line 1150 of file container.hpp.

template<typename IndType, typename ValType>
iterator INMOST::sparse_data< IndType, ValType >::erase ( iterator  pos)
inline

Definition at line 1064 of file container.hpp.

template<typename IndType, typename ValType>
iterator INMOST::sparse_data< IndType, ValType >::find ( IndType  ind)
inline

Definition at line 1038 of file container.hpp.

Here is the call graph for this function:

template<typename IndType, typename ValType>
iterator INMOST::sparse_data< IndType, ValType >::insert ( iterator  pos,
const IndType &  x 
)
inline

Definition at line 1044 of file container.hpp.

Here is the call graph for this function:

Here is the caller graph for this function:

template<typename IndType, typename ValType>
iterator INMOST::sparse_data< IndType, ValType >::lower_bound ( IndType  ind)
inline

Definition at line 1018 of file container.hpp.

Here is the caller graph for this function:

template<typename IndType, typename ValType>
sparse_data& INMOST::sparse_data< IndType, ValType >::operator= ( sparse_data< IndType, ValType > const &  other)
inline

Definition at line 1120 of file container.hpp.

Here is the call graph for this function:

template<typename IndType, typename ValType>
ValType& INMOST::sparse_data< IndType, ValType >::operator[] ( IndType  row)
inline

Definition at line 1133 of file container.hpp.

Here is the call graph for this function:

template<typename IndType, typename ValType>
ValType INMOST::sparse_data< IndType, ValType >::operator[] ( IndType  row) const
inline

Definition at line 1139 of file container.hpp.

Here is the call graph for this function:

template<typename IndType, typename ValType>
void INMOST::sparse_data< IndType, ValType >::push_back ( const pair in)
inline

Definition at line 1056 of file container.hpp.

template<typename IndType, typename ValType>
void INMOST::sparse_data< IndType, ValType >::reserve ( enumerate  size)
inline

Definition at line 1008 of file container.hpp.

template<typename IndType, typename ValType>
enumerate INMOST::sparse_data< IndType, ValType >::size ( ) const
inline

Definition at line 1145 of file container.hpp.

Here is the caller graph for this function:

template<typename IndType, typename ValType>
void INMOST::sparse_data< IndType, ValType >::swap ( sparse_data< IndType, ValType > &  other)
inline

Definition at line 996 of file container.hpp.

Member Data Documentation

template<typename IndType, typename ValType>
const enumerate INMOST::sparse_data< IndType, ValType >::prealloc = 4
static

Definition at line 963 of file container.hpp.


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