Public Member Functions | List of all members
Base< elem_type, derived > Struct Template Reference

#include <Base_bones.hpp>

Public Member Functions

arma_inline const derived & get_ref () const
 
void print (const std::string extra_text="") const
 
void print (std::ostream &user_stream, const std::string extra_text="") const
 
arma_deprecated void print_trans (const std::string extra_text="") const
 
arma_deprecated void print_trans (std::ostream &user_stream, const std::string extra_text="") const
 
void raw_print (const std::string extra_text="") const
 
void raw_print (std::ostream &user_stream, const std::string extra_text="") const
 
arma_deprecated void raw_print_trans (const std::string extra_text="") const
 
arma_deprecated void raw_print_trans (std::ostream &user_stream, const std::string extra_text="") const
 
arma_inline const Op< derived, op_stransst () const
 
arma_inline const Op< derived, op_htranst () const
 

Detailed Description

template<typename elem_type, typename derived>
struct Base< elem_type, derived >

Class for static polymorphism, modelled after the "Curiously Recurring Template Pattern" (CRTP). Used for type-safe downcasting in functions that restrict their input(s) to be classes that are derived from Base (e.g. Mat, Op, Glue, diagview, subview). A Base object can be converted to a Mat object by the unwrap class.

Definition at line 25 of file Base_bones.hpp.


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


armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:32:00