GATE
C/C++ Framework
Loading...
Searching...
No Matches
StructBase< cpp_struct_type > Struct Template Reference

StructBase builds a C++ struct that includes a GATE C struct-descriptor and a native C++ struct type. More...

#include <structs.hpp>

Public Member Functions

 StructBase (gate_struct_descriptor_t const *descriptor=NULL, cpp_struct_type const &cpp_struct=cpp_struct_type())
 Initializes an instance with an external descriptor pointer and a native C++ structure.
 StructBase (self_t const &src)
 Copy an existing StructBase instance.
self_toperator= (self_t const &src)
 Overwrite instance data with another instance's data.

Detailed Description

template<class cpp_struct_type>
struct gate::StructBase< cpp_struct_type >

StructBase builds a C++ struct that includes a GATE C struct-descriptor and a native C++ struct type.

Template Parameters
cpp_struct_type

Constructor & Destructor Documentation

◆ StructBase() [1/2]

template<class cpp_struct_type>
StructBase ( gate_struct_descriptor_t const * descriptor = NULL,
cpp_struct_type const & cpp_struct = cpp_struct_type() )
inline

Initializes an instance with an external descriptor pointer and a native C++ structure.

Parameters
descriptorpointer to C-struct-descriptor
cpp_structreference to already initialize native C++ structure to copy data from

◆ StructBase() [2/2]

template<class cpp_struct_type>
StructBase ( self_t const & src)
inline

Copy an existing StructBase instance.

Parameters
src

Member Function Documentation

◆ operator=()

template<class cpp_struct_type>
self_t & operator= ( self_t const & src)
inline

Overwrite instance data with another instance's data.

Parameters
src
Returns

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