Chromium Embedded Framework (CEF)  116.0.6+gc182ee2+chromium-116.0.5845.10
CefStructBase< traits > Class Template Reference

Template class that provides common functionality for CEF structure wrapping. More...

#include "include/internal/cef_types_wrappers.h"

Inheritance diagram for CefStructBase< traits >:

Public Types

using struct_type = typename traits::struct_type
 

Public Member Functions

 CefStructBase ()
 
virtual ~CefStructBase ()
 
 CefStructBase (const CefStructBase &r)
 
 CefStructBase (const struct_type &r)
 
void AttachTo (struct_type &source)
 Attach to the source structure's existing values. More...
 
void DetachTo (struct_type &target)
 Relinquish ownership of values to the target structure. More...
 
void Set (const struct_type &source, bool copy)
 Set this object's values. More...
 
CefStructBaseoperator= (const CefStructBase &s)
 
CefStructBaseoperator= (const struct_type &s)
 

Protected Member Functions

void Init ()
 

Static Protected Member Functions

static void Clear (struct_type *s)
 

Protected Attributes

struct_typeattached_to_
 

Detailed Description

template<class traits>
class CefStructBase< traits >

Template class that provides common functionality for CEF structure wrapping.

Use only with non-POD types that benefit from referencing unowned members.

Member Typedef Documentation

◆ struct_type

template<class traits >
using CefStructBase< traits >::struct_type = typename traits::struct_type

Constructor & Destructor Documentation

◆ CefStructBase() [1/3]

template<class traits >
CefStructBase< traits >::CefStructBase ( )
inline

◆ ~CefStructBase()

template<class traits >
virtual CefStructBase< traits >::~CefStructBase ( )
inlinevirtual

◆ CefStructBase() [2/3]

template<class traits >
CefStructBase< traits >::CefStructBase ( const CefStructBase< traits > &  r)
inline

◆ CefStructBase() [3/3]

template<class traits >
CefStructBase< traits >::CefStructBase ( const struct_type r)
inline

Member Function Documentation

◆ AttachTo()

template<class traits >
void CefStructBase< traits >::AttachTo ( struct_type source)
inline

Attach to the source structure's existing values.

DetachTo() can be called to insert the values back into the existing structure.

◆ Clear()

template<class traits >
static void CefStructBase< traits >::Clear ( struct_type s)
inlinestaticprotected

◆ DetachTo()

template<class traits >
void CefStructBase< traits >::DetachTo ( struct_type target)
inline

Relinquish ownership of values to the target structure.

◆ Init()

template<class traits >
void CefStructBase< traits >::Init ( )
inlineprotected

◆ operator=() [1/2]

template<class traits >
CefStructBase& CefStructBase< traits >::operator= ( const CefStructBase< traits > &  s)
inline

◆ operator=() [2/2]

template<class traits >
CefStructBase& CefStructBase< traits >::operator= ( const struct_type s)
inline

◆ Set()

template<class traits >
void CefStructBase< traits >::Set ( const struct_type source,
bool  copy 
)
inline

Set this object's values.

If |copy| is true the source structure's values will be copied instead of referenced.

Member Data Documentation

◆ attached_to_

template<class traits >
struct_type* CefStructBase< traits >::attached_to_
protected

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