barry: Your go-to motif accountant  0.0-1
Full enumeration of sample space and fast count of sufficient statistics for binary arrays
BArrayVector< Cell_Type, Data_Type > Class Template Reference

Row or column of a BArray More...

#include <barrayvector-bones.hpp>

Public Member Functions

 BArrayVector (BArray< Cell_Type, Data_Type > *Array_, size_t &dim_ size_t &i_, bool check_bounds=true)
 Construct a new BArrayVector object. More...
 
 ~BArrayVector ()
 
bool is_row () const noexcept
 
bool is_col () const noexcept
 
size_t size () const noexcept
 
std::vector< Cell_Type >::const_iterator begin () noexcept
 
std::vector< Cell_Type >::const_iterator end () noexcept
 
void operator= (const Cell_Type &val)
 
void operator+= (const Cell_Type &val)
 
void operator-= (const Cell_Type &val)
 
void operator*= (const Cell_Type &val)
 
void operator/= (const Cell_Type &val)
 
 operator std::vector< Cell_Type > () const
 
bool operator== (const Cell_Type &val) const
 

Detailed Description

template<typename Cell_Type = bool, typename Data_Type = bool>
class BArrayVector< Cell_Type, Data_Type >

Row or column of a BArray

Template Parameters
Cell_Type
Data_Type

Definition at line 11 of file barrayvector-bones.hpp.

Constructor & Destructor Documentation

◆ BArrayVector()

template<typename Cell_Type = bool, typename Data_Type = bool>
BArrayVector< Cell_Type, Data_Type >::BArrayVector ( BArray< Cell_Type, Data_Type > *  Array_,
size_t &dim_ size_t &  i_,
bool  check_bounds = true 
)
inline

Construct a new BArrayVector object.

Parameters
Array_Pointer to a BArray object
dim_Dimension. 0 means row and 1 means column.
i_Element to point.
check_boundsWhen true, check boundaries.

Definition at line 32 of file barrayvector-bones.hpp.

◆ ~BArrayVector()

template<typename Cell_Type = bool, typename Data_Type = bool>
BArrayVector< Cell_Type, Data_Type >::~BArrayVector ( )
inline

Definition at line 53 of file barrayvector-bones.hpp.

Member Function Documentation

◆ begin()

template<typename Cell_Type , typename Data_Type >
std::vector< Cell_Type >::const_iterator BArrayVector< Cell_Type, Data_Type >::begin
inlinenoexcept

Definition at line 50 of file barrayvector-meat.hpp.

◆ end()

template<typename Cell_Type , typename Data_Type >
std::vector< Cell_Type >::const_iterator BArrayVector< Cell_Type, Data_Type >::end
inlinenoexcept

Definition at line 64 of file barrayvector-meat.hpp.

◆ is_col()

template<typename Cell_Type , typename Data_Type >
bool BArrayVector< Cell_Type, Data_Type >::is_col
inlinenoexcept

Definition at line 34 of file barrayvector-meat.hpp.

◆ is_row()

template<typename Cell_Type , typename Data_Type >
bool BArrayVector< Cell_Type, Data_Type >::is_row
inlinenoexcept

Definition at line 29 of file barrayvector-meat.hpp.

◆ operator std::vector< Cell_Type >()

template<typename Cell_Type , typename Data_Type >
BArrayVector< Cell_Type, Data_Type >::operator std::vector< Cell_Type >
inline

Definition at line 175 of file barrayvector-meat.hpp.

◆ operator*=()

template<typename Cell_Type , typename Data_Type >
void BArrayVector< Cell_Type, Data_Type >::operator*= ( const Cell_Type &  val)
inline

Definition at line 133 of file barrayvector-meat.hpp.

◆ operator+=()

template<typename Cell_Type , typename Data_Type >
void BArrayVector< Cell_Type, Data_Type >::operator+= ( const Cell_Type &  val)
inline

Definition at line 91 of file barrayvector-meat.hpp.

◆ operator-=()

template<typename Cell_Type , typename Data_Type >
void BArrayVector< Cell_Type, Data_Type >::operator-= ( const Cell_Type &  val)
inline

Definition at line 112 of file barrayvector-meat.hpp.

◆ operator/=()

template<typename Cell_Type , typename Data_Type >
void BArrayVector< Cell_Type, Data_Type >::operator/= ( const Cell_Type &  val)
inline

Definition at line 154 of file barrayvector-meat.hpp.

◆ operator=()

template<typename Cell_Type , typename Data_Type >
void BArrayVector< Cell_Type, Data_Type >::operator= ( const Cell_Type &  val)
inline

Definition at line 69 of file barrayvector-meat.hpp.

◆ operator==()

template<typename Cell_Type , typename Data_Type >
bool BArrayVector< Cell_Type, Data_Type >::operator== ( const Cell_Type &  val) const
inline

Definition at line 185 of file barrayvector-meat.hpp.

◆ size()

template<typename Cell_Type , typename Data_Type >
size_t BArrayVector< Cell_Type, Data_Type >::size
inlinenoexcept

Definition at line 39 of file barrayvector-meat.hpp.


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