Rcpp Version 1.1.2
Loading...
Searching...
No Matches
Rcpp::attributes::Type Class Reference

Public Member Functions

 Type ()
 Type (const std::string &name, bool isConst, bool isReference)
bool empty () const
bool operator== (const Type &other) const
bool operator!= (const Type &other) const
const std::string & name () const
std::string full_name () const
bool isVoid () const
bool isConst () const
bool isReference () const

Private Attributes

std::string name_
bool isConst_
bool isReference_

Detailed Description

Definition at line 172 of file attributes.cpp.

Constructor & Destructor Documentation

◆ Type() [1/2]

Rcpp::attributes::Type::Type ( )
inline

Definition at line 174 of file attributes.cpp.

References isConst_, and isReference_.

Referenced by operator!=(), and operator==().

◆ Type() [2/2]

Rcpp::attributes::Type::Type ( const std::string & name,
bool isConst,
bool isReference )
inline

Definition at line 175 of file attributes.cpp.

References isConst(), isConst_, isReference(), isReference_, name(), and name_.

Here is the call graph for this function:

Member Function Documentation

◆ empty()

bool Rcpp::attributes::Type::empty ( ) const
inline

Definition at line 179 of file attributes.cpp.

References name().

Referenced by Rcpp::attributes::Argument::empty(), Rcpp::attributes::operator<<(), and Rcpp::attributes::SourceFileAttributesParser::parseFunction().

Here is the call graph for this function:

◆ full_name()

std::string Rcpp::attributes::Type::full_name ( ) const
inline

Definition at line 192 of file attributes.cpp.

References isConst(), isReference(), and name().

Referenced by Rcpp::attributes::generateCpp().

Here is the call graph for this function:

◆ isConst()

bool Rcpp::attributes::Type::isConst ( ) const
inline

Definition at line 201 of file attributes.cpp.

References isConst_.

Referenced by full_name(), Rcpp::attributes::operator<<(), and Type().

◆ isReference()

bool Rcpp::attributes::Type::isReference ( ) const
inline

Definition at line 202 of file attributes.cpp.

References isReference_.

Referenced by full_name(), Rcpp::attributes::operator<<(), and Type().

◆ isVoid()

bool Rcpp::attributes::Type::isVoid ( ) const
inline

Definition at line 200 of file attributes.cpp.

References name().

Here is the call graph for this function:

◆ name()

const std::string & Rcpp::attributes::Type::name ( ) const
inline

◆ operator!=()

bool Rcpp::attributes::Type::operator!= ( const Type & other) const
inline

Definition at line 187 of file attributes.cpp.

References Type().

Here is the call graph for this function:

◆ operator==()

bool Rcpp::attributes::Type::operator== ( const Type & other) const
inline

Definition at line 181 of file attributes.cpp.

References isConst_, isReference_, name_, and Type().

Here is the call graph for this function:

Member Data Documentation

◆ isConst_

bool Rcpp::attributes::Type::isConst_
private

Definition at line 206 of file attributes.cpp.

Referenced by isConst(), operator==(), Type(), and Type().

◆ isReference_

bool Rcpp::attributes::Type::isReference_
private

Definition at line 207 of file attributes.cpp.

Referenced by isReference(), operator==(), Type(), and Type().

◆ name_

std::string Rcpp::attributes::Type::name_
private

Definition at line 205 of file attributes.cpp.

Referenced by name(), operator==(), and Type().


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