Scarab  2.8.1
Project 8 C++ Utility Library
Public Member Functions | Public Attributes | List of all members
value_and_holder Struct Reference

#include <cast.h>

Public Member Functions

 value_and_holder (instance *i, const detail::type_info *type, size_t vpos, size_t index)
 
 value_and_holder ()
 
 value_and_holder (size_t index)
 
template<typename V = void>
V *& value_ptr () const
 
 operator bool () const
 
template<typename H >
H & holder () const
 
bool holder_constructed () const
 
void set_holder_constructed (bool v=true)
 
bool instance_registered () const
 
void set_instance_registered (bool v=true)
 

Public Attributes

instanceinst = nullptr
 
size_t index = 0u
 
const detail::type_infotype = nullptr
 
void ** vh = nullptr
 

Detailed Description

Definition at line 206 of file cast.h.

Constructor & Destructor Documentation

◆ value_and_holder() [1/3]

value_and_holder ( instance i,
const detail::type_info type,
size_t  vpos,
size_t  index 
)
inline

Definition at line 213 of file cast.h.

◆ value_and_holder() [2/3]

value_and_holder ( )
inline

Definition at line 219 of file cast.h.

◆ value_and_holder() [3/3]

value_and_holder ( size_t  index)
inline

Definition at line 222 of file cast.h.

Member Function Documentation

◆ holder()

H& holder ( ) const
inline

Definition at line 230 of file cast.h.

◆ holder_constructed()

bool holder_constructed ( ) const
inline

Definition at line 233 of file cast.h.

◆ instance_registered()

bool instance_registered ( ) const
inline

Definition at line 246 of file cast.h.

◆ operator bool()

operator bool ( ) const
inlineexplicit

Definition at line 228 of file cast.h.

◆ set_holder_constructed()

void set_holder_constructed ( bool  v = true)
inline

Definition at line 238 of file cast.h.

◆ set_instance_registered()

void set_instance_registered ( bool  v = true)
inline

Definition at line 251 of file cast.h.

◆ value_ptr()

V*& value_ptr ( ) const
inline

Definition at line 224 of file cast.h.

Member Data Documentation

◆ index

size_t index = 0u

Definition at line 208 of file cast.h.

◆ inst

instance* inst = nullptr

Definition at line 207 of file cast.h.

◆ type

const detail::type_info* type = nullptr

Definition at line 209 of file cast.h.

◆ vh

void** vh = nullptr

Definition at line 210 of file cast.h.


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