Rcpp Version 0.9.10
Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T > Class Template Reference

#include <upper_tri.h>

Inheritance diagram for Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >:
Collaboration diagram for Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >:

List of all members.

Public Types

typedef Rcpp::MatrixBase
< RTYPE, LHS_NA, LHS_T > 
LHS_TYPE

Public Member Functions

 UpperTri (const LHS_TYPE &lhs, bool diag)
int operator() (int i, int j) const
int size () const
int nrow () const
int ncol () const

Private Types

typedef bool(UpperTri::* Method )(int, int)

Private Member Functions

bool get_diag_true (int i, int j)
bool get_diag_false (int i, int j)
bool get (int i, int j)

Private Attributes

int nr
int nc
Method getter

Detailed Description

template<int RTYPE, bool LHS_NA, typename LHS_T>
class Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >

Definition at line 29 of file upper_tri.h.


Member Typedef Documentation

template<int RTYPE, bool LHS_NA, typename LHS_T>
typedef Rcpp::MatrixBase<RTYPE,LHS_NA,LHS_T> Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::LHS_TYPE

Definition at line 35 of file upper_tri.h.

template<int RTYPE, bool LHS_NA, typename LHS_T>
typedef bool(UpperTri::* Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::Method)(int, int) [private]

Definition at line 51 of file upper_tri.h.


Constructor & Destructor Documentation

template<int RTYPE, bool LHS_NA, typename LHS_T>
Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::UpperTri ( const LHS_TYPE lhs,
bool  diag 
) [inline]

Definition at line 37 of file upper_tri.h.


Member Function Documentation

template<int RTYPE, bool LHS_NA, typename LHS_T>
bool Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::get ( int  i,
int  j 
) [inline, private]

Definition at line 60 of file upper_tri.h.

References Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::getter, i, and j.

template<int RTYPE, bool LHS_NA, typename LHS_T>
bool Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::get_diag_false ( int  i,
int  j 
) [inline, private]

Definition at line 57 of file upper_tri.h.

References j.

template<int RTYPE, bool LHS_NA, typename LHS_T>
bool Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::get_diag_true ( int  i,
int  j 
) [inline, private]

Definition at line 54 of file upper_tri.h.

References j.

template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::ncol ( ) const [inline]

Definition at line 47 of file upper_tri.h.

References Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::nc.

template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::nrow ( ) const [inline]

Definition at line 46 of file upper_tri.h.

References Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::nr.

template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::operator() ( int  i,
int  j 
) const [inline]

Definition at line 41 of file upper_tri.h.

References i, and j.

template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::size ( ) const [inline]

Member Data Documentation

template<int RTYPE, bool LHS_NA, typename LHS_T>
Method Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::getter [private]

Definition at line 53 of file upper_tri.h.

Referenced by Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::get().

template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::nc [private]
template<int RTYPE, bool LHS_NA, typename LHS_T>
int Rcpp::sugar::UpperTri< RTYPE, LHS_NA, LHS_T >::nr [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines