41#ifndef STK_ICONTAINERREF_H
42#define STK_ICONTAINERREF_H
55template <
int ref_>
struct TRef;
60{
static bool isRef() {
return false;} };
65{
static bool isRef() {
return true;} };
75 explicit TRef(
bool ref) : ref_(ref) {}
81 inline bool isRef()
const {
return ref_;}
83 inline bool ref()
const {
return ref_;}
92 void setRef(
bool ref)
const { ref_ = ref;}
The namespace STK is the main domain space of the Statistical ToolKit project.
void setRef(bool ref) const
Modify the container : can become a reference or the owner of the data.
bool ref_
Is it a "true" container or a wrapper ? ref_ should be false if this own its own data,...
void exchange(TRef const &T)
swap this with the container T.
TRef(bool ref)
Default constructor We have to specify the member ref_.
Base class for all referencing containers.