OpenFPM_data  0.1.0
Project that contain the implementation and interfaces for basic structure like vectors, grids, graph ... .
 All Data Structures Namespaces Functions Variables Typedefs Friends
comb< 0 > Struct Template Reference

Detailed Description

template<>
struct comb< 0 >

brief specialization of comb in case of dim 0

Definition at line 385 of file comb.hpp.

#include <comb.hpp>

Public Member Functions

bool isValid ()
 check if it is a valid combination More...
 
bool isSub (comb< 0 > cmb)
 Check if the combination is a sub-element. More...
 
void zero ()
 Set all the elements to zero. More...
 
bool operator!= (const comb< 0 > &t) const
 Compare two combination. More...
 
bool operator== (const comb< 0 > &t) const
 Compare two combination. More...
 
char operator[] (int i)
 Get the i combination coefficient. More...
 
char * getComb ()
 get the combination array pointer More...
 
char value (int i) const
 get the index i of the combination More...
 
int n_zero ()
 
size_t lin ()
 

Data Fields

char c [0]
 FIX.
 

Member Function Documentation

char* comb< 0 >::getComb ( )
inline

get the combination array pointer

Returns
an array of char representing the combination

Definition at line 469 of file comb.hpp.

bool comb< 0 >::isSub ( comb< 0 >  cmb)
inline

Check if the combination is a sub-element.

Parameters
cmbcombination to check if it is sub-element
Returns
true if cmb is a sub-element of this combination

Definition at line 409 of file comb.hpp.

bool comb< 0 >::isValid ( )
inline

check if it is a valid combination

Returns
true if it is valid

Definition at line 396 of file comb.hpp.

bool comb< 0 >::operator!= ( const comb< 0 > &  t) const
inline

Compare two combination.

check if they match

Parameters
tcombination to check
Returns
true if the two combination match, false otherwise

Definition at line 431 of file comb.hpp.

bool comb< 0 >::operator== ( const comb< 0 > &  t) const
inline

Compare two combination.

check if they match

Parameters
tcombination to check
Returns
true if the two combination match, false otherwise

Definition at line 446 of file comb.hpp.

char comb< 0 >::operator[] ( int  i)
inline

Get the i combination coefficient.

Parameters
icoefficent
Returns
the coefficent of the combination at position i

Definition at line 458 of file comb.hpp.

char comb< 0 >::value ( int  i) const
inline

get the index i of the combination

NOTE: used on expression template

Parameters
iindex
Returns
value of the i index

Definition at line 483 of file comb.hpp.

void comb< 0 >::zero ( )
inline

Set all the elements to zero.

Definition at line 418 of file comb.hpp.


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