FIMS  v0.9.3
Loading...
Searching...
No Matches
rcpp_interface_base.hpp File Reference

The Rcpp interface to declare objects that are used ubiquitously throughout the Rcpp interface, e.g., Variables and VariableVectors. More...

#include <RcppCommon.h>
#include <Rcpp.h>
#include <map>
#include <vector>
#include "common/information.hpp"
#include "../../interface.hpp"
#include "rcpp_shared_primitive.hpp"
#include <limits>

Go to the source code of this file.

Classes

class  Variable
 An Rcpp interface that defines the Variable class. More...
 
class  VariableVector
 An Rcpp interface class that defines the VariableVector class. More...
 
class  RealVector
 An Rcpp interface class that defines the RealVector class. More...
 
class  FIMSRcppInterfaceBase
 Base class for all interface objects. More...
 

Functions

double sanitize_val (double x)
 Sanitize a double value by replacing NaN or Inf with -999.0.
 
std::ostreamoperator<< (std::ostream &out, const Variable &p)
 Output for std::ostream& for a variable.
 
std::ostreamoperator<< (std::ostream &out, VariableVector &v)
 Output for std::ostream& for a VariableVector.
 

Detailed Description

The Rcpp interface to declare objects that are used ubiquitously throughout the Rcpp interface, e.g., Variables and VariableVectors.

Function Documentation

◆ operator<<() [1/2]

std::ostream & operator<< ( std::ostream out,
const Variable p 
)
inline

Output for std::ostream& for a variable.

Parameters
outThe stream.
pA variable.
Returns
std::ostream&

◆ operator<<() [2/2]

std::ostream & operator<< ( std::ostream out,
VariableVector v 
)
inline

Output for std::ostream& for a VariableVector.

Parameters
outThe stream.
vA VariableVector.
Returns
std::ostream&

◆ sanitize_val()

double sanitize_val ( double  x)
inline

Sanitize a double value by replacing NaN or Inf with -999.0.

Parameters
xThe input double value.
Returns
The sanitized double value.