OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Public Types | Public Member Functions | Private Attributes | List of all members
LSIndex< Dim > Class Template Reference

#include <LSIndex.h>

Inheritance diagram for LSIndex< Dim >:
Inheritance graph
[legend]
Collaboration diagram for LSIndex< Dim >:
Collaboration graph
[legend]

Public Types

typedef std::vector< SOffset
< Dim > > 
container_t
 
typedef container_t::iterator iterator
 
typedef container_t::const_iterator const_iterator
 
typedef container_t::size_type size_type
 

Public Member Functions

 LSIndex (Vnode< Dim > *vn)
 
 LSIndex (const LSIndex< Dim > &lsi)
 
 ~LSIndex ()
 
LSIndexoperator= (const LSIndex &lsi)
 
bool IsCompressed () const
 
void Compress (bool docompress)
 
bool contains (const SOffset< Dim > &indx)
 
void addIndex (const SOffset< Dim > &indx)
 
SOffset< Dim > & getIndex (unsigned int n)
 
SOffset< DimgetIndex (unsigned int n) const
 
void removeIndex (const SOffset< Dim > &indx)
 
void clear ()
 
void reserve (size_type n)
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
size_type capacity () const
 
size_type size () const
 
iterator find (const SOffset< Dim > &indx)
 
bool hasIndex (const SOffset< Dim > &indx) const
 
const NDIndex< Dim > & getDomain () const
 
int getNode () const
 
- Public Member Functions inherited from RefCounted
 RefCounted ()
 

Private Attributes

Vnode< Dim > * VN
 
container_t IndexList
 
bool compressed
 
SOffset< DimCompressedPoint
 
vec< int, DimStrides
 

Additional Inherited Members

- Public Attributes inherited from RefCounted
int RefCount
 

Detailed Description

template<unsigned int Dim>
class LSIndex< Dim >

Definition at line 33 of file LSIndex.h.

Member Typedef Documentation

template<unsigned int Dim>
typedef container_t::const_iterator LSIndex< Dim >::const_iterator

Definition at line 39 of file LSIndex.h.

template<unsigned int Dim>
typedef std::vector< SOffset<Dim> > LSIndex< Dim >::container_t

Definition at line 37 of file LSIndex.h.

template<unsigned int Dim>
typedef container_t::iterator LSIndex< Dim >::iterator

Definition at line 38 of file LSIndex.h.

template<unsigned int Dim>
typedef container_t::size_type LSIndex< Dim >::size_type

Definition at line 40 of file LSIndex.h.

Constructor & Destructor Documentation

template<unsigned int Dim>
LSIndex< Dim >::LSIndex ( Vnode< Dim > *  vn)
inline

Definition at line 44 of file LSIndex.h.

References Dim, Vnode< Dim >::getDomain(), and LSIndex< Dim >::Strides.

Here is the call graph for this function:

template<unsigned int Dim>
LSIndex< Dim >::LSIndex ( const LSIndex< Dim > &  lsi)
inline

Definition at line 51 of file LSIndex.h.

template<unsigned int Dim>
LSIndex< Dim >::~LSIndex ( )
inline

Definition at line 56 of file LSIndex.h.

Member Function Documentation

template<unsigned int Dim>
void LSIndex< Dim >::addIndex ( const SOffset< Dim > &  indx)
inline

Definition at line 83 of file LSIndex.h.

References LSIndex< Dim >::compressed, and LSIndex< Dim >::IndexList.

template<unsigned int Dim>
iterator LSIndex< Dim >::begin ( )
inline

Definition at line 154 of file LSIndex.h.

References LSIndex< Dim >::IndexList.

Referenced by LSIndex< Dim >::find(), and LSIndex< Dim >::hasIndex().

template<unsigned int Dim>
const_iterator LSIndex< Dim >::begin ( ) const
inline

Definition at line 156 of file LSIndex.h.

References LSIndex< Dim >::IndexList.

template<unsigned int Dim>
size_type LSIndex< Dim >::capacity ( ) const
inline

Definition at line 160 of file LSIndex.h.

References LSIndex< Dim >::IndexList.

template<unsigned int Dim>
void LSIndex< Dim >::clear ( )
inline

Definition at line 144 of file LSIndex.h.

References LSIndex< Dim >::IndexList.

Referenced by LSIndex< Dim >::Compress().

template<unsigned int Dim>
void LSIndex< Dim >::Compress ( bool  docompress)
inline

Definition at line 71 of file LSIndex.h.

References LSIndex< Dim >::clear(), and LSIndex< Dim >::compressed.

Here is the call graph for this function:

template<unsigned int Dim>
bool LSIndex< Dim >::contains ( const SOffset< Dim > &  indx)
inline

Definition at line 77 of file LSIndex.h.

References SOffset< Dim >::inside(), and LSIndex< Dim >::VN.

Here is the call graph for this function:

template<unsigned int Dim>
iterator LSIndex< Dim >::end ( )
inline
template<unsigned int Dim>
const_iterator LSIndex< Dim >::end ( ) const
inline

Definition at line 157 of file LSIndex.h.

References LSIndex< Dim >::IndexList.

template<unsigned int Dim>
iterator LSIndex< Dim >::find ( const SOffset< Dim > &  indx)
inline

Definition at line 167 of file LSIndex.h.

References LSIndex< Dim >::begin(), and LSIndex< Dim >::end().

Here is the call graph for this function:

template<unsigned int Dim>
const NDIndex<Dim>& LSIndex< Dim >::getDomain ( void  ) const
inline

Definition at line 187 of file LSIndex.h.

References LSIndex< Dim >::VN.

template<unsigned int Dim>
SOffset<Dim>& LSIndex< Dim >::getIndex ( unsigned int  n)
inline
template<unsigned int Dim>
SOffset<Dim> LSIndex< Dim >::getIndex ( unsigned int  n) const
inline
template<unsigned int Dim>
int LSIndex< Dim >::getNode ( ) const
inline

Definition at line 190 of file LSIndex.h.

References LSIndex< Dim >::VN.

template<unsigned int Dim>
bool LSIndex< Dim >::hasIndex ( const SOffset< Dim > &  indx) const
inline

Definition at line 175 of file LSIndex.h.

References LSIndex< Dim >::begin(), and LSIndex< Dim >::end().

Here is the call graph for this function:

template<unsigned int Dim>
bool LSIndex< Dim >::IsCompressed ( ) const
inline

Definition at line 68 of file LSIndex.h.

References LSIndex< Dim >::compressed.

template<unsigned int Dim>
LSIndex& LSIndex< Dim >::operator= ( const LSIndex< Dim > &  lsi)
inline
template<unsigned int Dim>
void LSIndex< Dim >::removeIndex ( const SOffset< Dim > &  indx)
inline

Definition at line 135 of file LSIndex.h.

References LSIndex< Dim >::end(), and LSIndex< Dim >::IndexList.

Here is the call graph for this function:

template<unsigned int Dim>
void LSIndex< Dim >::reserve ( size_type  n)
inline

Definition at line 147 of file LSIndex.h.

References LSIndex< Dim >::IndexList.

template<unsigned int Dim>
size_type LSIndex< Dim >::size ( void  ) const
inline

Member Data Documentation

template<unsigned int Dim>
bool LSIndex< Dim >::compressed
private
template<unsigned int Dim>
SOffset<Dim> LSIndex< Dim >::CompressedPoint
private

Definition at line 202 of file LSIndex.h.

Referenced by LSIndex< Dim >::getIndex().

template<unsigned int Dim>
container_t LSIndex< Dim >::IndexList
private
template<unsigned int Dim>
vec<int,Dim> LSIndex< Dim >::Strides
private
template<unsigned int Dim>
Vnode<Dim>* LSIndex< Dim >::VN
private

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